[Enhancement]: Allow checking userinfo for OPENID_REQUIRED_ROLE_PARAMETER_PATH #6702
ar2427
started this conversation in
Feature Requests & Suggestions
Replies: 3 comments 1 reply
-
some info-based authentication/role-assignment will definitely be implemented, it would need to be defined by specific openid provider |
Beta Was this translation helpful? Give feedback.
0 replies
-
Going to work on this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ar2427 please have a look at my PR: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
It would be beneficial if the 'OPENID_REQUIRED_ROLE_PARAMETER_PATH' environment variable's value could be used to navigate and evaluate the 'userinfo' object for authorization criteria.
More details
I am currently working on integrating Shibboleth with my application. I requested relevant team in my organization to provide information about the groups assigned to the logged-in user within the 'userinfo' object. Unfortunately, LibreChat presently supports restricting access by groups only through tokens, utilizing the 'OPENID_REQUIRED_ROLE_PARAMETER_PATH' and 'OPENID_REQUIRED_ROLE' environment variables. As a result, I am unable to leverage the 'userinfo' object to retrieve the group membership details.
Although the group membership information might also be included in the access token, the access token provided by Shibboleth in my organization is encrypted, preventing me from verifying its content.
For reference, the relevant file related to the issue is: openidStrategy.js.
Which components are impacted by your request?
General
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions