Policy factory and getmetadata

"In Keycloak 26.1.1, I am developing a custom policy that uses a web service to verify a user’s permissions for a resource. The idea is that when creating this custom policy, the client should be able to configure a REST web service URL, a token, and a TTL for the permissions cache to avoid calling the web service every time.

The problem is that when I create the policy, the form doesn’t prompt me for these fields; it only shows ‘Code’ and it’s disabled. I configured getConfigMetadata, but it seems like it’s never executed. I added logs, but only a few methods are actually being triggered."