Hi Team,
I am not able to authenticate /rest/auth/1/session using Personal Access Token after upgrading JIRA Datacenter to 10.3.2.
Here's the snippet which I have tried ,
curl --location --request POST 'https://jira-dev.cox.com/rest/auth/1/session?Content-Type=application%2Fjson&accept=application%2Fjson' \ --header 'Authorization: Bearer MjAzOTY1MjM4NDUyOtDq3Y/qCrXPiI/A6dSpjrmdbQsE' \ --header 'Cookie: NSC_kjsb-efw.dpy*443=ffffffff0948294545525d5f4f58455e445a4a42378b' \ --data ''
And I am getting following 403- forbidden error :
I have already followed the steps outlined in the link https://jira.atlassian.com/browse/JRASERVER-78353.
According to the workaround mentioned in the ticket, I am attempting to use a Personal Access Token mentioned above to authenticate the API endpoint, but it’s not working.
Also, we dont want to revert back to legacy login form (pre-10.2 behaviour) by adding the JVM parameter due to security concerns.
are you referring to this link https://jira.atlassian.com/browse/JRASERVER-78353?
Is that a link to the first result returned from the Google search?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @jeevitha
Google is fantastic. You should try it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @David Bakkers ,
Thank you for the suggestion.
I have already followed the steps outlined and checked the link https://jira.atlassian.com/browse/JRASERVER-78353.
According to the workaround mentioned in the ticket, I am attempting to use a Personal Access Token mentioned above to authenticate the API endpoint, but it’s not working.
Could you please assist me with this?
Also, we dont want to revert back to legacy login form (pre-10.2 behaviour) by adding the JVM parameter due to security concerns.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"I am attempting to use a Personal Access Token
No you're not. You're using a SESSION COOKIE to access the SESSION COOKIE auth endpoint.
I can see it, right there, in your cURL request:
Also, we don't want to revert back to legacy login form (pre-10.2 behaviour) by adding the JVM parameter due to security concerns.
Well, then you can't have the solution to your particular problem.
This is the same issue as described in this thread a few days ago. Jira 10.2 increased security for Session Cookies. If you want to persist with using them for accessing the REST API, then you must revert to the legacy, non two-step authentication for browser sessions.
I recommend that you liaise with your organization's IT department who can explain it to you in more detail, and also show you how to correctly use Basic Auth with PATs.
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.