Bearer token in postman

Postman

Postman Problem Overview


I want to set a Bearer Token in postman

For some reason my Postman doesn't have the Bearer Token option in the Auth dropdown

What can I do in Postman to show that option? Any ideas where I can find it? Regards.

Postman Solutions


Solution 1 - Postman

I'm not sure if those 2 images are from the same Postman application or not but the Bearer Token feature only came in on version 5.3.0.

You can just manually add an Authorization Request Header with a Bearer <my_token> value.

This is just a dummy value for demo purposes - The actual value should be Bearer + your token value.

Auth Header

That should work without the need to use that option from the drop down list. This would only just replicate automatically, what you would be doing manually anyway.

Solution 2 - Postman

I am using Postman v7.0.9.

Add accessToken variable to postman environmental variable.

enter image description here

Then use Tests tab to write javascript.

enter image description here

let jsonData = pm.response.json();
let token = jsonData.accessToken;
pm.environment.set('accessToken', token);

If you are usign the current version "Bearer Token" type is under Authorization tab.

enter image description here

Solution 3 - Postman

You have a some options to add authorization type:

  1. Go headers tap and add => key: Authorization value:Bearer

  2. Create collection > select authorization

  3. click code and add headers

enter image description here

headers:
{
  'Postman-Token': '55..',
  'cache-control': 'no-cache',
  'Authorization': 'Bearer eyJhbG...'
}

Solution 4 - Postman

Feb, 2021 - Following worked for me

From the type, choose 'Bearer Token'.

Enter Token in the field as shown below in screenshot:

enter image description here

Solution 5 - Postman

The problem is with Postman with Chrome or Chrome extension of Postman, It doesn't have more authorization options.

So Just download the new postman app, it has more features and you will get the Bearer Token option too.

Solution 6 - Postman

I faced this problem a long time ago. And I solved this problem by installing the Desktop version and again login with Google account. After that Bearer Token visible in postman!

In my case, I used Windows 8.1 and 64 bit.

here you can get the desktop version

Solution 7 - Postman

> Add manually in Header, Key as Authorization and Value as Bearer + space then your token like the below snapshot.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDavidView Question on Stackoverflow
Solution 1 - PostmanDanny DaintonView Answer on Stackoverflow
Solution 2 - PostmanCihangirView Answer on Stackoverflow
Solution 3 - PostmanhetView Answer on Stackoverflow
Solution 4 - PostmanRajeev JayaswalView Answer on Stackoverflow
Solution 5 - PostmanDIVYANSHU SAHUView Answer on Stackoverflow
Solution 6 - PostmanAbu SiddiqueView Answer on Stackoverflow
Solution 7 - PostmanAbdul KhaliqView Answer on Stackoverflow