feat(oauth): fix mapping (#330)

This commit is contained in:
Steven Kang
2025-01-23 09:03:51 +13:00
committed by GitHub
parent 701ff5d6bc
commit d35d8a7307

View File

@@ -50,7 +50,7 @@ func (*Service) Authenticate(code string, configuration *portainer.OAuthSettings
return "", err
}
maps.Copy(idToken, resource)
maps.Copy(resource, idToken)
username, err := GetUsername(resource, configuration.UserIdentifier)
if err != nil {