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
Unknown Object (File)
Feb 17 2024, 12:17 AM
Unknown Object (File)
Feb 14 2024, 4:35 AM
Unknown Object (File)
Feb 8 2024, 3:38 AM
Unknown Object (File)
Feb 4 2024, 12:08 AM
Unknown Object (File)
Jan 25 2024, 2:22 AM
Unknown Object (File)
Jan 18 2024, 8:57 AM
Unknown Object (File)
Jan 11 2024, 12:04 PM
Unknown Object (File)
Jan 9 2024, 10:50 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable