可以将Gitlab用作oauth提供程序吗? [英] Is it possible to use Gitlab as an oauth provider?

查看:69
本文介绍了可以将Gitlab用作oauth提供程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以通过外部提供商登录到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之间的区别和:

2016年2月修改,补充链接:

  • 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提供程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆