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

Use JSONPath to map OpenIDConnect claims to roles and org name #18

Conversation

groldan
Copy link
Member

@groldan groldan commented Apr 29, 2022

Use JSONPath to map OpenIDConnect claims to roles and org name

Regardless of the authorization source (LDAP, OAuth2, OIDC),
user credentials are mapped to GeorchestraUser, from which
the sec-* headers will later on be constructed and conveyed
to the back-end georchestra services.

This patch allows to extract the roles and organization
short name from OpenIDConnect standard or non-standard
claims, using a JSONPath expression.

@groldan

This comment was marked as resolved.

@pmauduit

This comment was marked as resolved.

@groldan groldan force-pushed the feature/oidc_non_standard_claims_mapping_to_roles branch 5 times, most recently from f2cf1c9 to 03cdd61 Compare May 9, 2022 04:22
Regardless of the authorization source (LDAP, OAuth2, OIDC),
user credentials are mapped to GeorchestraUser, from which
the sec-* headers will later on be constructed and conveyed
to the back-end georchestra services.

This patch allows to extract the roles and organization
short name from OpenIDConnect standard or non-standard
claims, using a JSONPath expression.
@groldan groldan force-pushed the feature/oidc_non_standard_claims_mapping_to_roles branch from 03cdd61 to e3accf8 Compare May 9, 2022 04:25
@groldan groldan changed the title Extract roles from non standard OIDC claims Use JSONPath to map OpenIDConnect claims to roles and org name May 9, 2022
@groldan groldan marked this pull request as ready for review May 9, 2022 04:26
@groldan groldan requested a review from pmauduit May 9, 2022 04:27
@groldan groldan merged commit b7b5159 into georchestra:main May 9, 2022
@groldan groldan deleted the feature/oidc_non_standard_claims_mapping_to_roles branch May 9, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants