Auth

Get all granted claims for the current user.

get
Authorizations
Responses
200Success
application/json
get
GET /products/web/$IDENTITY_ENV_ID/portalbackend/api/api/v1/auth/granted-claims HTTP/1.1
Host: identity.nchainplatform.com
X-API-KEY: YOUR_API_KEY
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
POST /products/web/$IDENTITY_ENV_ID/portalbackend/api/api/v1/auth/sign-in/code-exchange HTTP/1.1
Host: identity.nchainplatform.com
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
POST /products/web/$IDENTITY_ENV_ID/portalbackend/api/api/v1/auth/sign-in/refresh-token HTTP/1.1
Host: identity.nchainplatform.com
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
GET /products/web/$IDENTITY_ENV_ID/portalbackend/api/api/v1/auth/.well-known/jwks.json HTTP/1.1
Host: identity.nchainplatform.com
Accept: */*
{
  "keys": [
    "text"
  ]
}