1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-06 08:59:21 +02:00

Update Keycloak documentation

This commit is contained in:
Nick Meves
2020-12-12 13:50:34 -08:00
parent 138a6b128a
commit f07a5630f1
3 changed files with 24 additions and 11 deletions

View File

@@ -80,9 +80,7 @@ func (p *KeycloakProvider) EnrichSession(ctx context.Context, s *sessions.Sessio
}
groups, err := json.Get("groups").StringArray()
if err != nil {
logger.Errorf("Warning: unable to extract groups from userinfo endpoint: %v", err)
} else {
if err == nil {
for _, group := range groups {
if group != "" {
s.Groups = append(s.Groups, group)