OmniAuth Integration without E-Mail - possible?

Describe your question in as much detail as possible:

  • What are you seeing, and how does it differ from what you expect to see?

When I configure an OmniAuth provider using omniauth-oauth2-generic connect to an OAuth2 auth server with no E-Mail information, GitLab complains “sign-in failed because email can’t be blank gitlab”.

I do know that E-Mail is mandatory for using the GitLab, but I’m expecting that, when E-Mail information is absent from the OAuth2 provider, the GitLab would bring the user to a form asking for their E-Mail (and verification could be done here optionally).

  • Consider including screenshots, error messages, and/or other helpful visuals

  • What version are you on (Hint: /help) ? and are you using self-managed or gitlab.com?

Self-managed GitLab-EE 15.5.4

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

I’ve searched for config items enabling the behaviour I expected, but without luck.

Thanks in advance for any help!

If you enabled to create users based on SSO, than e-mail is mandatory parameter for creating a user in GitLab. Your expected feature to “request” missing fields is not available. Feel free to raise a Feature request in the official issue tracker.

Thanks, I see. It’s sad to hear that, will try to create a feature request.