OAuth 2.0
This page provides information about how to access the rest API via access tokens and required information in order to configure new clients for IDP.
Overview
The guiding principles regarding configuration and security for IDP are drawn by Financial-Grade API (FAPI) standards and OpenID Connect.
Quickstart
- Public key from SSL certificate
- Signature verification key
- Redirect URI
- Optional: logo
Requests
Login

Access Token

Refresh Token

Logout

Full documentation for endpoints
| Request | Http Method | Endpoint | Parameter | Details | ||
|---|---|---|---|---|---|---|
| Login | GET | /oauth/v2/oauth-authorize | scope: available scopes are openid, trading:read and trading:write response_type: code redirect_uri: the redirect URI client_id: id of client request: request JWT object state: string value used to associate a client session with an ID token nonce: random cryptographic token used to prevent replay attacks | Multiple scopes must be separated by empty space (example: "openid trading:read") Example URL:
| ||
| Access Token for Code flow | POST | /oauth/v2/oauth-token | grant_type: must be authorization_code client_id: the client id redirect_uri: the redirect URI code: the access code (obtained from URL redirect after performing login consent) | Can be performed after a successful login, in order to exchange the access code for a bearer token from where the access token can be obtained. Example cURL Request:
Example Response:
| ||
| Access Token for Client Credentials flow | POST | /oauth/v2/oauth-token | grant_type: must be client_credentials client_id: the client id scope: the scope of access for the token | Example cURL Request:
Example Response:
| ||
| Refresh Token | POST | /oauth/v2/oauth-token | grant_type: must be refresh_token client_id: the client id refresh_token: the refresh token (obtained from the Bearer Token) | The refresh_token is valid for 11 hours and 55 minutes, it contains a new access_token which is valid for 5 minutes and the next refresh_token that can be used. Example cURL Request:
Example Response:
| ||
| API Logout | POST | /oauth/v2/oauth-revoke | client_id: the client id token: the refresh token to be invalidated | This endpoint revokes only the refresh token. Example URL:
Example Response:
| ||
| Web Logout | POST | /authn/authentication/logout | - | This endpoint revokes only the access token. Example URL:
Example Response:
|