Query tokens obtained through SSO with OIDC
Query the OIDC tokens for a person issued during SSO authentications.
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
- application/json
Request Body required
- person_id string required
Person ID
- authentication_ids string[]
The IDs of the SSO OIDC authentications that issued the OIDC tokens. If not provided, all OIDC tokens for this person matching the specified types will be returned.
- token_types string[]
Possible values: [
access
,refresh
,id
]The types of tokens to be returned. If not provided, all OIDC tokens for this person issued during the specified authentication(s) will be returned.
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage stringresult object[]
token stringOIDC token value
token_type stringPossible values: [
access
,refresh
,id
]expiry date-timeToken expiry date
provider stringPossible values: [
google
,github
,bitbucket
,gitlab
,facebook
,line
,azuread
,okta
,apple
]client_id stringThe client ID used to obtain the token
authentication_id stringAuthentication ID
person_id stringPerson ID
organization_id string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
],
"result": [
{
"token": "string",
"token_type": "access",
"expiry": "2005-12-24T18:29:30.033157Z",
"provider": "google",
"client_id": "string",
"authentication_id": "string",
"person_id": "string",
"organization_id": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}