Obtain a JWT token for a service account
Use tokens for the authentication of service accounts
Read time 1 minuteLast updated 11 days ago
To access the solution API endpoints with a service account, you need a JSON Web Token (JWT) for the service account. This token serves as a bearer token in the Authorization header. To request a token, send the HTTP POST request to the Keycloak token endpoint through the standard OAuth Client Credentials flow. The token URL has this format:
This example shows a request in cURL format:https://<SolutionFQDN>/auth/realms/unity/protocol/openid-connect/token
curl --request POST \ --url 'https://<SolutionFQDN>/auth/realms/unity/protocol/openid-connect/token' \ --header 'content-type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials \ --data client_id=CLIENT_ID \ --data client_secret=CLIENT_SECRET