Page MenuHomePhabricator

Use "rest/api/3/myself" to retrieve JIRA profile details, not "rest/auth/1/session"
ClosedPublic

Authored by epriestley on Apr 25 2020, 9:00 PM.
Tags
None
Referenced Files
F17449989: D21170.id50407.diff
Tue, Jul 1, 12:37 PM
Unknown Object (File)
Mon, Jun 30, 5:55 AM
Unknown Object (File)
Sun, Jun 29, 5:50 PM
Unknown Object (File)
Thu, Jun 5, 4:52 PM
Unknown Object (File)
May 26 2025, 5:45 AM
Unknown Object (File)
May 25 2025, 6:55 PM
Unknown Object (File)
May 13 2025, 10:21 PM
Unknown Object (File)
May 13 2025, 10:20 PM
Subscribers
None

Details

Summary

Ref T13493. At time of writing, the old API method no longer functions: 1/session does not return an accountId but all calls now require one.

Use the modern 3/myself API instead. The datastructure returned by 2/user (older appraoch) and 3/myself (newer approach) is more or less the same, as far as I can tell.

Test Plan

Linked an account against modern-at-time-of-writing Atlassian-hosted JIRA.

Diff Detail

Repository
rP Phabricator
Branch
jira1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24226
Build 33367: Run Core Tests
Build 33366: arc lint + arc unit