Automatic OIDC login #6428

Closed
opened 2025-11-02 06:55:34 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @DaLynX on GitHub (Dec 2, 2020).

  • Gitea version (or commit ref): 1.12.4
  • Git version: 2.28.0
  • Operating system: FreeBSD
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Hello,

I have setup a gitea instance on my server and successfully added my OIDC provider. However, I would like to make so that users are automatically redirected to the OIDC provider if not authenticated, without having to click the "OpenID Connect" button.

I did not find any setting to do so or any mention in the documentation. Is it possible? If not, could it be considered for implementation?

Originally created by @DaLynX on GitHub (Dec 2, 2020). <!-- 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.12.4 - Git version: 2.28.0 - Operating system: FreeBSD <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description Hello, I have setup a gitea instance on my server and successfully added my OIDC provider. However, I would like to make so that users are automatically redirected to the OIDC provider if not authenticated, without having to click the "OpenID Connect" button. I did not find any setting to do so or any mention in the documentation. Is it possible? If not, could it be considered for implementation?
GiteaMirror added the type/proposal label 2025-11-02 06:55:34 -06:00
Author
Owner

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

I support this issue, but it seems to me this is a duplicate of both https://github.com/go-gitea/gitea/issues/7633 and https://github.com/go-gitea/gitea/issues/6352 , so maybe it can be closed?

@ailox commented on GitHub (Feb 21, 2021): I support this issue, but it seems to me this is a duplicate of both https://github.com/go-gitea/gitea/issues/7633 and https://github.com/go-gitea/gitea/issues/6352 , so maybe it can be closed?
Author
Owner

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

Closed as duplicated mentioned above.

@lunny commented on GitHub (Feb 21, 2021): Closed as duplicated mentioned above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6428