AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Pre request script postman11/13/2023 And we'd like to ensure, that we are always calling with a fresh and valid token. " But, hey wait.", you say, ".t hen, why don't we just use the built-in OAuth 2.0 authorization mechanism that Postman provides out of the box?"īecause the current postman version (v8.3.1 as of writing) doesn't provide an automatic token refresh mechanism. ![]() We are going to automate this steps with postman's pre-request script feature. Now for OAuth 2.0 protected APIs it is rather time-consuming and inefficient having to request a token from the Azure AD endpoint manually, store it somewhere, and then setting the authorization header by pasting in the token. Then, at some point, I switch over to my tool of choice, which is Postman. I do so by poking around to get a feeling of what it has to offer and usually start off by skimming through the documentation & examining the Swagger UI (if available). Pm.When I discover a new REST API, I usually like to explore it before I start to code against it.
0 Comments
Read More
Leave a Reply. |