After registering your app in https://apps.dev.microsoft.com/
and trying to connect to the Microsoft Outlook API using Microsoft Graph, you get the following Error:
Sorry, but we’re having trouble signing you in.
We received a bad request.
CODE : THINGS TO CHECK
Make sure your API key and Password are correct in your app code.
API : THINGS TO CHECK
Make sure the redirect being passed from the code to Graph is passing a Url registered in the Application Registration Portal. If successful, you should see:
- Go to the Application Registration Portal at https://apps.dev.microsoft.com/
- Select your application
- Add your local development urls,
App publisher website: localhost