MicrosoftDocs / Advertising-docs

Creative Commons Attribution 4.0 International
15 stars 58 forks source link

Microsoft account is experiencing technical problems. Please try again later. (obtaining WebAPI Auth Token) #520

Closed jakeclutter closed 5 years ago

jakeclutter commented 5 years ago

Hi! I've been attempting to shift a legacy service from Bing Ads V11 -> V12 and I've run into difficulties generating the authentication token after registering our application. In particular since we are making a Web API and not a Web or Native app I am not sure what to enter as the redirect_uri parameter here:

https://login.live.com/oauth20_authorize.srf?client_id=CLIENT_ID&scope=bingads.manage&response_type=code&redirect_uri=REDIRECTURI&state=ClientStateGoesHere

Thanks!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

eric-urban commented 5 years ago

@jakeclutter - For your scenario, is the goal to secure your Web API with custom scopes as described here and here? If so, my understanding is that is beyond the scope of authenticating a Bing Ads user i.e., asking a Bing Ads user to consent to letting your app access their accounts (or granting the app access to your own accounts). For Bing Ads authentication where the OAuth scope is bingads.manage, you should register a web or native app depending in part on whether a client secret is needed. Please see Authentication with OAuth for more details. For help with a specific error please feel free to share the repro steps in the forum or via support. I hope this helps!