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
@@ -89,7 +89,14 @@ func (i *Identity) GetIdentityType() identity.IdentityType {
// GetExtra implements identity.Requester.
func (i *Identity) GetExtra() map[string][]string {
return map[string][]string{}
extra := map[string][]string{}
if i.IDToken != "" {
extra["id-token"] = []string{i.IDToken}
}
if i.GetOrgRole().IsValid() {
extra["user-instance-role"] = []string{string(i.GetOrgRole())}
}
return extra
}
// GetGroups implements identity.Requester.