Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): update user access immediately on tenant role updates #5720

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: improve comments
Co-authored-by: Gao Sun <gao@silverhand.io>
  • Loading branch information
charIeszhao and gao-sun authored Apr 16, 2024
commit e8a9e7057ec8a4bdd90fa2be910a0c3f2bde1a51
1 change: 1 addition & 0 deletions packages/console/src/containers/ConsoleContent/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { saveRedirect } from '@/utils/storage';
/**
* Listens to the tenant scope changes for the current signed-in user. This hook will fetch the tenant scopes
* for the user, and compare it with the "scope" token claim in access token. After comparing the scopes:
*
* - If the user has been granted new scopes, it will re-consent to obtain the additional scopes.
* - If the user has been revoked scopes, it will clear the cached access token and renew one with shrunk scopes.
*
Expand Down
Loading