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

Update user name with security getUserFromToken #126

Open
waynesun09 opened this issue Mar 6, 2023 · 1 comment
Open

Update user name with security getUserFromToken #126

waynesun09 opened this issue Mar 6, 2023 · 1 comment

Comments

@waynesun09
Copy link
Collaborator

If user use token to login and the user name is not provided in the config we could use the getUserFromToken function to get the user name with the given token. But the function need user have the permission to use, so it's not available to all users.

We could use the function if current token user is allowed to update the user name for cfg, or else we need caught the exception with the permission error and skip update the user with cfg object.

@waynesun09
Copy link
Collaborator Author

This issue is a follow up issue with PR
#125

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

No branches or pull requests

1 participant