mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AuthInfo: No mandatory auth_id in Auth Info service (#81335)
* fix auth info update not having mandatory auth_id * remove uneeded newline
This commit is contained in:
@@ -147,6 +147,11 @@ func (c *OAuth) Authenticate(ctx context.Context, r *authn.Request) (*authn.Iden
|
||||
return nil, errOAuthUserInfo.Errorf("failed to get user info: %w", err)
|
||||
}
|
||||
|
||||
// Implement in Grafana 11
|
||||
// if userInfo.Id == "" {
|
||||
// return nil, errors.New("idP did not return a user id")
|
||||
// }
|
||||
|
||||
if userInfo.Email == "" {
|
||||
return nil, errOAuthMissingRequiredEmail.Errorf("required attribute email was not provided")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user