Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Vegeta on June 06, 2016, 11:05:42 AM

Title: How to use the Genesys Request Authenticate method?
Post by: Vegeta on June 06, 2016, 11:05:42 AM
Dear Genesys Wizards,

Could someone help me to understand how to use the request authenticate method ?
I am able to open a connection with the Developer guidelines but am not sure how to consume the Request Authenticate

What does it return and how to consume it and check if request is authenticated. I am a novice in this Genesys SDK development please help.

Thanks in advance.
Title: Re: How to use the Genesys Request Authenticate method?
Post by: Kubig on June 06, 2016, 11:13:23 AM
You can easily authenticate users within your own app against the Genesys environment, where the response you will get should be like EventAuthenticated or something like that. Have this implemented a few years ago, so do not remember all from my head. In case, you will need some example, let me know and I will share my solution
Title: Re: How to use the Genesys Request Authenticate method?
Post by: Vegeta on June 06, 2016, 12:14:39 PM
Hi Kubig,

Thanks for the reply , yes will be really helpful to know how to achieve this , if you can guide with some code snippets of your solution

as for what I am trying is that , I am trying to compare if the Username / Password matches with the config Server entries if yes then I would try to invoke the WDE or throw an Error/Alert.

Thanks
Title: Re: How to use the Genesys Request Authenticate method?
Post by: Kubig on June 06, 2016, 01:37:02 PM
Just send the RequesetAuthenticate with username and password as the parameters/arguments. You will receieve the EventAuthenticated in case all is processed correctly, in other cases you will receieve the EventError.
Title: Re: How to use the Genesys Request Authenticate method?
Post by: Vegeta on June 06, 2016, 03:01:43 PM
Thanks for the reply Kubig  8).. worked like a charm.. I was able to consume it like below.

[code]
          RequestAuthenticate obj = RequestAuthenticate.Create(AgentName, Agentpassw);
            confServerProtocol.Send(obj);
            IMessage AuthenticateLogin = confServerProtocol.Receive();
            DisplayTextBox.Text = AuthenticateLogin.ToString();
[/code]