Author Topic: How to use the Genesys Request Authenticate method?  (Read 2885 times)

Offline Vegeta

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
How to use the Genesys Request Authenticate method?
« 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.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: How to use the Genesys Request Authenticate method?
« Reply #1 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

Offline Vegeta

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to use the Genesys Request Authenticate method?
« Reply #2 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

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: How to use the Genesys Request Authenticate method?
« Reply #3 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.

Offline Vegeta

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to use the Genesys Request Authenticate method?
« Reply #4 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]