Identity: Remove id token from extra info (#91169)

This commit is contained in:
Ryan McKinley
2024-07-31 09:14:13 +03:00
committed by GitHub
parent 68f1a0619d
commit 10170cb839
3 changed files with 2 additions and 18 deletions
+1 -8
View File
@@ -94,14 +94,7 @@ func (u *SignedInUser) GetName() string {
// GetExtra implements Requester.
func (u *SignedInUser) GetExtra() map[string][]string {
extra := map[string][]string{}
if u.IDToken != "" {
extra["id-token"] = []string{u.IDToken}
}
if u.OrgRole.IsValid() {
extra["user-instance-role"] = []string{string(u.GetOrgRole())}
}
return extra
return map[string][]string{}
}
// GetGroups implements Requester.