-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Request more than one info url #97
Comments
Generally, I think this is a nice idea to allow custom |
another thing - I don't think the custom GetUserInfoFn should do the basic part at all. I.e. the basic mapping for ID, name, and picture is kind of a must-have anyway, and making the user's function to repeat the current implementation of the Probably we may want some ExtraUserFn to be invoked as a part of |
Thanks @umputun. I think both of your remarks make a lot of sense. Where do you think would be a good place to add this on the API surface?
No 3 would be the most useful from my point of view. But you probably have a better overview and can think of issues with those approaches/other ideas? |
I went ahead and created a draft PR for this, as the implementation seemed simple enough. Let me know how you feel about it :) |
After authentication with my provider (GitHub) I would like to fill the token.User with additional info like the organizations/teams they are in to allow RBAC later on. Unfortunately, it seems like the access token is only used to retrieve the infoURL and avatar and is discarded afterwards.
Is there some functionality in this to use the access token to do another request in
MapUserFn
orClaimsUpd
? If not, do you think it would be possible to add another hook for this? Something likethat would by default do the current implementation
but could be overridden with a custom implementation?
The text was updated successfully, but these errors were encountered: