Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: OAUTH/OIDC - enable mapping of JWT claims to user roles #4670

Open
1 task done
thingersoft opened this issue Nov 8, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@thingersoft
Copy link
Contributor

What features would you like to see added?

A chance to fully integrate LibreChat role system with external auth providers.

More details

Currently you can require specific claims to be present in JWT access or id token through the following env properties:

OPENID_REQUIRED_ROLE=
OPENID_REQUIRED_ROLE_TOKEN_KIND=
OPENID_REQUIRED_ROLE_PARAMETER_PATH=

To get full integration with external OAUTH/OIDC auth providers you should be able to map specific claims to specific LibreChat roles (USER/ADMIN at present).

Which components are impacted by your request?

Other

Pictures

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@thingersoft thingersoft added the enhancement New feature or request label Nov 8, 2024
@thingersoft thingersoft changed the title Enhancement: OAUTH/OIDC - enable mapping of roles from JWT claims Enhancement: OAUTH/OIDC - enable mapping of JWT claims to user roles Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant