Ommiting authorization with skip-auth option
688603Oct 29 2009 — edited Nov 9 2009Hi,
I would like to connect to BPM remotely using PAPI skipping authorization. I'm using this code:
Properties configuration = new Properties();
configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE,
"D:\\Projekty\\Oracle\\DnB\\directory.xml");
ProcessServiceSession session = null;
processService = ProcessService.create(configuration);
ConnectionPassport passport = processService.createPassportWithPreset("container-auth");
passport.setParticipant(user);
passport.fillPassport();
session = processService.createSession(passport, HOST);
I've also added to direcotry.xml following lines:
<preset name="container-auth">
<property name="jdbc-user" value="USER"/>
<property name="jdbc-password" value="PASSWD"/>
<property name="skip-auth" value="true"/>
</preset>
I'm getting:
ProcessService 'oracle/2009-06-29 14:49:38+02:00' created successfully.
The User ID was not found [BPM]
fuego.papi.exception.AuthenticationException: Cannot authenticate participant 'test01'.
at fuego.papi.impl.ProcessServiceSessionImpl.initializeDirectorySession(ProcessServiceSessionImpl.java:4362)
at fuego.papi.impl.ProcessServiceSessionImpl.init(ProcessServiceSessionImpl.java:4316)
at fuego.papi.impl.ProcessServiceSessionImpl.<init>(ProcessServiceSessionImpl.java:190)
at fuego.papi.impl.ProcessServiceImpl.createSession(ProcessServiceImpl.java:395)
at com.oracle.demo.papi.BPMVariableSetter.getBPMSession(BPMVariableSetter.java:127)
at com.oracle.demo.papi.BPMVariableSetter.main(BPMVariableSetter.java:37)
Caused by: fuego.directory.AuthenticationException: Login incorrect.
Login is correct.
Do I need to change any other configuration?
Best regards,
Michal
I've managed to do this. You need to change FUEGO_PARTTRUST table data in your directory schema. It should look like:
FUEGO_ID FUEGO_TRUSTID
null USERNAME*
more on metalink: 7723904
Edited by: mlliso on Nov 9, 2009 2:46 AM