mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
IDToken: Add current user's DisplayName to the ID token (#90992)
Set claims.Rest.DisplayName from the IDService
This commit is contained in:
parent
f58dd70c2b
commit
057c04ed9d
@ -98,6 +98,7 @@ func (s *Service) SignIdentity(ctx context.Context, id identity.Requester) (stri
|
|||||||
claims.Rest.AuthenticatedBy = id.GetAuthenticatedBy()
|
claims.Rest.AuthenticatedBy = id.GetAuthenticatedBy()
|
||||||
claims.Rest.Username = id.GetLogin()
|
claims.Rest.Username = id.GetLogin()
|
||||||
claims.Rest.UID = id.GetUID()
|
claims.Rest.UID = id.GetUID()
|
||||||
|
claims.Rest.DisplayName = id.GetDisplayName()
|
||||||
}
|
}
|
||||||
|
|
||||||
token, err := s.signer.SignIDToken(ctx, claims)
|
token, err := s.signer.SignIDToken(ctx, claims)
|
||||||
|
Loading…
Reference in New Issue
Block a user