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
What is a Roth IRA? : How to Invest Your Money Like a Boss
Qu'est-ce qu'un altcoin en crypto ?
Craigslist Livingston Montana
11 beste sites voor Word-labelsjablonen (2024) [GRATIS]
Kreme Delite Menu
What happened to Lori Petty? What is she doing today? Wiki
Www.politicser.com Pepperboy News
Lost Ark Thar Rapport Unlock
Unraveling The Mystery: Does Breckie Hill Have A Boyfriend?
Waive Upgrade Fee
Rls Elizabeth Nj
Toonily The Carry
Sport Clip Hours
What Happened To Maxwell Laughlin
Cashtapp Atm Near Me
Truth Of God Schedule 2023
Daily Voice Tarrytown
Craigslist Free Stuff Greensboro Nc
Gdp E124
Roll Out Gutter Extensions Lowe's
G Switch Unblocked Tyrone
Vanessawest.tripod.com Bundy
Weepinbell Gen 3 Learnset
Nevermore: What Doesn't Kill
Beverage Lyons Funeral Home Obituaries
Kingdom Tattoo Ithaca Mi
Rs3 Ushabti
Prep Spotlight Tv Mn
Violent Night Showtimes Near Amc Dine-In Menlo Park 12
Mdt Bus Tracker 27
Darrell Waltrip Off Road Center
Speedstepper
Busted Mugshots Paducah Ky
Doctors of Optometry - Westchester Mall | Trusted Eye Doctors in White Plains, NY
Mini-Mental State Examination (MMSE) – Strokengine
N.J. Hogenkamp Sons Funeral Home | Saint Henry, Ohio
Ucm Black Board
Wcostream Attack On Titan
Σινεμά - Τι Ταινίες Παίζουν οι Κινηματογράφοι Σήμερα - Πρόγραμμα 2024 | iathens.gr
Joplin Pets Craigslist
Junior / medior handhaver openbare ruimte (BOA) - Gemeente Leiden
Hometown Pizza Sheridan Menu
Electronic Music Duo Daft Punk Announces Split After Nearly 3 Decades
Colorado Parks And Wildlife Reissue List
Top 40 Minecraft mods to enhance your gaming experience
Online-Reservierungen - Booqable Vermietungssoftware
Unblocked Games 6X Snow Rider
Slug Menace Rs3
Lira Galore Age, Wikipedia, Height, Husband, Boyfriend, Family, Biography, Net Worth
Causeway Gomovies
2121 Gateway Point
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.