[PR #618] [MERGED] Login via OpenID-2.0 #15493

Closed
opened 2025-11-02 11:47:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/618
Author: @strk
Created: 1/8/2017
Status: Merged
Merged: 3/17/2017
Merged by: @bkcsoft

Base: masterHead: openid


📝 Commits (10+)

  • 3f28e16 OpenID login support
  • f2f30fe Add forgot-url link in openid-connect form
  • a40bc35 Implement whitelist/blacklist support for OpenID
  • 7bf7213 Remove obsoleted comment
  • 0c8a0ef Add some example OpenID uris
  • 34e054f Avoid advertising online services :)
  • fb26d58 Install openid logo locally
  • 0af2fdc Fix selected tab effects upon openid error
  • 2469417 Add example value for openid uri whitelist
  • 9fb42f7 Also add an example in the openid whitelist value

📊 Changes

44 files changed (+2294 additions, -53 deletions)

View changed files

📝 cmd/web.go (+21 -0)
📝 conf/app.ini (+32 -0)
📝 models/error.go (+15 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v23.go (+26 -0)
📝 models/models.go (+1 -0)
📝 models/user.go (+1 -0)
models/user_openid.go (+117 -0)
modules/auth/openid/discovery_cache.go (+59 -0)
modules/auth/openid/discovery_cache_test.go (+47 -0)
modules/auth/openid/openid.go (+37 -0)
📝 modules/auth/user_form.go (+11 -1)
modules/auth/user_form_auth_openid.go (+45 -0)
📝 modules/context/context.go (+1 -0)
📝 modules/setting/setting.go (+25 -0)
📝 options/locale/locale_en-US.ini (+17 -0)
public/img/openid-16x16.png (+0 -0)
📝 routers/user/auth.go (+9 -1)
routers/user/auth_openid.go (+426 -0)
routers/user/setting_openid.go (+142 -0)

...and 24 more files

📄 Description

This branch superceeds the one in #271,
fixes #185 (once ready)

This version does not make "OpenID" a "Login Source"
but rather a first-class login method which is alternative
to the "username"/"password" pair.

The idea is to allow users to add their OpenID in the settings
and to allow registering via OpenID. Code is not yet complete.


🔄 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/618 **Author:** [@strk](https://github.com/strk) **Created:** 1/8/2017 **Status:** ✅ Merged **Merged:** 3/17/2017 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `openid` --- ### 📝 Commits (10+) - [`3f28e16`](https://github.com/go-gitea/gitea/commit/3f28e162b3505d85d25e8e090f9f6db5b03d07b5) OpenID login support - [`f2f30fe`](https://github.com/go-gitea/gitea/commit/f2f30fefc6a12d43e3cfa07a21df4f0c21fd6cfe) Add forgot-url link in openid-connect form - [`a40bc35`](https://github.com/go-gitea/gitea/commit/a40bc3513b0a17d4058f967407c7d3f2a4defa52) Implement whitelist/blacklist support for OpenID - [`7bf7213`](https://github.com/go-gitea/gitea/commit/7bf72130e4070815982b42f0c38cddfc59db59d6) Remove obsoleted comment - [`0c8a0ef`](https://github.com/go-gitea/gitea/commit/0c8a0efcbf7e60e4351b37fddfc7d7deff813f35) Add some example OpenID uris - [`34e054f`](https://github.com/go-gitea/gitea/commit/34e054ff0c9438fcef2fae1ea7fb5c078b801a9b) Avoid advertising online services :) - [`fb26d58`](https://github.com/go-gitea/gitea/commit/fb26d58e0daf6d82684fe9b03afde4e98c31d9c2) Install openid logo locally - [`0af2fdc`](https://github.com/go-gitea/gitea/commit/0af2fdcdd588bafd879a162b7cd15d9fbe7b0d95) Fix selected tab effects upon openid error - [`2469417`](https://github.com/go-gitea/gitea/commit/2469417b0c8a08b2a27a9090cc3eae786d5c1a94) Add example value for openid uri whitelist - [`9fb42f7`](https://github.com/go-gitea/gitea/commit/9fb42f72975328b49ddcfd38674e20d8fe494d45) Also add an example in the openid whitelist value ### 📊 Changes **44 files changed** (+2294 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+21 -0) 📝 `conf/app.ini` (+32 -0) 📝 `models/error.go` (+15 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v23.go` (+26 -0) 📝 `models/models.go` (+1 -0) 📝 `models/user.go` (+1 -0) ➕ `models/user_openid.go` (+117 -0) ➕ `modules/auth/openid/discovery_cache.go` (+59 -0) ➕ `modules/auth/openid/discovery_cache_test.go` (+47 -0) ➕ `modules/auth/openid/openid.go` (+37 -0) 📝 `modules/auth/user_form.go` (+11 -1) ➕ `modules/auth/user_form_auth_openid.go` (+45 -0) 📝 `modules/context/context.go` (+1 -0) 📝 `modules/setting/setting.go` (+25 -0) 📝 `options/locale/locale_en-US.ini` (+17 -0) ➕ `public/img/openid-16x16.png` (+0 -0) 📝 `routers/user/auth.go` (+9 -1) ➕ `routers/user/auth_openid.go` (+426 -0) ➕ `routers/user/setting_openid.go` (+142 -0) _...and 24 more files_ </details> ### 📄 Description This branch superceeds the one in #271, fixes #185 (once ready) This version does not make "OpenID" a "Login Source" but rather a first-class login method which is alternative to the "username"/"password" pair. The idea is to allow users to add their OpenID in the settings and to allow registering via OpenID. Code is not yet complete. --- <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:47:49 -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#15493