Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Postman BasicAuth with Username/API-Token: 401

Frank Leverenz June 13, 2025

Hi,

I generated a token for my user but cannot login with postman "BasicAuth" with email and this token as password: get 401

Postman BasicAuth with token.png

I found these artikles but cannot find a solution

Jira v9.4.17 on premise

 

Any ideas?

1 answer

0 votes
Evgenii
Community Champion
June 13, 2025

Hi, @Frank Leverenz 

Welcome to Atlassian community.

If you want to use Basic Auth, you need to use your username and password, not token.

For token you must use Bearer Token authorization

Screenshot_17.png

Frank Leverenz June 13, 2025

Hi @Evgenii 

thank you for your quick response

Here is the atlassian documentation for "basic auth": Link

  1. Generate an API Token for your Atlassian Account: https://id.atlassian.com/manage/api-tokens
  2. Build a string of the form your_email@domain.com:your_user_api_token.
  3. You'll need to encode your authorization credentials to Base64 encoded

This is, what I've done

I also tested username/password, but this didn't work

BearerToken ist NOT the same as an API-Token:

  • an API-token is generated and saved in my Account: https://id.atlassian.com/manage/api-tokens
  • a BearerToken is generated by the auth-system after successful authentication and is only valid for the current session
Evgenii
Community Champion
June 13, 2025

@Frank Leverenz 

This documentation is for Cloud. But you're using onprem solution. 
Token, which you made in Atlassian account absolutely isn't linked with your onprem DataCenter Jira and any user in it. 

Frank Leverenz June 13, 2025

Ho @Evgenii 

I generated the API-Token in my profile on our onprem solution, not in the atlassian cloud

API Token.png

So this won't work?

Evgenii
Community Champion
June 13, 2025

If you want to use token, which you created, use BearerToken authentication
Screenshot_19.png

If you want to use Basic Authentication, use login and password
Screenshot_18.png

It's for Onpremise solution.



In Cloud solution logic is absolutely different.

Suggest an answer

Log in or Sign up to answer