Skip to content

Bug 2047912 - Fix - Auth token refresh demoting users#9614

Open
davidmiculit wants to merge 2 commits into
mozilla:masterfrom
davidmiculit:fix/renewal-demoting-user
Open

Bug 2047912 - Fix - Auth token refresh demoting users#9614
davidmiculit wants to merge 2 commits into
mozilla:masterfrom
davidmiculit:fix/renewal-demoting-user

Conversation

@davidmiculit

Copy link
Copy Markdown
Collaborator

Bug 2047912 - Fix - Auth token refresh demoting users

The problem:

  • User gets demoted from "is_staff: true" on token refresh because the groups claim is missing from renewals
  • The session continues with user logged in with "is_staff: false" and the UI showing "You must be logged into perfherder/treeherder and be a sheriff to make changes"

Proposed fix:

  • In the case of a token refresh, which doesn't carry the groups claim, keep the user's current permissions granted when logging in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant