Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Use minimal OpenID scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Miouge1 committed Mar 19, 2018
1 parent af9266a commit e179baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kuberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const (
var (
// DefaultScopes are the minimum required oauth2 scopes for every
// authentication request.
DefaultScopes = []string{oidc.ScopeOpenID, "profile", "email"}
DefaultScopes = []string{oidc.ScopeOpenID}

// ErrInvalidKubeCfgEndpoint indicates an unparseable redirect endpoint.
ErrInvalidKubeCfgEndpoint = errors.New("invalid redirect endpoint")
Expand Down
2 changes: 1 addition & 1 deletion kuberos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestAuthCodeURL(t *testing.T) {
RedirectURL: "https://example.org/redirect",
},
s: func(_ *http.Request) string { return "state" },
url: "https://auth.example.org?access_type=offline&client_id=testClientID&prompt=consent&redirect_uri=http%3A%2F%2Fexample.com%2Fui&response_type=code&scope=openid+profile+email&state=state",
url: "https://auth.example.org?access_type=offline&client_id=testClientID&prompt=consent&redirect_uri=http%3A%2F%2Fexample.com%2Fui&response_type=code&scope=openid&state=state",
},
{
name: "CustomScopes",
Expand Down

0 comments on commit e179baa

Please sign in to comment.