Auth
Authorizations
Responses
200Success
application/json
401
Invalid authentication credentials.
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
400Error
503Error
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"
}
Body
refreshTokenstringRequired
Responses
201Success
application/json
400Error
503Error
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
}