Skip to content

Latest commit

 

History

History
310 lines (185 loc) · 3.86 KB

call-identity-authentication-introspect-token-endpoint-a05f14c.md

File metadata and controls

310 lines (185 loc) · 3.86 KB

Call Identity Authentication Introspect Token Endpoint

The introspect token endpoint is an option for clients to get long expiring refresh tokens, opaque access and id tokens in JWT format validated.

The token recation endpoint is implemented according to RFC 7662 OAuth 2.0 Token Introspection.

Request

URI:https://<Cloud Identity Services domain>/oauth2/introspect

Note:

The domain part has the following pattern:

<tenant ID>.accounts.ondemand.com or <tenant ID>.accounts.cloud.sap. If you have a configured custom domain, the domain has the following pattern: <your custom domain>.

Tenant ID is an automatically generated ID by the system. The first administrator created for the tenant receives an activation email with a URL in it. This URL contains the tenant ID. For more information about your tenants, see View Assigned Tenants and Admins.

**HTTP Method:**POST

Request Headers

Header

Required

Values

Content-Type

Yes

application/x-www-form-urlencoded

Authorization

Yes

  • Basic -

    Client ID and a Secret to authenticate the client (relying party). For more information, see Configure Secrets for API Authentication.

    Note:

    The client ID and secret must be encoded using the "application/x-www-form-urlencoded" encoding algorithm.

  • Bearer <client_credential_token>)

  • X.509 Certificate

Request Parameters

Parameter

Required

Data Type

Description

Parameter Type

token

Yes

string

Must contain the JWT or opaque token from the issuer.

Request body

token_type_hint

No

string

 

Request body

client_id

No

string

Used to identify the corresponding Identity Authentication application.

Note:

The client_id parameter is mandatory if the request is provided without authentication.

Request body

Request Example

token=0ab82505123c12ffe7c4e9a2b0158cn7

Response

Response Example

If token is valid:


Content-Type: application/json

{
 "active": true,
 "aud": "a123456e-314a-4923-899c-05c535c3d7f9",
 "username": "P12345",
 "sub": "P12345",
 "user_uuid": "158a1b2c7-981az-69ab9-8079-d824da69c681",
 "mail": "[email protected]",
 "iss": "https://my-_tenant.accounts.ondemand.com",
 "last_name": "Moore",
 "exp": 1588019044,
 "iat": 158801376,
 "first_name": "Dona",
 "jti": "38e42330-de7a-4130-a3a1-b582b528da98"
}

If token is not valid/expired/not known or any other token related issue:


Content-Type: application/json

{
 "active": false
}

Response Status and Error Codes

Code

Reason

200 OK

Successful operation.

401 Unauthorized

The client is not authenticated.