Skip to content

Commit

Permalink
Update connect.go
Browse files Browse the repository at this point in the history
  • Loading branch information
julian9499 authored Apr 11, 2023
1 parent bbfd616 commit 032e114
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func connect(URL, clientID, clientSecret, redirectURL, group string) {
Endpoint: provider.Endpoint(),

// "openid" is a required scope for OpenID Connect flows.
Scopes: []string{oidc.ScopeOpenID, "ldap"},
Scopes: []string{oidc.ScopeOpenID, "auth"},
}

}
Expand Down Expand Up @@ -127,10 +127,10 @@ func checkAuth(rawIDToken string) bool {
}

var claims struct {
Groups []string `json:"ldap_groups"`
Groups []string `json:"google_groups"`
}
if err := idToken.Claims(&claims); err != nil {
log.Errorf("unable to read ldap_groups from id_token, error: %s", err)
log.Errorf("unable to read google_groups from id_token, error: %s", err)
return false
}

Expand Down

0 comments on commit 032e114

Please sign in to comment.