Browse Source

OIDC: ensure token username adheres to naming conventions

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 7 months ago
parent
commit
aea036715c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/httpd/oidc.go

+ 1 - 1
internal/httpd/oidc.go

@@ -553,7 +553,7 @@ func (s *httpdServer) oidcTokenAuthenticator(audience tokenAudience) func(next h
 			}
 			jwtTokenClaims := jwtTokenClaims{
 				JwtID:                token.Cookie,
-				Username:             token.Username,
+				Username:             dataprovider.ConvertName(token.Username),
 				Permissions:          token.Permissions,
 				Role:                 token.TokenRole,
 				HideUserPageSections: token.HideUserPageSections,