Limit login to gitlab plugin?


(Mark Moorcroft) #1

We are wondering if we can limit logins only to the gitlab omniauth plugin for everyone but the Admin. Or to a group we define.

On version v1.7.0.beta6 +13


(Sam Saffron) #2

Sort of, admin can always login via: /users/admin-login


(Mark Moorcroft) #3

How do you disable standard login so all users see is the GitLab plugin “tab”?


(Erlend Sogge Heggen) #4

You’ll want to disable enable local logins


(Mark Moorcroft) #5

This appears to have no effect. The behavior seems exactly the same. I going out on a limb and guessing that since the login is the GitLab pop-up, the behavior is determined in GitLab, not Discourse. And GitLab has no UI to set that stuff. So I guess I’m off to ask the GitLab folks how this is done. Or if it can be done without disabling non-kerberos local admin accounts. Logging out of GitLab seems to leave you still logged into Discourse once the session is established. This is not exactly optimal, but I’m not sure how you would fix it either.