Closed Bug 1619609 Opened 4 years ago Closed 4 years ago

Update /rest/whoami to return group membership, and support authenticating with a Phabricator conduit token

Categories

(bugzilla.mozilla.org :: API, task)

Production
task
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: glob)

Details

Attachments

(1 file)

In order to identify classes of users client-side I'd like to extend the current /rest/whoami endpoint:

  • return a list of groups the user is a member of
  • support authentication with a conduit token

The second point deserves more information.

Developers workstations do not contain a Bugzilla API-Key, however all users of moz-phab have a Phabricator API-Key, and Phabricator delegates authentication to Bugzilla.

I'd like, for the whoami endpoint only to support an phabricator_token parameter or similar. If provided, Bugzilla will use that token to hit Phabricator's whoami endpoint to get the user's primaryEmail, we can then use to load the Bugzilla user.

Attached file GitHub Pull Request
Assignee: nobody → dkl
Assignee: dkl → glob
Status: NEW → ASSIGNED

Merged to master.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: