-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: Rework oidc role mapper to allow multiple matching roles
If multiple claims values have a valid matching for ocis roles, we'll pick the ocis role that appears first in the mapping configuration.
- Loading branch information
Showing
7 changed files
with
121 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Enhancement: Added possiblity to assign roles based on OIDC claims | ||
|
||
oCIS can now be configured to update a user's role assignment from the values of a claim provided | ||
via the IDPs userinfo endpoint. The claim name and the mapping between claim values and ocis role | ||
name can be configured via the configuration of the proxy service. Example: | ||
|
||
```yaml | ||
role_assignment: | ||
driver: oidc | ||
oidc_role_mapper: | ||
role_claim: ocisRoles | ||
role_mapping: | ||
- role_name: admin | ||
claim_value: myAdminRole | ||
- role_name: spaceadmin | ||
claim_value: mySpaceAdminRole | ||
- role_name: user | ||
claim_value: myUserRole | ||
- role_name: guest: | ||
claim_value: myGuestRole | ||
``` | ||
https://github.com/owncloud/ocis/pull/xxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters