Hi,
I've been trying for a while now to find a way to authenticate in OTDS without providing credentials and I can't find a method to do it, need help on this.
My goal is to get authenticated on my Content Server in a mobile application, the informations I have on the user are:
- username
- otagtoken (opentext appworks gateway token, with this token I should be able to login to OTDS but it seems not.)
- LLCookie (the name of the cookie in a web browser) or cstoken (name of the cookie in OpenTextAppworksGateway(OTAG) api, both have the same value so I guess it's the same thing)
I believe I should be able to authenticate my user with these informations, I tried these but it never worked:
AuthenticationService otdsAuthService = new AuthenticationService();
com.opentext.ecm.services.authws.Authentication otdsAuthClient = otdsAuthService.getAuthenticationPort();
otdsAuthToken = otdsAuthClient.authenticate(user.getUsername(),"otag"); // 1. this one "kinda" works, hard coded password, only works with users that have this password, not gonna keep this solution ^^
otdsAuthToken = otdsAuthClient.authenticateCurrentUser(); // 2. doesn't work, when this code is called I'm only logged in OTAG which gave me the otagtoken and the cstoken
otdsAuthToken = otdsAuthClient.authenticateWithToken(user.getUsername(), cstoken.getBytes()); // 3. doesn't work, I tried giving the otagtoken instead of the cstoken and it didn't work too.
I don't know what I'm doing wrong, the SSO is properly configured since it works in a web browser, after logging in in OTAG, I type my content server URL and it logs me with the otag user with no problem.
I am using OTCS 10.5 SP1 and OTDS 10.5 SP1.
Any idea to help me?
Thank you