APIs
Obtaining Access Tokens

Client Credentials Flow: Obtain Access Token

Authenticate client applications using Client Credentials flow and get access tokens for Connect API access.



Raidiam recommends reading the Obtaining Access Tokens article first to learn about used specifications, all available access scopes and what they enable, and more.



Prerequisites

Get Access Token Using CC Flow

1

Add Raidiam's Authorisation Server /.well-known endpoint to your OAuth library configuration.

Your OAuth library should be able to get the server's configuration.

The /.well-known endpoint contains all the information about the Authorisation Server you need to successfully integrate with the server and get access tokens, for example the OAuth Token Endpoint: "token_endpoint": "https://auth.sandbox.raidiam.io/token" or mTLS Endpoint Aliases - for clients authenticating themselves using the tls_client_auth method:

Sample mTLS Endpoint Aliases

2

Download Transport Certificate for your organisation or application and add it to your OAuth library client's configuration.

The Transport Certificate will be used in mutual Transport Layer Security (mTLS) to establish a secure connection between your client and the authorisation server.

Your OAuth client library should be capable of verifying the authorisation server's certificate.

If you are using cURLs to test the integration, you can disable checking the server's certificate using the -k flag or --insecure option.

3

Call the Raidiam's OAuth /token endpoint to authenticate your client.

Utilize the client authentication method configured for your client:

cURL to /token Template


Upon successful validation of the request, the authorisation server issues and returns an access token - in a form of a JWT signed using the algorithm configured for your client (Applications > your application > Advanced Configuration > Token Signed Response Algorithm ID)