-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
18
-
Summary
Using correct email address and API Token (or password) is not working when authenticating REST API calls.
Notes
The bug in on the Identity side, and it will equally affect Jira, Confluence and Stride. This usually happens when using managed accounts (using SSO or Google Sync to log-in) and it is caused by some change that didn't propagate correctly, like, e.g:
- A user change's their email
- SAML user changes email at the IdP
- User has their email updated by an org admin
Steps to Reproduce
- Log into the instance and open an issue (e.g. ISSUE-123)
- From the browser, call the REST endpoint to get the issue information and see that you get the correct response (https://INSTANCE/rest/api/latest/issue/ISSUE-123)
- Generate an API Token and use it to authenticate a REST API call against the same endpoint (https://INSTANCE/rest/api/latest/issue/ISSUE-123)
Expected Results
You get the same REST response than in step 2
Actual Results
You get error 401 Unauthorized instead.
Workaround
It is usually enough to log into id.atlassian.com with email address and password (better if from an incognito/anonymous window) to have the changes propagated.
- is related to
-
JRACLOUD-46830 REST API /rest/auth/1/session 401 with correct credentials
- Closed