콘텐츠로 이동

액세스 토큰 발급

POST
/oauth2/token
Code sample: Shell / cURL
curl --request POST \
--url 'https://auth-app.checkone.co.kr/oauth2/token?grant_type=client_credentials' \
--header 'Authorization: Basic <credentials>'

grant_type=client_credentials로 액세스 토큰을 발급합니다. Authorization: Basic base64(client_id:client_secret) 헤더가 필요합니다. 클라이언트 ID 형식은 {사업자코드}-{가맹점번호}입니다. 예시는 더미 값입니다.

grant_type
required
string
Allowed values: client_credentials

항상 client_credentials

Example

client_credentials

발급 성공

Media typeapplication/json
object
access_token
required

JWT(RS256) 액세스 토큰

string
token_type
required

항상 Bearer

string
expires_in
required

유효시간(초). 300

integer
scope

부여된 권한. ALL, EVERIFICATION, ESIGN, PVERIFICATION, IDVERIFICATION 중 클라이언트에 등록된 값

string

Example

{
"access_token": "eyJhbGciOiJSUzI1NiJ9.EXAMPLE.EXAMPLE",
"token_type": "Bearer",
"expires_in": 300,
"scope": "PVERIFICATION"
}

요청 형식 오류. 응답 본문은 표준 OAuth 2.0 오류 형식을 따르며 레포에 별도 정의는 없습니다.

클라이언트 인증 실패