Librechat - openid login
-
Hello,
I recently migrated my LibreChat deployment from Azure to Cloudron. The OpenID login button is visible and clickable, but after clicking I’m redirected to:https://<my-domain>/oauth/openid
The page shows: “An unknown error occurred.”
In the application logs I see:
error: ErrorController => error Unknown authentication strategy "openid"
This was working on my previous Azure setup. I’m using the same OpenID environment variables as in the documentation.
Could you help me identify why the OpenID strategy isn’t being registered on Cloudron?
Thanks!
-
LibreChat version: v0.8.0
-
Relevant env (redacted):
OPENID_ENABLED=true
OPENID_ISSUER=<...>
OPENID_DISCOVERY_URL=<...>
OPENID_CLIENT_ID=<...>
OPENID_CLIENT_SECRET=<redacted>
OPENID_CALLBACK_URL=https://<my-domain>/api/auth/openid/callback
-
-
N nebulon marked this topic as a question
-
Yes that is correct then. So Cloudron would not touch the env variables for OpenID which you have set.
One maybe easy to forget step ist, you have to restart the app in order for it to pick up the new environment.
Otherwise can't see why setting the same values like Cloudron does would cause it to not even know about that auth strategy.
Just for reference this is how the Cloudron startup script would put them (if cloudron usermanagement would be enbled): https://git.cloudron.io/packages/librechat-app/-/blob/main/start.sh?ref_type=heads#L92
-