-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
👑 feat: Add OIDC Claim-Based Admin Role Assignment #9170
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
base: dev
Are you sure you want to change the base?
Conversation
Thanks, please address ESLint issues |
@danny-avila Run lint:fix and pushed it again. Couldn't understand most of initial errors. |
@danny-avila know I think it's all :) |
Very cool, I think this makes a lot of sense as alternative and would be a neat upgrade from the current version (first user receives update) |
Hi @danny-avila ! |
Hi @danny-avila, are you open to merge this? |
Hi @jpsfs will be merging this soon, thanks for your patience |
…t for improved readability and maintainability
55d84d7
to
094d5ac
Compare
Pull Request Template
Summary
This Pull Request implements #9167 .
The goal is to allow a user that logins OIDC to be an admin in LibreChat depending on a claim that can exist in either the access_token, id_token or it's user profile.
A PR for the documentation was also open, detailing 3 new env vars, similar to the ones already used to check required roles.
Change Type
Please delete any irrelevant options.
Testing
Depending on your OIDC provider configurations might be different.
If you have a claim in the
id_token
calledroles
that's an array, and an admin user must have a role called admin, the configuration would be the following:Test Configuration:
Checklist
Please delete any irrelevant options.