Azure-Samples / ms-identity-aspnet-webapp-openidconnect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.
MIT License
171 stars 72 forks source link

unauthorized_client #6

Closed mhomol closed 7 years ago

mhomol commented 7 years ago

I tried using this example with an existing AAD app I'd already created and I'm getting the unauthorized_client response. I replaced the client id and secret, as well as the application id and the redirect url was modified correctly. Is there something I'm missing here?

mhomol commented 7 years ago

I see now that this sample is only good when the app is created using the app dev portal.