mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
openid-client's Passport Strategy replaces the authorization request's state with a random one when the IdP's discovery metadata does not list S256 in code_challenge_methods_supported and the request has no nonce. Azure Entra ID omits that field, so the admin callback could not find the admin panel's PKCE challenge under pkce:<state> and issued an exchange code that any code_verifier, or none, could redeem. The admin strategy now adds a nonce in that case, so openid-client keeps the admin route's state and checks the nonce against the ID token on the callback. The chat OpenID flow is unchanged. |
||
|---|---|---|
| .. | ||
| app/clients | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| recover-skill-upload.js | ||
| typedefs.js | ||