Authorization to Access Resources

I tried to test JS Policies but I haven’t figure out the implementation. http://forum.keycloak.org/t/deploy-a-javascript-policy-in-keycloak-10/2982