Token

Access 토큰을 발급

post

JWT token을 발행한다. 발행 시 클라이언트 ID가 claim에 저장된다. (아래내용은 SKT에서 ID 관리정책에 대한 명기를 요청하여 기술함 ) 한 중계사는 용도에 따라 다수의 클라이언트 ID를 할당 받을 수 있다. MaaP FE는 클라이언트 ID 마다 아래 속성을 부여하여 처리할 수 있다. - 우선순위 : 실시간, 일반, 배치 - 속도제어(TPS) : 초당 메시지 발송 최대 건수. 보안을 위해 accessToken에 client의 outbound IP를 저장하여 접속을 제한 할 수 있다. 중계사는 oubbound IP가 고정되지 않을 경우 이통사와 별도 협의를 진행하여야 한다.

Body
clientIdstring · max: 20RequiredExample: clientId001
clientSecretstring · max: 255RequiredExample: secretString
grantTypestring · enumRequired

명시적인 요청을 위해 사용되는 필드로 clientCredentials 값을 입력한다

Example: clientCredentialsPossible values:
Responses
200
success
application/json
post
POST /ag/1.2/token HTTP/1.1
Host: maapdomain.com
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "clientId": "clientId001",
  "clientSecret": "secretString",
  "grantType": "clientCredentials"
}
{
  "status": "200",
  "data": {
    "tokenInfo": {
      "accessToken": "xxxx",
      "expiresIn": "6000"
    }
  }
}

Response

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

{
  "id": 1,
  "name": "John",
  "age": 30
}

Last updated