Can't login through api (and gitlab-ci) using omniauth != LDAP
Created by: dpasqualin
I've installed gitlab-ci, which (as you know) can integrate with Gitlab users database through the api, but this feature doesn't seem to work with omniauth authentication (kerberos).
What I've found out so far:
When I first log in through kerberos, gitlab creates an internal account for the new user with a random password. Afterwards, I'm able to log in using my kerberos login/password in the Gitlab login page, and completely ignore the random password generated, as expected.
But if I try to log in through the api, instead of looking for my kerberos login/password, the api checks only for my Gitlab account information, and the random generated password, which I don't possess.
I've tried to track the login process at the code and it seems to me that the problem is in the lib/gitlab/auth.rb file, which tries to log in using either the Gitlab or LDAP account, but not any other omniauth provider.