是否可以将 Gitlab 用作 oauth 提供程序?

Is it possible to use Gitlab as an oauth provider?

我知道可以log into Gitlab with external providers比如Github。 但是,我想知道是否可以使用 Gitlab 的 oauth 对我的应用程序的用户进行身份验证?

是否有我可以使用的 oauth 端点?

应该可以,因为建议“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 团队(管理员,Gitlab)回复·2014 年 12 月 22 日

在 GitLab 7.7 中完成

查看 diff between GitLab 7.6 and 7.7 和:


2016 年 2 月编辑,补充链接:


注意:GitLab 13.11(2021 年 4 月)

Register OAuth applications at the group level

Group owners can now register OAuth applications for a group.

Previously, OAuth applications could only be registered by individual users or at the instance level.

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.

Thanks to the amazing work from GitLab contributor Jonas Wälter from Siemens, this feature is now available in 13.11.

See Documentation and Issue.

不,不是。目前唯一支持的范围是 api,它使身份验证客户端可以完全访问用户名中的所有内容。请参阅 https://gitlab.com/gitlab-org/gitlab-ce/issues/22323 以跟踪进度。