mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-27 10:32:26 +00:00
feat: forward sub from oidc providers
This commit is contained in:
@@ -173,6 +173,9 @@ func (github *GithubOAuthService) Userinfo() (config.Claims, error) {
|
||||
user.PreferredUsername = userInfo.Login
|
||||
user.Name = userInfo.Name
|
||||
|
||||
// Github does not implement OIDC, so no sub is available
|
||||
user.Sub = "not_available_dont_use_me"
|
||||
|
||||
return user, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user