-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 Server Error after adding openid connect provider #23283
Comments
Could yuo check your URL in config? Maybe it should be "https://openid.xxx" but not "openid.xxx" |
yes that is true. and i solved my problem but i would propose to make a more useful message than an 500 Server Error. |
i think Gitea answers a lot of things with a 500 Server Error instead of an useful error message in cases in which it is possible to make an message, that describes the Problem, gives some useful information and could allow the user to change the input. |
Agree to improve. There are a lot of 500 errors in Gitea, which is very unfriendly to end users. It just needs time and manpower to clean them one by one ..... |
…ng Sources When there is an error creating a new openIDConnect authentication source try to handle the error a little better. Close go-gitea#23283 Signed-off-by: Andrew Thornton <art27@cantab.net>
i have a same problem. I set up an openid provider with keycloack. return gitea logs:
keycloak logs:
|
…ng sources (go-gitea#23397) When there is an error creating a new openIDConnect authentication source try to handle the error a little better. Close go-gitea#23283 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Description
Instead of an informative error message i get an 500 Server Error.
Log:
.../providers_openid.go:42:CreateGothProvider() [W] [640291c5] Failed to create OpenID Connect Provider with name 'xxx' with url 'openid.xxx': Get "openid.xxx": unsupported protocol scheme ""
I think it would be possible to give this info in the Webinterface
The next 500 Server Error happens if the discovery URL returns HTML content.
Gitea Version
1.18.5
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
i use an release from Github on Uberspace
see this Guide for more info:
https://lab.uberspace.de/guide_gitea/
Database
MySQL
The text was updated successfully, but these errors were encountered: