mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
OIDC: ensure token username adheres to naming conventions
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -542,7 +542,7 @@ func (s *httpdServer) oidcTokenAuthenticator(audience tokenAudience) func(next h
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
jwtTokenClaims := jwtTokenClaims{
|
jwtTokenClaims := jwtTokenClaims{
|
||||||
Username: token.Username,
|
Username: dataprovider.ConvertName(token.Username),
|
||||||
Permissions: token.Permissions,
|
Permissions: token.Permissions,
|
||||||
Role: token.TokenRole,
|
Role: token.TokenRole,
|
||||||
HideUserPageSections: token.HideUserPageSections,
|
HideUserPageSections: token.HideUserPageSections,
|
||||||
|
|||||||
Reference in New Issue
Block a user