Skip to main content

Generating an OAuth Token

This article will explain how to generate an OAuth token using an API testing tool.

Updated today

What is an OAuth Token?

An OAuth token is a temporary, secure credential issued through the OAuth 2.0 authorisation framework. It enables applications to access APIs or protected resources without exposing usernames or passwords.

The token is included in API requests by a third-party application, allowing the server to verify that the request is authorised and grant access to the permitted resources without exposing usernames or passwords.

OAuth tokens are widely used in integrations, mobile apps, cloud platforms, and enterprise APIs to enable controlled, secure communication between systems.


System Requirements

Tool

Description

API Client Tool

A tool used to send API requests and obtain authentication tokens. Any API client can be used for this process.


Generate an OAuth Token

NOTE: This article will demonstrate the process using Postman.

  1. In the Postman application, click Authorisation.

  2. Click the Auth Type dropdown.

  3. Select OAuth 2.0.

  4. Under Configure New Token, enter the required fields.

  5. Click Get new access token.

  6. In the pop-up window, enter your email and password

    • Alternatively, select Use Single Sign‑On (SSO) if your organisation uses SSO authentication.

After successful authentication, the MANAGE ACCESS TOKENS pop-up will appear and display the generated OAuth Token.

TIP: If the Postman redirection dialogue doesn't redirect automatically, click Proceed.


Configure New Token- Fields

Field

Description

Token Name

Name used to identify this token.

Callback URL

Pre-registered redirect URL used after authentication.

Auth URL

Authorisation endpoint provided by your OAuth service.

Access Token URL

Token endpoint to request the OAuth token.

Client ID

Issued client identifier.

Client Secret

Issued client secret.

EXAMPLE: Examples of Auth URL and Access Token URL:


Did this answer your question?