Social Authentication
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=true
in 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