我知道可以通过外部提供商登录到Gitlab 如Github.但是,我想知道是否可以使用Gitlab的oauth来验证我的应用程序的用户身份?
I know that it is possible to log into Gitlab with external providers such as Github. However, I was wondering if Gitlab's oauth can be used to authenticate users to my application?
我可以使用一个oauth端点吗?
Is there an oauth endpoint that I can use?
推荐答案应该是可行的,因为建议"用于第三方应用程序的Oauth系统"似乎已完成 GitLab 7.7 (将要发布的)
It should be possible since the suggestion "Oauth system for third party application" seems completed with GitLab 7.7 (which is to be released)
拥有一个具有Github之类的应用程序管理功能的oauth身份验证系统将很强大.
It would be powerful to have an oauth authentication system with application management like Github.
如果此功能出现在Gitlab上,则开发人员将能够创建许多第三方应用程序,例如Travis-CI或Scrutinizer,它们可以直接与"Gitlab Connect"应用程序进行交互.系统,与Github或Bitbucket相同.
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团队(管理员,Gitlab)做出回应·2014年12月22日
GitLab team (Admin, Gitlab) responded · Dec 22, 2014
在GitLab 7.7中完成
Completed In GitLab 7.7
请参见 GitLab 7.6和7.7之间的区别和:
- 提交ed932d8
- 提交f9ece12
2016年2月修改,补充链接:
- GitLab作为OAuth2身份验证服务提供商
- GitLab作为OAuth2客户端
- 门卫,GitLab用于实现OAuth的
- GitLab as OAuth2 authentication service provider
- GitLab as an OAuth2 client
- Doorkeeper, what GitLab uses to implement OAuth
注意:使用 GitLab 13.11 (2021年4月)
Note: with GitLab 13.11 (April 2021)
在组级别注册OAuth应用组所有者现在可以为组注册OAuth应用程序. Register OAuth applications at the group level
Group owners can now register OAuth applications for a group.
以前,OAuth应用程序只能由单个用户或在实例级别注册.
Previously, OAuth applications could only be registered by individual users or at the instance level.
使此功能在组级别可用,从而减轻了实例管理员的管理负担,并消除了OAuth应用程序配置对单个用户的依赖.
Making this functionality available at the group level reduces the administrative burden for instance administrators and removes the dependency on individual users for the configuration of OAuth applications.
由于西门子的GitLab贡献者JonasWälter所做的出色工作,此功能现已在13.11中提供.
Thanks to the amazing work from GitLab contributor Jonas Wälter from Siemens, this feature is now available in 13.11.
请参见文档和问题.
更多推荐
可以将Gitlab用作oauth提供程序吗?
发布评论