You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried creating a simple mapper SPI in Javascript, and packaging it into a zip file renamed to a jar, and putting it into my Keycloak providers directory, however it's not showing up when I try and start up Keycloak and use it.
In my jar:
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,20 CPUs Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (306E4),ASM,AES-NI)
Scanning the drive for archives:
1 file, 1142 bytes (2 KiB)
Listing archive: providers/custom-providers.jar
--
Path = providers/custom-providers.jar
Type = zip
Physical Size = 1142
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2022-11-19 04:21:57 D.... 0 0 META-INF
2022-11-19 03:05:54 ..... 232 145 META-INF/keycloak-scripts.json
2022-11-19 04:04:40 ..... 334 218 README.md
2022-11-19 03:10:21 ..... 91 85 username-to-fake-email-mapper.js
------------------- ----- ------------ ------------ ------------------------
2022-11-19 04:21:57 657 448 3 files, 1 folders
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello, I tried creating a simple mapper SPI in Javascript, and packaging it into a zip file renamed to a jar, and putting it into my Keycloak providers directory, however it's not showing up when I try and start up Keycloak and use it.
In my jar:
username-to-fake-email-mapper.js:
META-INF/keycloak-scripts.json:
I have also set
KC_FEATURES=scriptson the container that Keycloak is running in. What could cause a javascript spi/mapper to not show up as expected?All reactions