Overview
How to configure Social Authentication for LibreChat
This section will cover how to configure OAuth2 and OpenID Connect with LibreChat
OAuth2
OpenID Connect
Troubleshooting OpenID Connect
If you encounter issues with OpenID Connect authentication:
- Enable Header Debug Logging: Set
DEBUG_OPENID_REQUESTS=truein your environment variables to log request headers in addition to URLs (with sensitive data masked). Note: Request URLs are always logged at debug level - Check Redirect URIs: Ensure your callback URL matches exactly between your provider and LibreChat configuration
- Verify Scopes: Make sure all required scopes are properly configured
- Review Provider Logs: Check your identity provider's logs for authentication errors
- Validate Tokens: Ensure your provider is issuing valid tokens with the expected claims
- Ensure nonce is generated: Some identity providers generate
nonceurl parameter if it's missing in the request. SetOPENID_GENERATE_NONCE=trueto force the openid-client to generate it.
How is this guide?