-
Notifications
You must be signed in to change notification settings - Fork 0
introspectToken
Luis Huertas edited this page Feb 4, 2022
·
1 revision
Introspect the subject token
Base Url : http://your-app-base-url.com
Endpoint : /auth/introspect/
Method : POST
Auth required : No
Permissions required : none
type: body
{
"access_token": "token"
}
Request Fields Description
key | value | description |
---|---|---|
access_token | token | The subject access token |
{
"code": 200001,
"message": "Token introspected",
"content": {
"subject": {
"id": 1,
"name": "Subject Name",
"subjectType": "user"
}
}
}
Response Fields Description
key | value | description |
---|---|---|
code | 200001 | result code |
message | Token introspected | result message |
content | Object | The response of the subject token introspection |
id | 1 | The subject identifier |
name | Subject Name | The subject name |
subjectType | user | The type of subject client or user |
Response codes
- If response is success, http status will be 201 and code in body will be 200001
code | description |
---|---|
500000 | Not categorized error |
400000 | Invalid body |
400003 | Invalid token |
200001 | option was created |