diff --git a/providers/gitlab.go b/providers/gitlab.go index 708283a..d036ac7 100644 --- a/providers/gitlab.go +++ b/providers/gitlab.go @@ -36,7 +36,7 @@ func NewGitLabProvider(p *ProviderData) *GitLabProvider { } } if p.Scope == "" { - p.Scope = "api" + p.Scope = "read_user" } return &GitLabProvider{ProviderData: p} } diff --git a/providers/gitlab_test.go b/providers/gitlab_test.go index 3df001c..54b1052 100644 --- a/providers/gitlab_test.go +++ b/providers/gitlab_test.go @@ -53,7 +53,7 @@ func TestGitLabProviderDefaults(t *testing.T) { p.Data().RedeemURL.String()) assert.Equal(t, "https://gitlab.com/api/v3/user", p.Data().ValidateURL.String()) - assert.Equal(t, "api", p.Data().Scope) + assert.Equal(t, "read_user", p.Data().Scope) } func TestGitLabProviderOverrides(t *testing.T) {