[Feature Request] UI that support adding Oauth2 provider through URL #5960

Open
opened 2025-11-02 06:41:24 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @makersmelx on GitHub (Sep 7, 2020).

Description

It would be nice if there is a UI in the admin page where admin users can add an Oauth2 provider by themselves. They could type in the URL of their own provider (by URL, I mean something like github.com/markbates/goth/providers/google), make some config and then the provider works.

I am from Shanghai Jiao Tong University, China, and we are trying to use Gitea as course website for some of our CS courses, like Operating System, Algorithm. We would like to use our university account (which only supports Oauth2) as authentication source, but we failed with current provider list. I wrote a provider, modified the source code to add it and then it worked. It would be nice if this could be done by UI in a release version.

Originally created by @makersmelx on GitHub (Sep 7, 2020). ## Description It would be nice if there is a UI in the admin page where admin users can add an Oauth2 provider by themselves. They could type in the URL of their own provider (by URL, I mean something like github.com/markbates/goth/providers/google), make some config and then the provider works. I am from Shanghai Jiao Tong University, China, and we are trying to use Gitea as course website for some of our CS courses, like Operating System, Algorithm. We would like to use our university account (which only supports Oauth2) as authentication source, but we failed with current provider list. I wrote a provider, modified the source code to add it and then it worked. It would be nice if this could be done by UI in a release version.
GiteaMirror added the type/proposal label 2025-11-02 06:41:24 -06:00
Author
Owner

@septatrix commented on GitHub (Sep 30, 2020):

Oauth2 by itself only serves as an authorization protocol and not as a authentication mechanism (see this article for an explanation). Google, Twitter etc. all build upon that to provide authentication - however this requires manual handling of each provider. The correct way for you university to solve this issue would be to provide an OpenID Connect endpoint which allows unified access. They probably already have this implemented if you can use your university account to sign in at microsoft or similar.

@septatrix commented on GitHub (Sep 30, 2020): Oauth2 by itself only serves as an authorization protocol and not as a authentication mechanism ([see this article for an explanation](https://oauth.net/articles/authentication/)). Google, Twitter etc. all build upon that to provide authentication - however this requires manual handling of each provider. The correct way for you university to solve this issue would be to provide an OpenID Connect endpoint which allows unified access. They probably already have this implemented if you can use your university account to sign in at microsoft or similar.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5960