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

This reverts commit 10170cb839.
This commit is contained in:
Charandas
2024-07-31 21:27:46 +03:00
committed by GitHub
parent e81fa0e4c5
commit a3d3f9a1e4
3 changed files with 18 additions and 2 deletions
+8 -1
View File
@@ -94,7 +94,14 @@ func (u *SignedInUser) GetName() string {
// GetExtra implements Requester.
func (u *SignedInUser) GetExtra() map[string][]string {
return 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
}
// GetGroups implements Requester.