Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hello Vibhor Agarwal,
The error invalid_request: Missing parameters: access_token indicates that the OAuth flow is breaking during the token exchange step, not during authentication or permissions validation. In the Microsoft Teams–ServiceNow integration, this means authentication likely succeeded, but the system failed to return a valid access_token in the expected format.
This issue is almost always caused by a misconfiguration in the OAuth flow, not secrets or permissions. The integration requires a strict OAuth 2.0 authorization code flow, where ServiceNow must authenticate the user, exchange the authorization code, and return a properly structured JSON response containing access_token.
The most common causes include:
- Incorrect grant type (must be
authorization_code)
Token endpoint not returning access_token (or returning it incorrectly)
- Redirect URI mismatch between Teams and ServiceNow
Using the wrong endpoint (authorize instead of token endpoint)
- Returning URL-encoded response instead of JSON
Reference Document-
https://learn.microsoft.com/en-us/connectors/custom-connectors/troubleshoot-oauth2#troubleshoot-the-oauth-flow