You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
This add support for OIDC_ROLES_MAPPING environment variable:
```
OIDC_ROLES_MAPPING='{"RoleMap-Admin": "Admin", "RoleMap-Editor":"Editor", "RoleMap-Owner":"Owner","RoleMap-Viewer":"Viewer"}'
```
#5052
# How Has This Been Tested?
Using Vault OIDC provider using the following scope template for OIDC
provider:
```
SCOPE_TEMPLATE='{
"username": "user",
"email": "test@email.com",
"user_roles":["RoleMap-Admin","RoleMap-Editor"]
}'
```
In case OIDC_ROLES_MAPPING is not defined user_roles remains with normal
behaviour and should look like this:
```
SCOPE_TEMPLATE='{
"username": "user",
"email": "test@email.com",
"user_roles":["Admin","Editor"]
}'
```
# Checklist
- [ ] The PR is tagged with proper labels (bug, enhancement, feature,
documentation)
- [ x] I have performed a self-review of my own code
- [ ] I have added unit tests that prove my fix is effective or that my
feature works
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
Mage version
0.9.70 or newer
Describe the bug
Add support for OIDC_ROLES_MAPPING variable to match for examples groups to user roles:
To reproduce
No response
Expected behavior
No response
Screenshots
No response
Operating system
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: