Script Features enabled but not reflecting

848 views
Skip to first unread message

Arulaln A R

unread,
Aug 1, 2022, 10:31:34 AM8/1/22
to Keycloak User
Hi Team,

Need help in enabling the script feature. I have mapped the script feature using the environment variable. Attached is the complete dockerfile. Built an image based on that and still under Authentication - > Add Execution step i don't see an script option to create Javascript.



--
Regards,
Arulaln A R
Dockerfile.txt

Johannes Reppin

unread,
Aug 2, 2022, 4:37:11 AM8/2/22
to Keycloak User
Hi,

the `script` feature refers to javascript authenticators / mappers /policies 
that were deployed to Keycloak.
What you are thinking of is the `upload_scripts` feature which was removed in 
Keycloak 18.
You need to package your scripts in a `.jar` file with a META-INF folder and a `json` file with 
the metadata and add that to your docker image.

Cheers,
Johannes

Arulaln A R

unread,
Aug 2, 2022, 7:19:19 AM8/2/22
to Johannes Reppin, Keycloak User
Thanks Johannes, Able to achieve it. Yes, followed the below link to create a jar file and pushed to /opt/keycloak/provider folder and built it. Then finally started keycloak and can see the script is available as one of the execution options.


--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/825f06a4-aed3-4a96-8c38-d6c60596a2den%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages