OpenID Connect authentication source gives 500 error with "SignIn: no provider for foo exists" #2559

Closed
opened 2025-11-02 04:40:27 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @LittleColin on GitHub (Nov 22, 2018).

I am adding an Authentication Source for OpenID Connect. I've tried several OpenID Connect providers but all of them result in the following error when I click the OpenID Connect logo on the login screen so I suspect it's not even trying to use the configuration.

[...routers/user/auth.go:520 SignInOAuth()] [E] SignIn: no provider for foo exists

(where foo is whatever name I gave the authention name in the free-text field)

  • Gitea version (or commit ref): e08c7e5
  • Git version: n/a
  • Operating system:
  • 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 - no admin access to try
  • Log gist:

Description

See above

Screenshots

Just shows 500 error after clicking OpenID Connect logo on login screen.

Originally created by @LittleColin on GitHub (Nov 22, 2018). I am adding an Authentication Source for OpenID Connect. I've tried several OpenID Connect providers but all of them result in the following error when I click the OpenID Connect logo on the login screen so I suspect it's not even trying to use the configuration. `[...routers/user/auth.go:520 SignInOAuth()] [E] SignIn: no provider for foo exists` (where foo is whatever name I gave the authention name in the free-text field) - Gitea version (or commit ref): e08c7e5 - Git version: n/a - Operating system: - 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 - no admin access to try - Log gist: ## Description See above ## Screenshots Just shows 500 error after clicking OpenID Connect logo on login screen.
GiteaMirror added the issue/staletype/bug labels 2025-11-02 04:40:27 -06:00
Author
Owner

@tvvignesh commented on GitHub (Dec 19, 2018):

@lunny I got the same 500 error when trying Office 365 Sign In via OpenID. Is this fixed?

Also, I was wondering if there is a way to restrict only users from a specific domain to login - is it available in Gitea?

@tvvignesh commented on GitHub (Dec 19, 2018): @lunny I got the same 500 error when trying Office 365 Sign In via OpenID. Is this fixed? Also, I was wondering if there is a way to restrict only users from a specific domain to login - is it available in Gitea?
Author
Owner

@tvvignesh commented on GitHub (Dec 21, 2018):

Got the 500 error fixed by fixing my autodiscovery URL and upgrading to Gitea 1.6.1 but still wondering how to restrict signups to a domain.

@tvvignesh commented on GitHub (Dec 21, 2018): Got the 500 error fixed by fixing my autodiscovery URL and upgrading to Gitea 1.6.1 but still wondering how to restrict signups to a domain.
Author
Owner

@stale[bot] commented on GitHub (Feb 19, 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 (Feb 19, 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

@stale[bot] commented on GitHub (Mar 5, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Mar 5, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2559