Automating Security token in Postman


  1. Latest version of Postman
  2. A service that is used by your application for authorization.


  1. Create a collection in Postman
Pre-request Script
Postman Console
  1. We create the header for the request to the auth service.
  2. Then Extract the hostname from the request URL. Why?

I like building stuff.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gaurav Sharma

Gaurav Sharma

I like building stuff.

More from Medium

How To Install ELK Stack On Windows Server 2019 With Let’s Encrypt SSL

Installing Let’s Encrypt SSL Certificate to WP Lightsail Instance.

[ARO] Add node labels using MachineSet

FluxCD — Deploy a Helm Chat from Git