Trying to Set up Microsoft Teams Graph spoke getting Error at get auth token

Saeed2
Kilo Contributor

Trying to Set up Microsoft Teams Graph spoke using https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/integrationhub-store-spokes/task/set-up-msteams.html.

when I try to get auth token I get Error 

Sign in

Sorry, but we’re having trouble with signing you in.

 
AADSTS900144: The request body must contain the following parameter: 'scope'.
2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Are you trying to consume Microsoft Teams API?

If yes then you should be checking this error on Microsoft site to know what it means and how it expects the request to be sent

https://stackoverflow.com/questions/49513122/oauth2-error-aadsts90014-the-request-body-must-contain-...

AADSTS900144: The request body must contain the following parameter: 'scope'.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 

Thanks for your response, Yes we are trying to setup Teams API. I logged ticket with Microsoft, their initial response is that

"According to the error information shared in case description I have checked Azure AD side logs, and it appears the certain authentication request that Azure AD received is like this (some parameters are masked):

 

GET https://login.microsoftonline.com/96ef8821-2a39-471c-b89a-67b0833dd3b9/oauth2/v2.0/authorize?respons...

 

Based on parameter “response_type=code” it looks application was trying to authenticate using OAuth2 Authorization Code flow, for this authentication flow the parameter “scope” is necessary in the authentication request. You can refer to this document for all the parameters which is necessary in an OAuth2 Authorization Code flow authentication request:"

regards

Saeed