Fixed – AADSTS90100: Invalid request. The Accept request parameter value ‘application/x-www-form-urlencoded’ is invalid

By | September 19, 2017

The introduction of Representational State Transfer (REST) service has allowed us to remotely interact with SharePoint data and perform basic operations like Create, Delete, Read and Update on SharePoint folders and files. When we use REST, we don’t need to add any references to libraries or client assemblies in SharePoint.

In one of our earlier blog, we have already discussed how to achieve the operations mentioned above in plug-ins/workflows using REST.

As discussed in the blog mentioned above, REST first makes the connection with SharePoint using the Username and Password and then gets the token and “AuthURL”.

However, we started to get the below-mentioned error sporadically while trying to get the AuthURL.

Error: AADSTS90100: Invalid request. The Accept request parameter value ‘application/x-www-form-urlencoded’ is invalid

After researching on this error, we came to know that the query string used “handler=1&login={0}” to get the “AuthURL” stopped working.

So to resolve this issue, we performed the below steps.

1. Change the query string to “xml=1&login={0}”.

2. De-serialize the response in the XML format.

Hope this helps!

Attach to Email Dynamics CRM Report Word

Leave a Reply