Forums

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

Why I am unable to create a task in Jira website using Bearer token from Postman?

santosh December 17, 2024

Screenshot 2024-12-18 at 12.51.16 PM.pngScreenshot 2024-12-18 at 12.50.49 PM.png 

I am able to create a task in Jira website using basic Auth(img-1) which means I gave all the necessary permissions, But whenever i use bearer token(img-2) I am getting the error response → “Client must be authenticated to access this resource.”

Help me to fit the best solution,
thanks in advance.

regards,

san.

2 answers

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
December 18, 2024

Hi @santosh 

For Jira cloud you just need:

- Auth Type: Basic

- Username: email

- Password: API token

You can get it from here: https://id.atlassian.com/manage-profile/security/api-tokens

Regards

santosh December 18, 2024

Thanks for you response Aaron,

I tried Basic Auth process, It was working but my concern is How can i get successful response using Bearer access token.

 

Hoping the best solution

thanks

S.

0 votes
Tomislav Tobijas
Community Champion
December 17, 2024

Hi @santosh ,

When using basic authentication, I'm assuming that you're using encrypted API token that was generated in your Atlassian profile?

Are you also encrypting token (base64) when using bearer authentication as well or just using the one generated by Atlassian? I'm asking because in case you're using bearer, you don't need to encrypt the token.

Cheers,
Tobi

santosh December 17, 2024

I am using whatever the token generated by this URL endpoint "https://auth.atlassian.com/oauth/token" + client credentials and I am getting the response like(img).

I did not encrypt the token!

Hoping the best solution,

thanks,

S.Screenshot 2024-12-18 at 1.22.08 PM.png

Tomislav Tobijas
Community Champion
December 18, 2024

@santosh Got it. Thanks for clarification.

I've consulted with my colleague who tested authentication methods and he said that he didn't manage to get authentication to work for bearer authentication (that's when we talk about cloud). For on-premise environments, bearer authentication works as expected.

You might want to check the following discussion on this topic Jira authentication method Bearer token is not working but as far as I can see, no one involved in the discussion didn't manage to get it to work. :/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events