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.
Hello @jeevitha
Google is fantastic. You should try it!
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.
are you referring to this link https://jira.atlassian.com/browse/JRASERVER-78353?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.