Page MenuHomePhabricator

Read both older "key" and newer "accountId" identifiers from JIRA during authentication
ClosedPublic

Authored by epriestley on Feb 23 2020, 1:36 AM.
Tags
None
Referenced Files
F13206178: D21023.id50072.diff
Wed, May 15, 5:43 AM
F13206010: D21023.id50084.diff
Wed, May 15, 4:32 AM
F13191491: D21023.id.diff
Sat, May 11, 9:43 PM
F13181158: D21023.diff
Thu, May 9, 9:15 AM
Unknown Object (File)
Sat, May 4, 11:11 PM
Unknown Object (File)
Fri, May 3, 6:14 AM
Unknown Object (File)
Thu, May 2, 8:26 AM
Unknown Object (File)
Thu, Apr 25, 1:04 AM
Subscribers
None

Details

Summary

Depends on D21022. Ref T13493. The JIRA API has changed from using "key" to identify users to using "accountId".

By reading both identifiers, this linkage "just works" if you run against an old version of JIRA, a new version of JIRA, or an intermediate version of JIRA.

It also "just works" if you run old JIRA, upgrade to intermediate JIRA, everyone refreshes their link at least once, then you upgrade to new JIRA.

This is a subset of cases and does not include "sudden upgrade to new JIRA", but it's strictly better than the old behavior for all cases it covers.

Test Plan

Linked, unlinked, and logged in with JIRA. Looked at the "ExternalAccountIdentifier" table and saw a sensible value.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable