Error!!! "OAuth flow failed. Verify the configurations and try again. Error detail:invalid_request, Missing parameters: access_token"

Salvador Marcha
Kilo Guru

Gurus and Experts,

I really need some assistance here. I did my due diligence but I am stuck. In the attachment are screenshots of the steps I did to access SharePoint using OAuth2.0. It is a client _credentials grant type and works normally with POSTMAN.

In my dev instance, Application Registry, OAuth Entity Profile, and Credentials are setup but I'm receiving an error (as shown in the title above).

I have no means of verifying the Script Includes (OAuthConsumerSupport) that  I used in Application Registry. Is this the right one? Or doe sit need some update?

Any tips or leads is appreciated.

Thanks,

Dor

 

8 REPLIES 8

No dice....I received the same error message when I apply the Script Include (OAuthUtilSPOnline) from the MS-SP spoke.

T Pruthvi
Tera Contributor

Hello All,

 

I know this is a very old thread, but I'm also a victim of the same error 😅😅 and here is the good news: the below documentation has helped me in resolving the issue

Follow the 'Register Microsoft SharePoint Online as OAuth provider' section in the below URL and test your connection by clicking on 'Get oAuth token' and it should work🙌


https://docs.servicenow.com/bundle/xanadu-integrate-applications/page/administer/integrationhub-stor...

 

Funnily enough I had things working and was able to replicate the error by REMOVING the v2.0 from the URL

For example, the documentation says

 

Token URL in this format: https://login.microsoftonline.com/<tenant-id>/oauth2/token. Replace <tenant-id> with Directory (tenant) ID value of your application had registered in the Azure portal.

but if you make it ..../oauth2/v2.0/token 

the error goes away.

talkokulmin
Mega Contributor

I am facing issue with below error in SNOW to salesforce integration-

OAuth flow failed. Verify the configurations and try again. Error detail:invalid_grant, authentication failure