Classic/VPC 환경에서 이용 가능합니다.
Ncloud API 표준 규격을 적용한 API입니다.
Application 정보를 수정합니다.
주의
기존 Application 정보가 전부 요청한 내용으로 교체됩니다. 기존 값을 유지하려면 해당 값도 포함하여 요청해 주십시오.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| PUT | /api/v2/applications/{applicationId} |
요청 헤더
Ncloud Single Sign-On API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Single Sign-On 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
applicationId |
String | Required | Application 식별자
|
요청 바디
요청 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
name |
String | Required | Application 이름
|
description |
String | Optional | Application에 대한 설명
|
applicationUrl |
String | Optional | Application URL
|
applicationType |
String | Optional | Application 유형
|
memberLoginPolicy |
String | Required | 메인 계정 로그인 허용 정책
|
clientAuthMethod |
String | Required | Application 인증 방식
|
redirectUris |
Array | Required | Application 리디렉션 URI 목록
|
postLogoutRedirectUris |
Array | Optional | OIDC RP-Initiated 로그아웃 시 허용할 post_logout_redirect_uri 화이트리스트
|
accessType |
String | Required | Application 접근 방식
|
grantTypes |
Array | Required | 권한 부여 방식
|
scopes |
Array | Required | Application 접근 가능 정보 범위
|
accessTokenValiditySeconds |
Integer | Optional | Access Token 유효 기간(초)
|
refreshTokenValiditySeconds |
Integer | Optional | Refresh Token 유효 기간(초)
|
consentPage |
Object | Required | 개인 정보 제공 동의 페이지 정보 |
consentPage.applicationName |
Object | Required | 제공받는 자 정보 |
consentPage.applicationName.<언어 코드> |
String | Required | 해당 언어의 제공받는 자
|
consentPage.useLanguages |
Array | Required | 사용 언어 목록
|
consentPage.defaultLanguage |
String | Required | 기본 언어
|
consentPage.usePurposeDescription |
Object | Required | 이용 목적 정보 |
consentPage.usePurposeDescription.<언어 코드> |
String | Required | 해당 언어의 이용 목적
|
consentPage.usePeriodDescription |
Object | Required | 보유 및 이용 기간 정보 |
consentPage.usePeriodDescription.<언어 코드> |
String | Required | 해당 언어의 보유 및 이용 기간
|
consentPage.dataTransferredAbroad |
Boolean | Required | 개인 정보 국외 이전 여부
|
consentPage.dataTransferCountry |
Object | Conditional | 이전되는 국가 정보
|
consentPage.dataTransferCountry.<언어 코드> |
String | Conditional | 해당 언어의 이전되는 국가
|
consentPage.dataRecipients |
Object | Conditional | 이전받는 자 정보
|
consentPage.dataRecipients.<언어 코드> |
String | Conditional | 해당 언어의 이전받는 법인 이름
|
consentPage.dataRecipientsContact |
Object | Conditional | 이전받는 자의 연락처 정보
|
consentPage.dataRecipientsContact.<언어 코드> |
String | Conditional | 해당 언어의 이전받는 법인의 개인 정보 관리자 연락처
|
protocol |
String | Optional | Application 프로토콜
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request PUT 'https://sso.apigw.ntruss.com/api/v2/applications/6f708192-6666-4f01-9234-56789abcdef0' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"name": "example-name",
"memberLoginPolicy": "ALLOW",
"clientAuthMethod": "client_secret_basic",
"redirectUris": [
"https://example.com/callback"
],
"accessType": "confidential",
"grantTypes": [
"authorization_code"
],
"scopes": [
"openid"
],
"consentPage": {
"applicationName": {
"ko": "Ncloud Single Sign-On"
},
"useLanguages": [
"ko"
],
"defaultLanguage": "ko",
"usePurposeDescription": {
"ko": "서비스 제공 및 계정 관리"
},
"usePeriodDescription": {
"ko": "회원 탈퇴 시까지"
},
"dataTransferredAbroad": false
},
"protocol": "OAUTH2"
}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
applicationId |
String | Required | Application 식별자
|
name |
String | Required | Application 이름 |
description |
String | Optional | Application에 대한 설명 |
applicationUrl |
String | Optional | Application 바로 가기 URL |
applicationType |
String | Required | Application 유형
|
memberLoginPolicy |
String | Optional | 메인 계정 로그인 허용 정책
|
createdDateTime |
String | Required | Application 생성 일시
|
updatedDateTime |
String | Required | Application이 마지막으로 수정된 일시
|
clientId |
String | Required | OAuth Client ID |
clientAuthMethod |
String | Optional | Application 인증 방식
|
redirectUris |
Array | Optional | Application 리디렉션 URI 목록 |
postLogoutRedirectUris |
Array | Optional | OIDC RP-Initiated Logout post_logout_redirect_uri 화이트리스트 |
accessType |
String | Required | Application 접근 방식
|
grantTypes |
Array | Optional | 권한 부여 방식
|
scopes |
Array | Optional | Application 접근 가능 정보 범위
|
accessTokenValiditySeconds |
Integer | Optional | Access Token 유효 기간(초) |
refreshTokenValiditySeconds |
Integer | Optional | Refresh Token 유효 기간(초) |
consentPage |
Object | Optional | 개인 정보 제공 동의 페이지 정보 |
consentPage.applicationName |
Object | Required | 제공받는 자 정보 |
consentPage.applicationName.<언어 코드> |
String | - | 해당 언어의 제공받는 자
|
consentPage.useLanguages |
Array | Required | 사용 언어 목록
|
consentPage.defaultLanguage |
String | Required | 기본 언어
|
consentPage.usePurposeDescription |
Object | Required | 이용 목적 정보 |
consentPage.usePurposeDescription.<언어 코드> |
String | - | 해당 언어의 이용 목적
|
consentPage.usePeriodDescription |
Object | Required | 보유 및 이용 기간 정보 |
consentPage.usePeriodDescription.<언어 코드> |
String | - | 해당 언어의 보유 및 이용 기간
|
consentPage.dataTransferredAbroad |
Boolean | Required | 개인 정보 국외 이전 여부
|
consentPage.dataTransferCountry |
Object | Optional | 이전되는 국가 정보 |
consentPage.dataTransferCountry.<언어 코드> |
String | - | 해당 언어의 이전되는 국가
|
consentPage.dataRecipients |
Object | Optional | 이전받는 자 정보 |
consentPage.dataRecipients.<언어 코드> |
String | - | 해당 언어의 이전받는 법인 이름
|
consentPage.dataRecipientsContact |
Object | Optional | 이전받는 자의 연락처 정보 |
consentPage.dataRecipientsContact.<언어 코드> |
String | - | 해당 언어의 이전받는 법인의 개인 정보 관리자 연락처
|
protocol |
String | Required | Application 프로토콜
|
응답 상태 코드
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 200 | - | - | Application 상세 정보 |
| 400 | InvalidParameter |
The specified parameter is invalid. |
입력값 형식 오류 |
| 404 | ResourceNotFound |
The specified resource could not be found. |
생성된 Tenant 없음 |
| 404 | ApplicationNotFound |
The specified application could not be found. |
지정한 Application이 존재하지 않음 |
| 409 | AlreadyExists |
A resource with the requested identifier already exists. |
이미 사용 중인 Application 이름 |
참고
Ncloud Single Sign-On API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud Single Sign-On 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"applicationId": "6f708192-6666-4f01-9234-56789abcdef0",
"name": "example-name",
"description": "example description",
"applicationUrl": "https://sso.example.com",
"applicationType": "APP",
"memberLoginPolicy": "ALLOW",
"createdDateTime": "2025-01-02T09:00:00Z",
"updatedDateTime": "2025-01-02T09:00:00Z",
"clientId": "8d9e0f10-8888-4123-9456-789abcdef012",
"clientAuthMethod": "client_secret_basic",
"redirectUris": [
"https://example.com/callback"
],
"postLogoutRedirectUris": [
"https://example.com/logout"
],
"accessType": "public",
"grantTypes": [
"authorization_code"
],
"scopes": [
"openid"
],
"accessTokenValiditySeconds": 43200,
"refreshTokenValiditySeconds": 2592000,
"consentPage": {
"applicationName": {
"ko": "Ncloud Single Sign-On"
},
"useLanguages": [
"ko"
],
"defaultLanguage": "ko",
"usePurposeDescription": {
"ko": "서비스 제공 및 계정 관리"
},
"usePeriodDescription": {
"ko": "회원 탈퇴 시까지"
},
"dataTransferredAbroad": true,
"dataTransferCountry": {
"ko": "대한민국"
},
"dataRecipients": {
"ko": "네이버클라우드 주식회사"
},
"dataRecipientsContact": {
"ko": "privacy@example.com"
}
},
"protocol": "OAUTH2"
}