Create Authorization Tokens
Overview
Create and manage token generation for APIs to streamline the setup of secure authentication and authorization processes
Supported Authentication Methods (Token Types):
-
OAuth 2.0:
- Description: OAuth 2.0 is a framework for granting access to resources using bearer tokens.
- Usage: When a request is made to a resource server, the token is included in the header as Authorization: Bearer <token>.
-
Basic Authentication:
- Description: A simple authentication scheme built into the HTTP protocol. Requires a username and password.
- Usage: Send the credentials encoded in Base64 format as Authorization: Basic <base64encoded(username:password)>.
-
API Key Authentication:
-
Description: Uses a unique key provided to the client to authenticate requests.
-
Usage: Include the API key in the request, either in the header or as a query parameter.
- Header: Authorization: ApiKey <api_key>
- Query Parameter: ?api_key=<api_key>
-
Steps to configure a token
-
Go to ”Applications”

-
Look for the ”Tokens” Tab

-
Now click on ”Create New”

-
Give the token a name so that you can easily identify when creating an http operation

-
Select the required token type

-
In case of OAuth 2.0, select the grant type:

-
Enter the Client ID and Client Secret


-
Enter the scope: Specifies the level of access requested. It limits what the token can do, e.g., read-only or write access.

-
Enter the Re-direct URI (Optional), after authentication, the user is redirected to this URL.

-
Enter the refresh token URL, this is where the application requests a new access token when the current one expires, using a refresh token.

-
Select where the authorization token will be sent—whether through the body or header.

-
Select the content type of the request, e.g., application/json or application/x-www-form-urlencoded.

-
Sets the duration for which the token is valid in seconds. After this time, a new token will be automatically be requested

-
Now on the top right of the pop-up hit
. Now you can use this token as a sceret on the http operation.
