Skip to content

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):

  1. 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>.
  2. 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)>.
  3. 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

  1. Go to ”Applications”

  2. Look for the ”Tokens” Tab

  3. Now click on ”Create New”

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

  5. Select the required token type

  6. In case of OAuth 2.0, select the grant type:

  7. Enter the Client ID and Client Secret

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

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

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

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

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

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

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