feat: Support for Customizable OpenID Profile Fields via Environment Variable #5449
+2,381
−88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4362
#4354
Docs: LibreChat-AI/librechat.ai#205
This Pull Request introduces comprehensive OpenID Connect (OIDC) support. The key changes include:
.env.example
to include new environment variables required for OpenID integration.userSchema.js
to accommodate additional fields for OpenID data, ensuring seamless user management.openidDataMapper.js
with provider-specific data mappers for Microsoft, AWS Cognito and Keycloak to handle custom OpenID data effectively.openidStrategy.js
to utilize the new data mappers, enforce role-based access control, and manage user avatars based on OpenID data.package.json
andpackage-lock.json
to include necessary libraries for OpenID functionality.types.ts
to support custom OpenID data mappings.Change Type
Testing
currently only the Microsoft provider tested and full working.
Checklist