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

Embed role information within access tokens for frontend #18

Open
Anarav opened this issue Jul 23, 2020 · 1 comment · Fixed by #29
Open

Embed role information within access tokens for frontend #18

Anarav opened this issue Jul 23, 2020 · 1 comment · Fixed by #29
Assignees
Labels
bug Something isn't working

Comments

@Anarav
Copy link
Collaborator

Anarav commented Jul 23, 2020

Since role gets sent along with access and refresh token, changes in permissions won't be reflected if the front-end stores it early on when receiving the tokens for the first time. Instead we can maybe send it by embedding into the payload of the access token itself so that role updates are reflected accordingly.

@Anarav Anarav added the bug Something isn't working label Jul 23, 2020
@Anarav Anarav assigned Anarav and unassigned Kironb Aug 22, 2020
@Anarav Anarav linked a pull request Aug 22, 2020 that will close this issue
@Anarav
Copy link
Collaborator Author

Anarav commented Aug 22, 2020

Frontend also needed the name so everything was moved to the JWT payload at once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants