How to get an Access Token in Postman (2024)

The purpose of this short tutorial is to explain how to setup Postman (as an example of an API platform tool) in order to get an Access Token and thus being able to make requests on .Stat Suite services (nsiws) using the authorisation service and underlying permission rules.

Note that, like other variables and settings, Authorization can be setup on different level/scope (Collection, Folder or Individual request). In the following examples, screenshots of the Postman UI are done for an individual request. But if setup on a collection or folder level, this setup will apply to all http requests at the same level.

Navigate to the Postman Authorization tab of your request. From the Type dropdown menu, select OAuth 2.0:

Click on the Get New Access Token button that will open a dialog box for configuring the identity server (Keycloak in our case). Fill in the appropriate fields with the corresponding values for your environment, as such:

  • Token name => give any name here
  • Grant Type => select Authorization Code (or Authorization Code with PKCE depending on your auth. configuration)
  • Auth URL => http://{YOUR-KEYCLOAK-BASE-URL}/auth/realms/{YOUR-REALM}/protocol/openid-connect/auth
  • Access Token URL => http://{YOUR-KEYCLOAK-BASE-URL}/auth/realms/{YOUR-REALM}/protocol/openid-connect/token
  • Client ID => Id of a client in your Keycloak setup
  • Scope => which resource you want to provide (email openid profile)

Authorize using browser should be unchecked, use a url that is authorised by keyclaok (e.g your data-explorer url).If you tick the box, you have to authorise the url defined by postman in your keycloak.

How to get an Access Token in Postman (1)

Click on the Request Token button that should pop up a Keycloak’s login dialog if everything was set up correctly. After a successful login, a new Token should be obtained as below:

How to get an Access Token in Postman (2)

Click on Use Token and the content of a requested token will be automatically added as a Bearer header in a Postman request. If the token is expired, then repeat the token obtaining request from the Authorization tab by clicking on Get new Access Token.

How to get an Access Token in Postman (2024)
Top Articles
How do I add money to my PhonePe Wallet?
SSN Trace: A Complete Guide for Employers [2024] - iprospectcheck
Scheelzien, volwassenen - Alrijne Ziekenhuis
Exclusive: Baby Alien Fan Bus Leaked - Get the Inside Scoop! - Nick Lachey
Ffxiv Palm Chippings
Chatiw.ib
Don Wallence Auto Sales Vehicles
South Park Season 26 Kisscartoon
Costco The Dalles Or
1movierulzhd.fun Reviews | scam, legit or safe check | Scamadviser
Blairsville Online Yard Sale
THE 10 BEST River Retreats for 2024/2025
Obituary Times Herald Record
Delectable Birthday Dyes
Valentina Gonzalez Leak
Check From Po Box 1111 Charlotte Nc 28201
Katherine Croan Ewald
Spider-Man: Across The Spider-Verse Showtimes Near Marcus Bay Park Cinema
The best TV and film to watch this week - A Very Royal Scandal to Tulsa King
Zack Fairhurst Snapchat
Missed Connections Inland Empire
Drago Funeral Home & Cremation Services Obituaries
12 Top-Rated Things to Do in Muskegon, MI
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Yosemite Sam Hood Ornament
Costco Gas Hours St Cloud Mn
Black Panther 2 Showtimes Near Epic Theatres Of Palm Coast
Sinfuldeed Leaked
Broken Gphone X Tarkov
Homewatch Caregivers Salary
Boneyard Barbers
Frommer's Belgium, Holland and Luxembourg (Frommer's Complete Guides) - PDF Free Download
Murphy Funeral Home & Florist Inc. Obituaries
The Bold And The Beautiful Recaps Soap Central
Rage Of Harrogath Bugged
15 Best Things to Do in Roseville (CA) - The Crazy Tourist
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
R: Getting Help with R
Is Ameriprise A Pyramid Scheme
Nimbleaf Evolution
Swsnj Warehousing Inc
Large Pawn Shops Near Me
Hillsborough County Florida Recorder Of Deeds
Keci News
Lesson 5 Homework 4.5 Answer Key
antelope valley for sale "lancaster ca" - craigslist
Uno Grade Scale
The Missile Is Eepy Origin
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5624

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.