During authentication you receive the response:
Couldn't exchange OAuth code for a Microsoft refresh token.
Provider error: invalid_client, error description: AADSTS7000215:
Invalid client secret provided.
Causes
- This means you haven't entered the correct Client secret value in the Office 365 OAuth settings of your Nylas app.
Resolution
- See this step here: https://developer.nylas.com/docs/the-basics/provider-guides/microsoft/create-azure-app/#create-the-oauth-credentials. Please make sure to copy the Value field and not the Secret ID. See the following screenshot:
- Then you'll also want to make sure to take the correct Client ID. In the Azure portal, it's called Application (client) ID and you can see it under App Registrations. See this screenshot:
Resources:
https://developer.nylas.com/docs/api/#get/oauth/authorize
Updated
Comments
0 comments
Please sign in to leave a comment.