-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[THREESCALE-2236] Add methods option on Keycloak policy.
This commits add the `methods` option on the Keycloak policy. That allow users to define a new policy from any jwt claim, resource and method. To be backwards compatible 'ANY' method is in place, and if methods are not defined this global method will be used and all will work as normal. Example policy: ``` "policy_chain": [ { "name": "apicast.policy.keycloak_role_check", "configuration": { "scopes": [ { "realm_roles": [ { "name": "director" } ], "resource": "/confidential", "methods": ["POST"] } ], "type": "blacklist" } }, { "name": "apicast.policy.apicast" } ] ``` Signed-off-by: Eloy Coto <eloy.coto@gmail.com>
- Loading branch information
Showing
6 changed files
with
297 additions
and
13 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
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