Unknown authorization code with OpenID connect #8191

Closed
opened 2025-11-02 07:56:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @s3bba on GitHub (Nov 29, 2021).

Gitea Version

1.15.6

Git Version

2.34.1

Operating System

Arch Linux with kernel 5.15.5-arch1-1

How are you running Gitea?

Gitea is running as a systemd service and is downloaded from https://dl.gitea.io/gitea/ site.
Nginx is used as a reverse proxy to access Gitea at all times.

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/sebba-dev/70e176a4f09501a507ab8b90a5a8636c

Description

I'm getting 500 errors when trying to login with OpenID Connect to Gitea, Jetbrains Hub is used as provider (other services are working fine), and I was able to get it working for registration and login, but now is suddenly broken.

Secret didn't change, I then tried to change the secret and updated Gitea auth source and got 500 again.

I've tried creating everything again and double checked everything and it still doesn't work.
There was no upgrade or server restart when this stopped working, I'm completely lost on what to do.

Thanks for taking your time to read this!

Screenshots

No response

Originally created by @s3bba on GitHub (Nov 29, 2021). ### Gitea Version 1.15.6 ### Git Version 2.34.1 ### Operating System Arch Linux with kernel 5.15.5-arch1-1 ### How are you running Gitea? Gitea is running as a systemd service and is downloaded from https://dl.gitea.io/gitea/ site. Nginx is used as a reverse proxy to access Gitea at all times. ### Database MySQL ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/sebba-dev/70e176a4f09501a507ab8b90a5a8636c ### Description I'm getting 500 errors when trying to login with OpenID Connect to Gitea, Jetbrains Hub is used as provider (other services are working fine), and I was able to get it working for registration and login, but now is suddenly broken. Secret didn't change, I then tried to change the secret and updated Gitea auth source and got 500 again. I've tried creating everything again and double checked everything and it still doesn't work. There was no upgrade or server restart when this stopped working, I'm completely lost on what to do. Thanks for taking your time to read this! ### Screenshots _No response_
Author
Owner

@s3bba commented on GitHub (Jul 18, 2022):

So after some research, I've discovered that profile picture from Jetbrains Hub was an issue.
Hub does not downsize anything so Gitea received payload that was simply to large, uploading smaller image to hub fixed the problem.

@s3bba commented on GitHub (Jul 18, 2022): So after some research, I've discovered that profile picture from Jetbrains Hub was an issue. Hub does not downsize anything so Gitea received payload that was simply to large, uploading smaller image to hub fixed the problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8191