Search code examples
gitlabomniauthcasgitlab-omnibus

Synchronize gitlab password with cas


I've configured Gitlab CE 10.6 with OmniAuth and a CAS server that authenticates against two Active Directories and a users db. The login process is working fine to make the automatic signup, etc... now, i've been asked to synchronize the password from my CAS server with the gitlab password to avoid this extra step for the user, Is there any configuration or property to do this? If not what do you recommend me to do to solve this requirement?

Thank you in advance!


Solution

  • I don't think this is possible out of the box, but you can extend the current authentication strategies/handlers to grab the password and do what you need with them. Each handler has a preAuthenticate() method that might be useful in this case.