Is it possible to choose default auth source? #3682

Closed
opened 2025-11-02 05:21:33 -06:00 by GiteaMirror · 11 comments
Owner

Originally created by @andloh on GitHub (Jul 26, 2019).

  • Gitea version (or commit ref): 1.10.0+dev-60-gc5f9c0418
  • Git version:
  • Operating system: linux
  • Database (use [x]):
    • [ x] PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [x ] Not relevant
Originally created by @andloh on GitHub (Jul 26, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.10.0+dev-60-gc5f9c0418 - Git version: - Operating system: linux - Database (use `[x]`): - [ x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x ] Not relevant
GiteaMirror added the type/proposalissue/confirmed labels 2025-11-02 05:21:33 -06:00
Author
Owner

@lafriks commented on GitHub (Jul 27, 2019):

How do you mean default? They all work at the same time

@lafriks commented on GitHub (Jul 27, 2019): How do you mean default? They all work at the same time
Author
Owner

@andloh commented on GitHub (Jul 27, 2019):

Thanks for answering
More like if its possible to disable some of the auth sources. E.g so that users can just interact with the oidc auth, and not the default gitea one.

@andloh commented on GitHub (Jul 27, 2019): Thanks for answering More like if its possible to disable some of the auth sources. E.g so that users can just interact with the oidc auth, and not the default gitea one.
Author
Owner

@stale[bot] commented on GitHub (Sep 25, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Sep 25, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lunny commented on GitHub (Sep 30, 2019):

@andloh Gitea support LDAP/mail/OAuth2 and etc. Is that what you mean?

@lunny commented on GitHub (Sep 30, 2019): @andloh Gitea support LDAP/mail/OAuth2 and etc. Is that what you mean?
Author
Owner

@andloh commented on GitHub (Sep 30, 2019):

No. The auth support is great. But i would like to disable some of them. So that users only have one auth source to interact with on the login page

@andloh commented on GitHub (Sep 30, 2019): No. The auth support is great. But i would like to disable some of them. So that users only have one auth source to interact with on the login page
Author
Owner

@stale[bot] commented on GitHub (Nov 29, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Nov 29, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@army1349 commented on GitHub (Oct 11, 2020):

Once role mapping is possible option to force OAuth2 auth source would be nice.

@army1349 commented on GitHub (Oct 11, 2020): Once [role mapping](https://github.com/go-gitea/gitea/issues/12493) is possible option to force OAuth2 auth source would be nice.
Author
Owner

@ailox commented on GitHub (Feb 21, 2021):

In addition to what @army1349 said, OIDC/OAuth2 Autoregistration (worked on in https://github.com/go-gitea/gitea/pull/5123) would also be useful to make login for existing OIDC accounts seamless.

@ailox commented on GitHub (Feb 21, 2021): In addition to what @army1349 said, OIDC/OAuth2 Autoregistration (worked on in https://github.com/go-gitea/gitea/pull/5123) would also be useful to make login for existing OIDC accounts seamless.
Author
Owner

@tacerus commented on GitHub (Aug 12, 2021):

I support this issue.

@tacerus commented on GitHub (Aug 12, 2021): I support this issue.
Author
Owner

@tacerus commented on GitHub (Sep 6, 2021):

I worked around this by adding a redirect to Gitea's oauth URL in my webserver (nginx) in order to directly forward users to our OIDC/SSO logon page upon clicking "Sign in" in Gitea - maybe it helps others:

location                /user/login {
return                  302 https://git.com.de/user/oauth2/LibertaCasaSSO;
}

The last bit is the name of the authentication provider that was set in Gitea - best to just visit the Gitea sign-in page regularly, right-clicking on the SSO/OIDC button, and selecting the browsers "Copy Link" option.

Note of course that this will make local logins impossible.

@tacerus commented on GitHub (Sep 6, 2021): I worked around this by adding a redirect to Gitea's oauth URL in my webserver (nginx) in order to directly forward users to our OIDC/SSO logon page upon clicking "Sign in" in Gitea - maybe it helps others: ``` location /user/login { return 302 https://git.com.de/user/oauth2/LibertaCasaSSO; } ``` The last bit is the name of the authentication provider that was set in Gitea - best to just visit the Gitea sign-in page regularly, right-clicking on the SSO/OIDC button, and selecting the browsers "Copy Link" option. Note of course that this will make local logins impossible.
Author
Owner

@wxiaoguang commented on GitHub (Dec 1, 2024):

Thanks for answering More like if its possible to disable some of the auth sources. E.g so that users can just interact with the oidc auth, and not the default gitea one.

The same request as #13606, will be implemented by #32687

@wxiaoguang commented on GitHub (Dec 1, 2024): > Thanks for answering More like if its possible to disable some of the auth sources. E.g so that users can just interact with the oidc auth, and not the default gitea one. The same request as #13606, will be implemented by #32687
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3682