dependencies {
compile ('org.apache.shiro:shiro-core:1.2.3') {
exclude group: 'commons-logging', module: 'commons-logging'
}
compile 'com.ning:async-http-client:1.9.19'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.3'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.3'
runtime 'org.slf4j:slf4j-simple:1.7.12'}
runtime 'org.slf4j:jcl-over-slf4j:1.7.12'
I've installed KillBill via kpm, and so far the only way to get my custom jar to be registered with KillBill is to place the custom.jar in
/webapps/ROOT/WEB-INF/lib
I would imagine I should be able to put my jar in the tomcat /lib folder, but when I do KillBill fails to start.
Any thoughts or pointers in the right direction would be appreciated.
Regards,
Eugene
I've created a custom realm that extends IniRealm, because the KillBillShiroModule only binds Ini, Jdbc, and Ldap realms.
I've used the following dependencies for my realms communication with Salesforce for authentication
I've installed KillBill via kpm, and so far the only way to get my custom jar to be registered with KillBill is to place the custom.jar in/webapps/ROOT/WEB-INF/libI would imagine I should be able to put my jar in the tomcat /lib folder, but when I do KillBill fails to start.
Hi Eugene,On Tue, Nov 1, 2016 at 11:53 AM, Eugene McKissick <eugene.m...@gmail.com> wrote:I've created a custom realm that extends IniRealm, because the KillBillShiroModule only binds Ini, Jdbc, and Ldap realms.That makes sense. Maybe we should find a way to make this more extensible (I believe you are the first one with this use-case today). We would gladly accept a PR along these lines (we can talk in more details if you're interested in contributing).
I've used the following dependencies for my realms communication with Salesforce for authenticationAll of these dependencies should already be bundled with Kill Bill. It sounds like the Salesforce extension is pretty lightweight? If so, we could also consider integrating it into the core.
What is the error you are getting?I've installed KillBill via kpm, and so far the only way to get my custom jar to be registered with KillBill is to place the custom.jar in/webapps/ROOT/WEB-INF/libI would imagine I should be able to put my jar in the tomcat /lib folder, but when I do KillBill fails to start.
java.lang.ClassCastException: com.carfax.security.SalesforceRealm cannot be cast to org.apache.shiro.realm.Realm
--Pierre
I'll think about how I would phrase the use case, but I always thought IniRealms were for text based configuration
in my case I'm only using it to point to my custom class. I'd definitely be up talking about the best way of doing this.
I tried to make it as lightweight as possible. Its essentially validating an oauth access token and retrieving the user information via Salesforce's Oauth UserInfo Api. If others would find this beneficial i'm all for contributing it, but i'm not sure its generic or configurable enough for core at this point.
So I needed to remote debug my killbill instance to see the exceptions. Is there anyway to get the userExceptions from startup to dump to a log.
The error i'm getting is belowjava.lang.ClassCastException: com.carfax.security.SalesforceRealm cannot be cast to org.apache.shiro.realm.Realm
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/fc258bfb-7dda-4cc6-8f02-9f9db49b5d1c%40googlegroups.com.