diff options
author | Robert Speicher <robert@gitlab.com> | 2017-12-07 18:42:25 +0000 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-01-09 21:22:47 +0000 |
commit | d250b1d2155eca1779a84668da40d2b273188254 (patch) | |
tree | 8e59a24cf68d744bed3ca7702085139e1a50da1c /lib/gitlab/o_auth.rb | |
parent | 8043a3112c1a22d68193e41c85a501a74caeab21 (diff) | |
download | gitlab-ce-d250b1d2155eca1779a84668da40d2b273188254.tar.gz |
Merge branch 'jej/fix-disabled-oauth-access' into 'security-10-2'
Prevent login with disabled OAuth providers
See merge request gitlab/gitlabhq!2223
(cherry picked from commit 43b6135f2226625b5e50d9aa2149a0ea74bb1336)
a4bb4a5b Prevents login with disabled OAuth providers
Diffstat (limited to 'lib/gitlab/o_auth.rb')
-rw-r--r-- | lib/gitlab/o_auth.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/o_auth.rb b/lib/gitlab/o_auth.rb new file mode 100644 index 00000000000..5ad8d83bd6e --- /dev/null +++ b/lib/gitlab/o_auth.rb @@ -0,0 +1,6 @@ +module Gitlab + module OAuth + SignupDisabledError = Class.new(StandardError) + SigninDisabledForProviderError = Class.new(StandardError) + end +end |