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
    grant_type grant_type can be one of the following: - client_credentials - urn:ietf:params:oauth:grant-type:jwt-bearer
    client_id client_id and client_secret are required for grant_type client_credentials
    client_secret string
    assertion assertion is required for grant_type urn:ietf:params:oauth:grant-type:jwt-bearer
Responses

A successful response.


Schema
    access_token string
    token_type 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
{
"grant_type": "string",
"client_id": "string",
"client_secret": "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 '{
"grant_type": "string",
"client_id": "string",
"client_secret": "string",
"assertion": "string"
}'