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
F13238899: D21170.diff
Tue, May 21, 10:28 PM
F13219338: D21170.id50408.diff
Sat, May 18, 5:35 PM
F13213236: D21170.diff
Fri, May 17, 7:32 AM
F13206040: D21170.id.diff
Wed, May 15, 4:50 AM
F13198388: D21170.id50407.diff
Mon, May 13, 6:05 AM
F13183207: D21170.diff
Fri, May 10, 7:36 AM
Unknown Object (File)
Tue, May 7, 5:40 AM
Unknown Object (File)
Fri, May 3, 1:06 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