Merge pull request #447 from Miouge1/master
Use read_user as default scope for GitLab
This commit is contained in:
commit
7b26256df6
@ -36,7 +36,7 @@ func NewGitLabProvider(p *ProviderData) *GitLabProvider {
|
||||
}
|
||||
}
|
||||
if p.Scope == "" {
|
||||
p.Scope = "api"
|
||||
p.Scope = "read_user"
|
||||
}
|
||||
return &GitLabProvider{ProviderData: p}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user