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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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. :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.