Hi there,
I'm trying to implement a custom realm for Shiro so that I can use KeyCloak as my user store. I've cloned the Okta code and adjusted it. It works under unit test so now I'm up to testing it under KillBill.
First problem is that I've found my changes to shiro.ini have no effect. I added this:
[main]
myRealm = nz.co.billrush.KeyCloakCustomRealm
securityManager.realms = $myRealm
credentialsMatcher = org.killbill.billing.util.security.shiro.KillbillCredentialsMatcher
myRealm.credentialsMatcher = $credentialsMatcher
I copied my shiro.ini into an extended image using
COPY --chown=tomcat:tomcat target/config/shiro.ini /var/lib/killbill
but it has no effect. It doesn't try loading my custom realm.
So I tried changing the admin password (should have tried that before now :)) and that doesn't change either. I can see the file when I attach to the running docker image and it is my file, it just isn't being used.
While I'm here I should say I'm also copying tmy jar file to /var/lib/tomcat/lib and, again, it lands there okay. I can't see if it's working yet because of the above problem, but is this the right localtion?
Thanks
Roger