README.md in omniauth-gitlab-1.0.3 vs README.md in omniauth-gitlab-1.0.4
- old
+ new
@@ -39,12 +39,16 @@
}
end
## Custom scopes
+By default, the `api` scope is requested and must be allowed in GitLab's application configuration. To use different scopes:
+
use OmniAuth::Builder do
provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'], scope: 'read_user openid'
end
+
+Requesting a scope that is not configured will result the error "The requested scope is invalid, unknown, or malformed.".
## Old API version
API V3 will be unsupported from GitLab 9.5 and will be removed in GitLab 9.5 or later.