Cannot persist user with no-default subject template
Status: Beta
Brought to you by:
diabolo512
When try to persist a user using a no-default subject
template get a Authentication Exception. The exception
message refer to identity credential not found. But
debugging the code with eclipse I find that one
NullPointerexception cause this wrong behavior.
The
AbstractAuthenticationManager.extractIdentityCredentialFromUser
method try to verifiy if the user has a different
identity crendential of the subject template
credential. The problem is that the method use one
local subject template that seems to be the default
subject template. A NullPointerException is raised.
I changed my subject template name to default and get
the code working.