login failed done is not a function (OpenID) #4090
-
What happened?I tried to connect LibreChat with a OpenID Connect provider but it doesn't work. It seems that the callback function signature is invalid in LibreChat/api/strategies/openidStrategy.js Line 101 in fc887ba Maybe related to #2652 Steps to Reproduce
What browsers are you seeing the problem on?Firefox Relevant log outputerror log:
{"level":"error","message":"[openidStrategy] login failed done is not a function","stack":"TypeError: done is not a function\n at OpenIDConnectStrategy._verify (/app/api/strategies/openidStrategy.js:219:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
debug log:
2024-09-17T14:40:45.124Z info: [openidStrategy] verify login openidId: undefined
2024-09-17T14:40:45.124Z debug: [openidStrategy] very login tokenset and userinfo
{
tokenset.id_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJteXRyYW5zbGF0aW9uYXBwIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9... [truncated]",
tokenset.token_type: "Bearer",
tokenset.expires_at: 1726587645,
tokenset.access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJteXRyYW5zbGF0aW9uYXBwIiwianRpIjoiMjc0NjA5Nzc5NTJmZTA... [truncated]",
tokenset.refresh_token: "def50200dab385b421de68c208dac6f0de105aa285a78e0338781b3d9bc66baeb9086841ebc5ea37a3d1f69a2dc3e709cd2c... [truncated]",
userinfo: function,
}
2024-09-17T14:40:45.127Z info: [openidStrategy] user found with openidId: undefined
2024-09-17T14:40:45.136Z info: [openidStrategy] login success openidId: undefined | email: test@test.de | username: ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I can't speak to your specific openid provider, but I just followed the instructions for Microsoft Entra here, and it worked without a hitch: https://www.librechat.ai/docs/configuration/authentication/OAuth2-OIDC/azure |
Beta Was this translation helpful? Give feedback.
-
I was able to solve the problem. The Stud.IP provider has no |
Beta Was this translation helpful? Give feedback.
I was able to solve the problem. The Stud.IP provider has no
/userinfo
endpoint. After I added this endpoint, the problem disappeared.