Auth

Get all granted claims for the current user.

get
Authorizations
Responses
200Success
application/json
get
/api/v1/auth/granted-claims
GET /api/v1/auth/granted-claims HTTP/1.1
Host: {PORTAL_API_BASE_URL}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "grantedClaims": [
    "text"
  ]
}

Exchange a valid authorization code for an access and refresh token. You can only exchange an authorization code once!

post
Body
authorizationCodestringRequired
usedRedirectUristringRequired

Redirect URI that was used when retrieving an authorization code.

Responses
201Success
application/json
post
/api/v1/auth/sign-in/code-exchange
POST /api/v1/auth/sign-in/code-exchange HTTP/1.1
Host: {PORTAL_API_BASE_URL}
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "authorizationCode": "text",
  "usedRedirectUri": "text"
}
{
  "accessToken": "text",
  "expiresIn": 1,
  "refreshToken": "text"
}

Exchange a valid refresh token for an access token.

post
Body
refreshTokenstringRequired
Responses
201Success
application/json
post
/api/v1/auth/sign-in/refresh-token
POST /api/v1/auth/sign-in/refresh-token HTTP/1.1
Host: {PORTAL_API_BASE_URL}
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "refreshToken": "text"
}
{
  "accessToken": "text",
  "expiresIn": 1
}

Retrieve the jwks public keys

get
Responses
200Success
application/json
get
/api/v1/auth/.well-known/jwks.json
GET /api/v1/auth/.well-known/jwks.json HTTP/1.1
Host: {PORTAL_API_BASE_URL}
Accept: */*
{
  "keys": [
    "text"
  ]
}