I'm following this documentation to get an access token to call Graph APIs for Outlook Calendar. I've registered my app on Azure AD admin center, created a client secret and exposed relevant APIs. The app is configured for multi-tenant access and I'm using OAuth v2.0 endpoints for authorization.
I can successfully get the authorization code but get this error when requesting an access token:
"error": "invalid_client",
"error_description": "AADSTS7000215: Invalid client secret is provided.",
"error_codes": [
7000215
],
I send urlencoded client secret with the access token request, as mentioned here