putApplication

Prev Next

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 이름
  • 길이: 2~100
  • 패턴: ^[A-Za-z]+[A-Za-z0-9_\-\.]*$
    • 영문, 숫자, 특수문자 _, -, .를 조합하여 입력
    • 첫 글자는 영문으로 입력
  • 이름 중복은 대소문자를 구분함
description String Optional Application에 대한 설명
  • 길이: 0~500
applicationUrl String Optional Application URL
  • 길이: 0~1,000
applicationType String Optional Application 유형
  • WEB (기본값) | APP
    • WEB: 웹
    • APP: 앱
memberLoginPolicy String Required 메인 계정 로그인 허용 정책
  • ALLOW | DENY
    • ALLOW: 허용
    • DENY: 거부
clientAuthMethod String Required Application 인증 방식
  • client_secret_basic | client_secret_post | none
    • client_secret_basic: Client 자격 증명을 HTTP Basic 인증 헤더로 전달
    • client_secret_post: Client ID와 Secret을 POST 요청 바디에 포함
    • none: 인증 안 함
  • accessType이 confidential인 경우 client_secret_basic 또는 client_secret_post, public인 경우 none만 입력 가능
redirectUris Array Required Application 리디렉션 URI 목록
  • 최대 50개 입력 가능
postLogoutRedirectUris Array Optional OIDC RP-Initiated 로그아웃 시 허용할 post_logout_redirect_uri 화이트리스트
  • 최대 50개 입력 가능
accessType String Required Application 접근 방식
  • confidential | public
    • confidential: Client ID 및 Secret으로 인증 후 접근
    • public: Client ID로 인증 후 접근
grantTypes Array Required 권한 부여 방식
  • authorization_code | refresh_token | implicit
    • authorization_code: 자체 생성한 Authorization Code로 Access Token 발급
    • refresh_token: Access Token 만료 후 재로그인 없이 새 Access Token 발급
    • implicit: Authorization Code 없이 바로 Access Token 발급. 자격 증명을 안전하게 저장하기 힘든 Client 환경에 최적화
  • 1개 이상 입력
  • authorization_code, implicit 중 하나는 필수 포함
scopes Array Required Application 접근 가능 정보 범위
  • profile | openid | groups | email
    • profile: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름
    • openid: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름
    • groups: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름, 그룹
    • email: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름, 이메일
  • 1개 이상 입력
  • profile, openid 중 하나는 필수 포함
accessTokenValiditySeconds Integer Optional Access Token 유효 기간(초)
  • 범위: 1~43,200 (기본값: 43,200)
refreshTokenValiditySeconds Integer Optional Refresh Token 유효 기간(초)
  • 범위: 1~2,592,000 (기본값: 2,592,000)
consentPage Object Required 개인 정보 제공 동의 페이지 정보
consentPage.applicationName Object Required 제공받는 자 정보
consentPage.applicationName.<언어 코드> String Required 해당 언어의 제공받는 자
  • 길이: 0~500
  • 언어 코드: ko | ja | en
consentPage.useLanguages Array Required 사용 언어 목록
  • ko | ja | en
    • ko: 한국어
    • ja: 일본어
    • en: 영어
consentPage.defaultLanguage String Required 기본 언어
  • ko | ja | en
    • ko: 한국어
    • ja: 일본어
    • en: 영어
consentPage.usePurposeDescription Object Required 이용 목적 정보
consentPage.usePurposeDescription.<언어 코드> String Required 해당 언어의 이용 목적
  • 길이: 0~500
  • 언어 코드: ko | ja | en
consentPage.usePeriodDescription Object Required 보유 및 이용 기간 정보
consentPage.usePeriodDescription.<언어 코드> String Required 해당 언어의 보유 및 이용 기간
  • 길이: 0~500
  • 언어 코드: ko | ja | en
consentPage.dataTransferredAbroad Boolean Required 개인 정보 국외 이전 여부
  • true | false
    • true: 이전
    • false: 이전 안 함
consentPage.dataTransferCountry Object Conditional 이전되는 국가 정보
  • consentPage.dataTransferredAbroad가 true인 경우, 필수 입력
consentPage.dataTransferCountry.<언어 코드> String Conditional 해당 언어의 이전되는 국가
  • 길이: 0~500
  • 언어 코드: ko | ja | en
consentPage.dataRecipients Object Conditional 이전받는 자 정보
  • consentPage.dataTransferredAbroad가 true인 경우, 필수 입력
consentPage.dataRecipients.<언어 코드> String Conditional 해당 언어의 이전받는 법인 이름
  • 길이: 0~500
  • 언어 코드: ko | ja | en
consentPage.dataRecipientsContact Object Conditional 이전받는 자의 연락처 정보
  • consentPage.dataTransferredAbroad가 true인 경우, 필수 입력
consentPage.dataRecipientsContact.<언어 코드> String Conditional 해당 언어의 이전받는 법인의 개인 정보 관리자 연락처
  • 길이: 0~500
  • 언어 코드: ko | ja | en
protocol String Optional Application 프로토콜
  • OAUTH2 (기본값)
    • OAUTH2: OAuth 2.0

요청 예시

요청 예시는 다음과 같습니다.

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 식별자
  • UUID 형식
name String Required Application 이름
description String Optional Application에 대한 설명
applicationUrl String Optional Application 바로 가기 URL
applicationType String Required Application 유형
  • WEB | APP
    • WEB: 웹
    • APP: 앱
memberLoginPolicy String Optional 메인 계정 로그인 허용 정책
  • ALLOW | DENY | UNUSED
    • ALLOW: 허용
    • DENY: 거부
    • UNUSED: 미설정
  • Tenant 설정이 UNUSED인 경우 Application별 설정 값이 반환
createdDateTime String Required Application 생성 일시
  • ISO 8601 형식 (UTC 기준)
updatedDateTime String Required Application이 마지막으로 수정된 일시
  • ISO 8601 형식 (UTC 기준)
clientId String Required OAuth Client ID
clientAuthMethod String Optional Application 인증 방식
  • client_secret_basic | client_secret_post | none
    • client_secret_basic: Client 자격 증명을 HTTP Basic 인증 헤더로 전달
    • client_secret_post: Client ID와 Secret을 POST 요청 바디에 포함
    • none: 인증 안 함
redirectUris Array Optional Application 리디렉션 URI 목록
postLogoutRedirectUris Array Optional OIDC RP-Initiated Logout post_logout_redirect_uri 화이트리스트
accessType String Required Application 접근 방식
  • confidential | public
    • confidential: Client ID 및 Secret으로 인증 후 접근
    • public: Client ID로 인증 후 접근
grantTypes Array Optional 권한 부여 방식
  • authorization_code | refresh_token | implicit
    • authorization_code: 자체 생성한 Authorization Code로 Access Token 발급
    • refresh_token: Access Token 만료 후 재로그인 없이 새 Access Token 발급
    • implicit: Authorization Code 없이 바로 Access Token 발급. 자격 증명을 안전하게 저장하기 힘든 Client 환경에 최적화
scopes Array Optional Application 접근 가능 정보 범위
  • profile | openid | groups | email
    • profile: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름
    • openid: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름
    • groups: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름, 그룹
    • email: 계정 구분, 로그인 아이디, 회원 고유 식별자, 사용자 이름, 이메일
accessTokenValiditySeconds Integer Optional Access Token 유효 기간(초)
refreshTokenValiditySeconds Integer Optional Refresh Token 유효 기간(초)
consentPage Object Optional 개인 정보 제공 동의 페이지 정보
consentPage.applicationName Object Required 제공받는 자 정보
consentPage.applicationName.<언어 코드> String - 해당 언어의 제공받는 자
  • 언어 코드: ko | ja | en
consentPage.useLanguages Array Required 사용 언어 목록
  • ko | ja | en
    • ko: 한국어
    • ja: 일본어
    • en: 영어
consentPage.defaultLanguage String Required 기본 언어
  • ko | ja | en
    • ko: 한국어
    • ja: 일본어
    • en: 영어
consentPage.usePurposeDescription Object Required 이용 목적 정보
consentPage.usePurposeDescription.<언어 코드> String - 해당 언어의 이용 목적
  • 언어 코드: ko | ja | en
consentPage.usePeriodDescription Object Required 보유 및 이용 기간 정보
consentPage.usePeriodDescription.<언어 코드> String - 해당 언어의 보유 및 이용 기간
  • 언어 코드: ko | ja | en
consentPage.dataTransferredAbroad Boolean Required 개인 정보 국외 이전 여부
  • true | false
    • true: 이전
    • false: 이전 안 함
consentPage.dataTransferCountry Object Optional 이전되는 국가 정보
consentPage.dataTransferCountry.<언어 코드> String - 해당 언어의 이전되는 국가
  • 언어 코드: ko | ja | en
consentPage.dataRecipients Object Optional 이전받는 자 정보
consentPage.dataRecipients.<언어 코드> String - 해당 언어의 이전받는 법인 이름
  • 언어 코드: ko | ja | en
consentPage.dataRecipientsContact Object Optional 이전받는 자의 연락처 정보
consentPage.dataRecipientsContact.<언어 코드> String - 해당 언어의 이전받는 법인의 개인 정보 관리자 연락처
  • 언어 코드: ko | ja | en
protocol String Required Application 프로토콜
  • OAUTH2 | OIDC | SAML
    • OAUTH2: OAuth 2.0
    • OIDC: OpenID Connect
    • SAML: SAML 2.0

응답 상태 코드

응답 상태 코드에 대한 설명은 다음과 같습니다.

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"
}