mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
732 stars 280 forks source link

how to achieve Policy based client Authorization #160

Open raulkozy opened 5 years ago

raulkozy commented 5 years ago

Hi Everyone, I'm not sure whether there is any existing functionality in angular-keyclaok to help me achieve functionality which is as follows (Consider this is a feature request if applicable).

There is a Functionality to authorize the client protected resources in keycloak. This is to achieve grant access using a policy-based decision strategy by Keycloak.

image

I'm trying to protect my angular application's routes in the same way. Kindly let me know whether this is achievable using keycloak-angular or not ? would be really thankful for any leads against this approach.

Thankyou in Advance

jonkoops commented 5 years ago

@rahulkohli23 Could you provide some documentation from Keycloak itself and how you would accomplish this using the JavaScript adapter?

bgulowaty commented 4 years ago

@jonkoops https://github.com/keycloak/keycloak-documentation/blob/master/authorization_services/topics/enforcer-js-adapter.adoc