Skip to main content

Generate access token by given credentials

Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources.

Request Body required
    grantType grant_type can be one of the following: - client_credentials - urn:ietf:params:oauth:grant-type:jwt-bearer
    clientId client_id and client_secret are required for grant_type client_credentials
    clientSecret string
    assertion assertion is required for grant_type urn:ietf:params:oauth:grant-type:jwt-bearer
Responses

A successful response.


Schema
    accessToken string
    tokenType string
POST /v1beta1/auth/token

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
Body required
{
"grantType": "string",
"clientId": "string",
"clientSecret": "string",
"assertion": "string"
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/token' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"grantType": "string",
"clientId": "string",
"clientSecret": "string",
"assertion": "string"
}'