I am using the Authentication instaed of JbpmDefaultAuthentication and it is working fine.
do you have any particular reason for using bpmDefaultAuthentication ?
it is not in version 3.1 afaik (at least i don't find it either in the javadoc or in the src->java).
Which version are you using?
You know, the code is your friend, as are the docs.
First of all I assume you are using jBPM 3.0x
In the extract from the docs you posted I read:
In your code you say
I see the difference.... do you... what editor do you use? Most modern editors have code completion etc...
I'm using version 3.1. In the javadoc, i read:
and there there is no JbpmDefaultAuthenticator:
JBossAuthenticationService retrieves the actorId as the name of the principal from the SecurityAssociation.
SubjectAuthenticationService gets the authenticated actor id from the current Subject
ah, and I forgot to say I use Eclipse.
Then you will see two factories and two services in the code completion. One of the factories is configured in the jbpm.cfg.xml (surprisingly the 'default' ;-)) Both extend the org.jbpm.security.AuthenticationService so implement one of your own.
The 3.1 doc contains a small error in http://docs.jboss.com/jbpm/v3/userguide/security.html#authentication , but a little digging would have shown this. It only took me 5 minutes to find this without have used this part before. Remember... it is open source, you can see what is going on....