OAuth2: omniauth-oauth2-generic requires a user_info endpoint implementation within the OAUTH2 server

I am trying to use OpenShift's build-in OAuth2 server to delegate GitLab's authentication. However, the OpenShift OAuth2 server does not implement a user_info endpoint (which is not mandatory for an OAuth2 server to provide this).

I was wondering if it would be possible to (or):

  • use the omniauth-oauth2-generic gem on OAuth2 servers that do not provide this endpoint
  • relax the hard requirement of this gem to depend on a user_info endpoint

References:

  • https://gitlab.com/satorix/omniauth-oauth2-generic#gitlab-config-example
  • https://docs.openshift.com/container-platform/3.7/architecture/additional_concepts/authentication.html#oauth-server-metadata
  • https://github.com/openshift/origin/issues/18013
Edited Jan 07, 2018 by Bart Van Bos
Assignee Loading
Time tracking Loading