# 개발 시작하기

업무시스템에 SSO 서버와 연동하는 방법에 대한 전반적인 개요입니다.

각 단계별 상세 페이지를 참고하여 **순차적으로 진행**합니다.

{% hint style="info" %}

#### SSO Agent : SSO 인증 연계를 위한 **라이브러리**와 기타 환경 파일, 샘플 파일로 구성되어 있습니다.

#### SSO 라이브러리 : Agent 구성 파일 중 하나로 DLL 또는 JAR와 같이 SSO 인증 연계에 필요한 라이브러리 파일을 말합니다.

#### 업무시스템에 SSO 라이브러리와 환경 파일을 적용 하고 샘플 파일 참고하여 개발을 권고합니다.&#x20;

{% endhint %}

## 1. 업무시스템 정보를 SSO 관리자에게 제공

SSO 담당자에게 연동할 업무시스템 정보를 제공하고, SSO 담당자는 제공받은 정보를 SSO 관리서버에 등록합니다.

> 전달 정보 : 도메인명, 서버 IP, 개발환경 등

{% content-ref url="getting-started/delivery-systeminfo" %}
[delivery-systeminfo](https://dwp-sso.gitbook.io/developers/getting-started/delivery-systeminfo)
{% endcontent-ref %}

## 2. SSO 라이브러리 다운로드

SSO 담당자부터 전달받은 SSO 라이브러리를 다운로드하고 업무시스템에 적용합니다.

{% content-ref url="getting-started/download-library" %}
[download-library](https://dwp-sso.gitbook.io/developers/getting-started/download-library)
{% endcontent-ref %}

## 3. 라이브러리 적용

다운로드 받은 라이브러리를 업무시스템에 적용합니다.

{% content-ref url="getting-started/library-integration" %}
[library-integration](https://dwp-sso.gitbook.io/developers/getting-started/library-integration)
{% endcontent-ref %}

## 4. 환경 파일(agentconfig.xml) 수정

Agent 환경 파일(agentconfig.xml)을 업무시스템에 맞게 수정합니다. Agent는 agentconfig.xml에 등록된 내용과 SSO 서버에 등록된 정보가 맞는지 자동으로 확인합니다.&#x20;

{% content-ref url="getting-started/setting-agentconfig" %}
[setting-agentconfig](https://dwp-sso.gitbook.io/developers/getting-started/setting-agentconfig)
{% endcontent-ref %}

## 5. SSO 인증 테스트

인증 확인 Sample(default.aspx, default.jsp, index.cshtml)페이지를 호출하여 SSO 인증 테스트 진행합니다.

{% hint style="success" %}
해당 테스트에서 에러가 발생할 경우 agentconfig.xml 설정값과 SSO 관리서버에 등록된 정보가 다른 경우이므로 SSO 담당자에게 문의합니다.

해당 테스트를 진행하지 않고, 곧바로 개발을 시작해도 상관없으나 1\~3번까지의 과정이 올바르게 진행된 것인지 검증하기 위한 과정이므로 되도록 Sample 파일을 이용해 인증 테스트를 진행합니다.
{% endhint %}

{% content-ref url="getting-started/authstatus-process-guide" %}
[authstatus-process-guide](https://dwp-sso.gitbook.io/developers/getting-started/authstatus-process-guide)
{% endcontent-ref %}

## 6. 업무시스템 인증 구현

SSO 인증 테스트까지 끝났다면 라이브러리 내 포함된 샘플코드(default.aspx, default.jsp, index.cdhtml)와 [개발하기 섹션](https://dwp-sso.gitbook.io/developers/development)의 상세 가이드를 참고하여 업무시스템에 필요한 내용을 추가로 구현합니다.

업무시스템에 적용할 소스 범위는 업무시스템의 상황에 맞게 아래와 같이 구현할 수 있습니다.

* 일부 리소스 적용 : 업무 시스템의 인증 처리를 하는 소스에만 적용
* 전체 리소스 적용 : 업무 시스템의 모든 페이지에 포함되는 공통 소스에 적용하여 모든 페이지에서 SSO인증을 체크하도록 적용
