I have successfully self-hosted Gitea in a Docker container and have attempted to integrate Zitadel OAuth into Gitea. Within Zitadel, I configured Google as an External Identity Provider (IdP).
However, after a successful login via Google, I am redirected back to the Gitea login page instead of being logged in properly. The attached image shows the behavior I am encountering. But the google account is being added in Zitadel dashboard successfully
On the other hand, when I configured Google OAuth2 directly within Gitea itself, it works fine. Gitea prompts me to link the account, and after linking it, I am correctly redirected to the home page.
Could you please assist with this issue, or provide any advice on additional steps I may need to take to resolve this problem?