Open
Description
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
or ClaimsUpd
? If not, do you think it would be possible to add another hook for this? Something like
GetUserInfoFn(client *http.Client) provider.UserData
that would by default do the current implementation
uinfo, err := client.Get(p.infoURL)
but could be overridden with a custom implementation?
Metadata
Metadata
Assignees
Labels
No labels