Is is possible to use Gitlab as an oauth provider

◇◆丶佛笑我妖孽 提交于 2019-12-22 08:48:32

问题


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.



来源:https://stackoverflow.com/questions/27815931/is-is-possible-to-use-gitlab-as-an-oauth-provider

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!