Skip to content

Commit

Permalink
fix(sso): Remove unused groups claim. Fixes #3411 (#3427)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jul 8, 2020
1 parent 330d4a0 commit b4da1bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/auth/sso/sso.go
Expand Up @@ -20,7 +20,6 @@ import (
const Prefix = "Bearer id_token:"

type claims struct {
Groups []string `json:"groups"`
}

type Interface interface {
Expand Down Expand Up @@ -115,7 +114,7 @@ func newSso(
ClientSecret: string(clientSecret),
RedirectURL: c.RedirectURL,
Endpoint: provider.Endpoint(),
Scopes: []string{oidc.ScopeOpenID, "groups"},
Scopes: []string{oidc.ScopeOpenID},
}
idTokenVerifier := provider.Verifier(&oidc.Config{ClientID: config.ClientID})
log.WithFields(log.Fields{"redirectUrl": config.RedirectURL, "issuer": c.Issuer, "clientId": c.ClientID}).Info("SSO configuration")
Expand Down

0 comments on commit b4da1bc

Please sign in to comment.