Description
I have successfully deployed CSGHub on a Kubernetes cluster via helm chart.
Both services are running correctly and I can access the UI of each one independently via browser.
However, I am facing an issue with the login flow from CSGHub using Casdoor as the OAuth provider.
Steps to Reproduce
- Open CSGHub UI in browser
- Click Login
- Browser redirects to Casdoor login page
- Login successfully with a Casdoor account
- Casdoor redirects back to CSGHub
Actual Behavior
After Casdoor redirects back to CSGHub, the browser shows the following error page:
http://localhost:3000/errors/server-error?error_code=500&error_message=failed+to+signin%3A+failed+to+get+token+from+casdoor.....
Additional Observations
Both CSGHub and Casdoor UIs are accessible normally.
I can log into Casdoor directly (without going through CSGHub) works fine.
Question
Are there any known requirements or constraints regarding:
- redirect_uri configuration
- HTTPS/TLS enforcement
- Domain consistency between CSGHub and Casdoor
- Environment variables that must be explicitly set for OAuth callback handling?
Any guidance or examples for a working Casdoor + CSGHub OAuth setup on Kubernetes would be greatly appreciated.