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
F18759843: D21170.id50407.diff
Mon, Oct 6, 6:12 AM
F18743363: D21170.diff
Thu, Oct 2, 11:22 PM
F18672459: D21170.id50408.diff
Thu, Sep 25, 7:34 AM
F18672412: D21170.id50407.diff
Thu, Sep 25, 7:29 AM
F18659754: D21170.id50407.diff
Tue, Sep 23, 3:29 PM
F18656554: D21170.id.diff
Mon, Sep 22, 10:52 PM
F18605853: D21170.diff
Sep 13 2025, 9:29 PM
F18600272: D21170.id50408.diff
Sep 13 2025, 9:24 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable