Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  OAuth wrong environment?

    Posted 06-05-2025 18:04

    vrvoice1 | 2016-07-21 07:02:01 UTC | #1

    Hi, a few days ago I have tried out the dotnetoauthcontrol. I think there is a wrong URL in the composition of the login. The .com in the following code ist hard coded so if someone want's to login from EMEA with .ie it's not working.

    this.Navigate($"https:\\\\login.{Environment}.com/authorize?clientid={ClientId}&responsetype=token&redirect_uri={RedirectUri}"); (Line 169 in OAuthWebBrowser.cs)

    After I have changed that, it's working fine. https://github.com/MyPureCloud/purecloud_api_dotnet_oauth_control/issues/1

    Regards,

    Sven


    tim.smith | 2016-07-21 13:24:04 UTC | #2

    Indeed that is incorrect! Thank you for reporting the issue. This should be a quick fix.


    tim.smith | 2016-07-22 16:23:02 UTC | #3

    Version 1.2.0.0 is now released with a fix for this. https://www.nuget.org/packages/PureCloudOAuthControl/

    The static class PureCloudEnvironment has been removed. Specify the Environment property directly as a string now (e.g. browser.Environment = "mypurecloud.ie";).


    vrvoice1 | 2016-07-25 06:05:47 UTC | #4

    Hi Tim,

    thats perfect thanks,

    Regards,

    Sven


    system | 2017-08-28 19:25:25 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 155