Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab disable regular username password login and only allow OmniAuth login

I have gitlab all set up and ready with omniauth and I was wondering if it is possible to disable default authentication with password and username entirely and to use only omniauth (in our case google login). What I'm hoping to achieve is enhanced security through enforced two factor authentication with google apps bundled together with omniauth.

like image 693
Qiong Wu Avatar asked Oct 28 '14 20:10

Qiong Wu


1 Answers

After Gitlab version 7.7.0, you can now set up sign-up and sign-in behaviour in the Admin area, under the Settings page. Unchecking Signin enabled option will only let OAuth login available.

Note that gitlab_rails['gitlab_signin_enabled'] and gitlab_rails['gitlab_signup_enabled'] settings in gitlab.rb now have no effect.

like image 126
Pierre Prinetti Avatar answered Sep 20 '22 13:09

Pierre Prinetti