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