MicrosoftDocs / Advertising-docs

Creative Commons Attribution 4.0 International
15 stars 59 forks source link

invalid_request error with the default code sample. I have followed every step correctly #792

Closed sebomio closed 4 years ago

sebomio commented 4 years ago

invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application. Please read : https://github.com/microsoftgraph/msgraph-training-uwp/issues/31


Document Details

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

eric-urban commented 4 years ago

@sebomio to help determine whether we can isolate the issue to client ID can you please try one or both workaround for sandbox and production below?

# Sandbox
CLIENT_ID = 'db41b09d-6e50-4f4a-90ac-5a99caefb52f'
DEVELOPER_TOKEN='BBD37VB98'
ENVIRONMENT='sandbox'
# Production
CLIENT_ID = '6731de76-14a6-49ae-97bc-6eba6914391e' # You can use this temporarily for a test
DEVELOPER_TOKEN='TODO'  # Please use your own production developer token.
ENVIRONMENT='production'

There may be an issue with app registration, so please also double check and/or register a new client ID via the steps here.