Using the .ionapi credential to generate a Gateway token

Use the .ionapi credential file to authenticate and obtain an access token from API Gateway using the client credentials grant flow. The token enables secure communication between backend services and the API Gateway and requires a valid client ID, client secret, and token URL.

  1. Open Postman or another API client.
  2. Open the .ionapi file and view these attributes:
    Token URL
    Combine the pu and ot values.
    Client ID
    Value of ci.
    Client Secret
    Value of cs.
  3. In the API request, specify the Token URL.
  4. In the request body, include the client_id, client_secret, and grant_type values. Set grant_type to client_credentials.
  5. Send the request and retrieve the access token from the response.
  6. Optionally, validate the token using a JWT evaluation tool.