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
A free guide for non-coders to learn blockchain tech in 6 months or less
Hellhounds
Woodward Avenue (M-1) - Automotive Heritage Trail - National Scenic Byway Foundation
Angela Babicz Leak
Barstool Sports Gif
Iron Drop Cafe
Space Engineers Projector Orientation
Otr Cross Reference
The Rise of Breckie Hill: How She Became a Social Media Star | Entertainment
5808 W 110Th St Overland Park Ks 66211 Directions
FAQ: Pressure-Treated Wood
Five Day National Weather Forecast
Walmart End Table Lamps
Commodore Beach Club Live Cam
Saatva Memory Foam Hybrid mattress review 2024
A Cup of Cozy – Podcast
Ecampus Scps Login
T Mobile Rival Crossword Clue
Surplus property Definition: 397 Samples | Law Insider
Sandals Travel Agent Login
CVS Health’s MinuteClinic Introduces New Virtual Care Offering
Wbap Iheart
Tokioof
Warren County Skyward
3 Bedroom 1 Bath House For Sale
Where Can I Cash A Huntington National Bank Check
Forager How-to Get Archaeology Items - Dino Egg, Anchor, Fossil, Frozen Relic, Frozen Squid, Kapala, Lava Eel, and More!
Royal Caribbean Luggage Tags Pending
Gideon Nicole Riddley Read Online Free
How to Get Into UCLA: Admissions Stats + Tips
Moxfield Deck Builder
The Land Book 9 Release Date 2023
Cl Bellingham
Elisabeth Shue breaks silence about her top-secret 'Cobra Kai' appearance
PruittHealth hiring Certified Nursing Assistant - Third Shift in Augusta, GA | LinkedIn
Gifford Christmas Craft Show 2022
2 Pm Cdt
Worcester County Circuit Court
Lacy Soto Mechanic
Tripadvisor Vancouver Restaurants
Content Page
Is Ameriprise A Pyramid Scheme
Hampton In And Suites Near Me
Www.homedepot .Com
Germany’s intensely private and immensely wealthy Reimann family
Brutus Bites Back Answer Key
Unpleasant Realities Nyt
Diamond Spikes Worth Aj
Okta Hendrick Login
Ravenna Greataxe
Dr Seuss Star Bellied Sneetches Pdf
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.