Hi, I can connect to authentication service no problem with user name and password from .Net client. Content server is SSO enabled, how can I obtain my authenticationt token with passing the user name + password?
Thanks!!
CWS with SSO - how to authenticate Posted byBowen, JayOn 04/12/2017 06:56 PM Hi, I can connect to authentication service no problem with user name and password from .Net client. Content server is SSO enabled, how can I obtain my authenticationt token with passing the user name + password? Thanks!![To post a comment, use the normal reply function]Forum:Content Web Services ForumContent Server:Knowledge Center CS16
Hi, thanks for the reponse. Clarifying what I would like to do is obtain the athentication token without passing the users password + login. Code example below, if I pass user name + password I obtain the token no problem. How do I do this via SSO and not pass the users credentials?
username = txtUserName.Text; password = txtUserPassword.Text; AuthenticationClient authClient = new AuthenticationClient();
try { Console.Write("Authenticating User..."); //How do I obtain the auth token without user name and password authToken = authClient.AuthenticateUser(username, password); Console.WriteLine("Success!\n"); }
catch (FaultException ex) { Console.WriteLine("Failed!"); Console.WriteLine("{0} : {1}\n", ex.Code.Name, ex.Message); MessageBox.Show(ex.Message); return; } finally { // Always close the client authClient.Close(); }
[EXTERNAL] - Re CWS with SSO - how to authenticate Posted byBowen, JayOn 04/13/2017 12:16 PM Hi, thanks for the reponse. Clarifying what I would like to do is obtain the athentication token without passing the users password + login. Code example below, if I pass user name + password I obtain the token no problem. How do I do this via SSO and not pass the users credentials? username = txtUserName.Text; password = txtUserPassword.Text; AuthenticationClient authClient = new AuthenticationClient(); try { Console.Write("Authenticating User..."); //How do I obtain the auth token without user name and password authToken = authClient.AuthenticateUser(username, password); Console.WriteLine("Success!\n"); } catch (FaultException ex) { Console.WriteLine("Failed!"); Console.WriteLine("{0} : {1}\n", ex.Code.Name, ex.Message); MessageBox.Show(ex.Message); return; } finally { // Always close the client authClient.Close(); }[To post a comment, use the normal reply function]Topic:CWS with SSO - how to authenticateForum:Content Web Services ForumContent Server:Knowledge Center CS16
Hi ,
Authentication service returns the token in case of successful authentication. I have added a sample SOAP response for successful authentication.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<AuthenticateUserResponse xmlns="urn:Core.service.livelink.opentext.com">
<AuthenticateUserResult>ZEiSMnutRq2NmVXYduHeV%2BE9prsL1ao3kbOiMDkO9%2FXqcBXQuN7fG2UT3vjPD4R0hw27NSiv9n%2FS0xOPhDFm6%2FpJtbbnAAdc</AuthenticateUserResult>
</AuthenticateUserResponse>
</S:Body>
</S:Envelope>
From .Net stubs you can follow the same hierarchy to get the token. Please give it a try.
HTH,
Brahmaji.
From: eLink Entry: Content Web Services Forum [mailto:otdncontentwebservices971forum@elinkkc.opentext.com]Sent: Thursday, April 13, 2017 4:29 AMTo: eLink RecipientSubject: CWS with SSO - how to authenticate
CWS with SSO - how to authenticate
Posted by Bowen, Jay On 04/12/2017 06:56 PM
[To post a comment, use the normal reply function]
Forum:
Content Web Services Forum
Content Server:
Knowledge Center CS16
Hi,
In order to use SSO with Web Services, you will need to setup the web services for SSO. To do this, please follow the instructions in the following KBA:
http://knowledge.opentext.com/knowledge/cs.dll/kcs/kbarticle/view/KB494406
Once you have done that, you can then move on to the code portion of the exercise. Taking the code that posted, all you will need to do is set your username and password to null. Here is an example of what could be done:
username = null; password = null; AuthenticationClient authClient = new AuthenticationClient();
Hope this helps.
Does this still work in CS21+ ?
have you tried it ?