Forums

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

Authenticate JIRA

Subhajit Bhuiya June 10, 2018

I have created a html form with username and password. Now I to authenticate against JIRA. I send did a POST to url /rest/auth/1/session with username and password. Post is successful.  But in the next servlet call, in my java code  JiraAuthenticationContext.getLoggedInUser is showing no user is logged in.

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2018

Hello,

When you execute the rest/auth/1/session REST call, you get a cookie as a request. Then you have to pass this cookie in all subsequent requests. You can find more info here:

https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events