액세스 토큰 발급
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 형식은 {사업자코드}-{가맹점번호}입니다. 예시는 더미 값입니다.
Authorizations
섹션 제목: “Authorizations”Parameters
섹션 제목: “Parameters”Query Parameters
섹션 제목: “Query Parameters”grant_type
required
string
항상 client_credentials
Example
client_credentialsResponses
섹션 제목: “Responses”200
섹션 제목: “200”발급 성공
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"}400
섹션 제목: “400”요청 형식 오류. 응답 본문은 표준 OAuth 2.0 오류 형식을 따르며 레포에 별도 정의는 없습니다.
401
섹션 제목: “401”클라이언트 인증 실패
