BingAds / BingAds-PHP-SDK

Other
56 stars 46 forks source link

Failing Authentication (Sandbox) #64

Closed jedkirby closed 6 years ago

jedkirby commented 6 years ago

Please note I'm using the sandbox endpoint.

I'm using the SDK to provide me with the authentication URL for the Authorization Code Grant Flow. The following is an example of the URL it's generating:

https://login.live-int.com/oauth20_authorize.srf?scope=bingads.manage&prompt=login&client_id=CLIENT_ID&response_type=code&redirect_uri=https://website.com/callback&state=STATE

When the CLIENT_ID, REDIRECT_URI and STATE are completed (I've triple checked that these match up with the values within https://apps.dev.microsoft-int.com) I get the following response from OAUTH:

https://website.com/callback?error=server_error&state=STATE

As you can see, the service is returning an error of server_error - is anyone able to support on this? I've done some searching around the error message but it's very vague..

jedkirby commented 6 years ago

I've spoken with the Microsoft Bing Ads support team, and they're investigating the issue. I'll update this ticket with the findings incase it's something that others can benefit from.

eric-urban commented 6 years ago

@jedkirby this issue with sandbox OAuth should have been resolved by noon PDT yesterday (May 16th). Please feel free to reopen the issue if you see it again. Thanks!

jedkirby commented 6 years ago

Looks like it's working again now, thanks @eric-urban.