-
1. Re: Authentication Fails with Custom User - JPA
anil.saldhana Mar 7, 2014 5:13 PM (in response to noamichael)Michael - look at the quickstarts to see if you are missing anything.
https://github.com/jboss-developer/jboss-picketlink-quickstarts/
-
2. Re: Authentication Fails with Custom User - JPA
noamichael Mar 7, 2014 5:40 PM (in response to anil.saldhana)I just debugged the program and I figured out why it wasn't working.Within the org.picketlink.idm.credential.handler.AbstractCredentialHandler class there is the following code under the method configureDefaultSupportedAccountTypes:
if (!this.defaultAccountTypes.contains(User.class)) {
this.defaultAccountTypes.add(User.class);
}
if (!this.defaultAccountTypes.contains(Agent.class)) {
this.defaultAccountTypes.add(Agent.class);
}
I simply added my custom class there and it works 100% - even with custom properties. It's very nice. Thanks for the help!
-
3. Re: Authentication Fails with Custom User - JPA
anil.saldhana Mar 7, 2014 6:30 PM (in response to noamichael)Michael - I am glad that it worked out for you. Do we have any bugs in handling custom types? If yes, please do not hesitate to file JIRA issues.