diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-05-31 21:43:47 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-01 08:46:46 +0300 |
commit | 39b6f31c66ff51451033ff84a2832731065cd28d (patch) | |
tree | 0554167eb4e6133390e77016139bfe5c8b39ba3b /lib/gitlab/auth.rb | |
parent | db40a7c4e359052313b9a7bf104aa4e9586deada (diff) |
Eliminate constants warnings by:
* Replace `require` or `require_relative` with `require_dependency`
* Remove unneeded `autoload`
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r-- | lib/gitlab/auth.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb index 8e5a985edd7..7047724cfe1 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -14,6 +14,10 @@ module Gitlab DEFAULT_SCOPES = [:api].freeze class << self + def omniauth_providers + %w[bitbucket jwt] + end + def find_for_git_client(login, password, project:, ip:) raise "Must provide an IP for rate limiting" if ip.nil? |