The recommended way to add Javascript based policy in Keycloak is to upload a JAR file.
However, if you are a Javascript developer with no clue what a JAR file is and have a deadline for your POC, then follow the below steps:
In the keycloak folder from where you start your server using
./bin/standalone.sh
, create a fileprofile.properties
instandalone/configuration
Paste
feature.upload_scripts=enabled
in the above created file
Run the server and you should be able to see "Javascript" under Clients > Authorization > Policies > Create Policy dropdown box
Top comments (0)