Is is possible to use Gitlab as an oauth provider

2019-05-06 04:01发布

问题:

I know that its possible to log into gitlab with external providers such as github but I was wondering if it can be used to authenticate users from my application.

Is there an oauth endpoint that I can use.

回答1:

It should be possible since the suggestion "Oauth system for third party application" seems completed with GitLab 7.7 (which is to be released)

It would be powerful to have an oauth authentication system with application management like Github.

If this feature appear on Gitlab, developers would be able to create many third party applications like Travis-CI or Scrutinizer who can Interact directly with a "Gitlab Connect" system, same as Github or Bitbucket.

We should manage authorization scope too (profile view / edit, group access, projects access etc...).

GitLab team (Admin, Gitlab) responded · Dec 22, 2014

Completed In GitLab 7.7

See the diff between GitLab 7.6 and 7.7 and:

  • commit ed932d8
  • commit f9ece12

February 2016 edit, complementary links:

  • GitLab as OAuth2 authentication service provider
  • GitLab as an OAuth2 client
  • Doorkeeper, what GitLab uses to implement OAuth


回答2:

No, it is not. Currently the only supported scope is api which gives the authentication client full access to everything in the user's name. See https://gitlab.com/gitlab-org/gitlab-ce/issues/22323 to track progress.