git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #447 from Miouge1/master

Use read_user as default scope for GitLab

commit7b26256df62d0d00993433105794d2f23d8c27e4 authorJehiah Czebotar <jehiah@gmail.com> dateWed 13 Sep 2017, 10:27 (9 years ago) parente87c3eea32ff08
2 files changed+2−2
providers/gitlab.go+1−1 providers/gitlab_test.go+1−1
providers/gitlab.go+1−1
@@ -36,7 +36,7 @@ func NewGitLabProvider(p *ProviderData) *GitLabProvider {
3636 }
3737 }
3838 if p.Scope == "" {
39− p.Scope = "api"
39+ p.Scope = "read_user"
4040 }
4141 return &GitLabProvider{ProviderData: p}
4242}
providers/gitlab_test.go+1−1
@@ -53,7 +53,7 @@ func TestGitLabProviderDefaults(t *testing.T) {
5353 p.Data().RedeemURL.String())
5454 assert.Equal(t, "https://gitlab.com/api/v3/user",
5555 p.Data().ValidateURL.String())
56− assert.Equal(t, "api", p.Data().Scope)
56+ assert.Equal(t, "read_user", p.Data().Scope)
5757}
5858
5959func TestGitLabProviderOverrides(t *testing.T) {