Repository navigation
JavaScript Box for Java-Policy SPI #42915
Unanswered
konradeconomics
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to debug an issue with an authorization Java SPI. The registration is successfull and I can click on the defined policy for a client in the UI.

However, when I click it, it shows a generic UI where I have to enter JavaScript code. My hypothesis is that this is unexpected behaviour because the entire logic should be covered by the java code.

I suppose that I have missed some crucial configuration or am missing some context, as I am new to Keycloak.
In terms of reproduction for you, I pushed the current stages to the relevant repositories. I have isolated the policy-provider in terms of mounting.
The relevant code can be found on the following branch, the relevant java code in
spis/policy-provider/src/main/java/com/konrad/keycloak/policy. Repo: https://github.com/Realtime-Poller/keycloak-config/tree/feature/JavaPolicyProviderI would be very thankful if someone could point me into the right direction!
All reactions