[PR #1010] [MERGED] Additional OAuth2 providers #15710

Closed
opened 2025-11-02 11:52:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1010
Author: @willemvd
Created: 2/22/2017
Status: Merged
Merged: 5/1/2017
Merged by: @lunny

Base: masterHead: additional-oauth2-providers


📝 Commits (10+)

  • b98777f add google+
  • a24e238 sort signin oauth2 providers based on the name so order is always the same
  • 02638f0 update auth tip for google+
  • 6c48e16 add gitlab provider
  • 6a5b0c3 add bitbucket provider (and some go fmt)
  • 213e67b add twitter provider
  • 92aec11 add facebook provider
  • 9e797b2 add dropbox provider
  • 107eeea add openid connect provider incl. new format of tips section in "Add New Source"
  • 94c8a48 lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow)

📊 Changes

44 files changed (+4165 additions, -160 deletions)

View changed files

models/error_oauth2.go (+24 -0)
📝 models/login_source.go (+31 -85)
models/oauth2.go (+122 -0)
📝 modules/auth/auth_form.go (+34 -28)
📝 modules/auth/oauth2/oauth2.go (+125 -8)
📝 options/locale/locale_en-US.ini (+18 -2)
📝 public/css/index.css (+4 -1)
public/img/auth/bitbucket.png (+0 -0)
public/img/auth/dropbox.png (+0 -0)
public/img/auth/facebook.png (+0 -0)
📝 public/img/auth/github.png (+0 -0)
public/img/auth/gitlab.png (+0 -0)
public/img/auth/google_plus.png (+0 -0)
public/img/auth/openid_connect.png (+0 -0)
public/img/auth/twitter.png (+0 -0)
📝 public/js/index.js (+59 -3)
📝 public/less/_form.less (+4 -1)
📝 routers/admin/auths.go (+30 -7)
📝 routers/user/auth.go (+7 -2)
📝 templates/admin/auth/edit.tmpl (+33 -0)

...and 24 more files

📄 Description

This is a followup on #679 (this PR is based on the merged #679 master) which only included GitHub as an OAuth2 provider.

For now the following providers are implemented (incl signin image and tip text in admin/auths/new):
Google+
GitLab
Bitbucket
Twitter
Facebook
Dropbox
OpenID Connect

For GitLab and Github it is now possible to change the default urls to custom urls, this means you can connect them to your own private/local/on-premise/enterprise installation

I will add and test new providers on request in this PR (or on gitter?), list of possible providers can be found at : https://github.com/markbates/goth/#supported-providers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1010 **Author:** [@willemvd](https://github.com/willemvd) **Created:** 2/22/2017 **Status:** ✅ Merged **Merged:** 5/1/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `additional-oauth2-providers` --- ### 📝 Commits (10+) - [`b98777f`](https://github.com/go-gitea/gitea/commit/b98777f1d934716aeffc6bb6762d9bd8facebc97) add google+ - [`a24e238`](https://github.com/go-gitea/gitea/commit/a24e23899f14d86673621186f097797ad44f5fe7) sort signin oauth2 providers based on the name so order is always the same - [`02638f0`](https://github.com/go-gitea/gitea/commit/02638f02cf3bc83efed4f8337793d5f55722f4e1) update auth tip for google+ - [`6c48e16`](https://github.com/go-gitea/gitea/commit/6c48e1600b1e524319b663017c5dd063cd697cb6) add gitlab provider - [`6a5b0c3`](https://github.com/go-gitea/gitea/commit/6a5b0c36443fab11163c2f50bffa2f719144330c) add bitbucket provider (and some go fmt) - [`213e67b`](https://github.com/go-gitea/gitea/commit/213e67b98a655466792fdf5cd35296ffa6d2fb18) add twitter provider - [`92aec11`](https://github.com/go-gitea/gitea/commit/92aec118ee76716967453d1db5e9db6822b48c5e) add facebook provider - [`9e797b2`](https://github.com/go-gitea/gitea/commit/9e797b2b2053b3146e72a1fb5a3ca7e9decff8c9) add dropbox provider - [`107eeea`](https://github.com/go-gitea/gitea/commit/107eeea3fca752157b9546ff970ac401461b953c) add openid connect provider incl. new format of tips section in "Add New Source" - [`94c8a48`](https://github.com/go-gitea/gitea/commit/94c8a48a226a82b4d48c2f1310eb88c02e852f22) lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow) ### 📊 Changes **44 files changed** (+4165 additions, -160 deletions) <details> <summary>View changed files</summary> ➕ `models/error_oauth2.go` (+24 -0) 📝 `models/login_source.go` (+31 -85) ➕ `models/oauth2.go` (+122 -0) 📝 `modules/auth/auth_form.go` (+34 -28) 📝 `modules/auth/oauth2/oauth2.go` (+125 -8) 📝 `options/locale/locale_en-US.ini` (+18 -2) 📝 `public/css/index.css` (+4 -1) ➕ `public/img/auth/bitbucket.png` (+0 -0) ➕ `public/img/auth/dropbox.png` (+0 -0) ➕ `public/img/auth/facebook.png` (+0 -0) 📝 `public/img/auth/github.png` (+0 -0) ➕ `public/img/auth/gitlab.png` (+0 -0) ➕ `public/img/auth/google_plus.png` (+0 -0) ➕ `public/img/auth/openid_connect.png` (+0 -0) ➕ `public/img/auth/twitter.png` (+0 -0) 📝 `public/js/index.js` (+59 -3) 📝 `public/less/_form.less` (+4 -1) 📝 `routers/admin/auths.go` (+30 -7) 📝 `routers/user/auth.go` (+7 -2) 📝 `templates/admin/auth/edit.tmpl` (+33 -0) _...and 24 more files_ </details> ### 📄 Description This is a followup on #679 (this PR is based on the merged #679 master) which only included GitHub as an OAuth2 provider. For now the following providers are implemented (incl signin image and tip text in admin/auths/new): Google+ GitLab Bitbucket Twitter Facebook Dropbox OpenID Connect For GitLab and Github it is now possible to change the default urls to custom urls, this means you can connect them to your own private/local/on-premise/enterprise installation I will add and test new providers on request in this PR (or on gitter?), list of possible providers can be found at : https://github.com/markbates/goth/#supported-providers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:52:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15710