This is a migrated thread and some comments may be shown as answers.

Web Service Data Source 2-step Auth Content Type Not Supported

1 Answer 389 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 23 Sep 2020, 09:28 PM

The Web Service Data Source will only POST the body of the Authentication request as 'text/plain' and I need to be able to authenticated to web services requiring 'application/json' content type.

 

Currently I am unable to authenticate due to a 415 Unsupported Media Type error.

 

Is there any way to change the content type in the header of the authentication request?

 

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 28 Sep 2020, 11:13 AM

Hi Travis,

I noticed that the same topic was discussed in support ticket 1486217. I will post the response in this thread too, so other users can also benefit from the answer:

In general a 415 unsupported media type error occurs when the origin server refuses a particular request since the resource is in a format that is not supported by the server for the HTTP method used. This unsupported format type issue can be caused by what is defined in the resource's Content-Type header. You can add a Content-Type header to the request. In order to investigate further we will need access to the Web API service and a sample request which we can test and verify the API is working properly. You can also check 415 Unsupported Media type on REST .net Core article.

When it comes to the authentication, basically, we support only Basic and 2-step (Bearer). Please, find more information in WebServiceDataSource Component article. The password grant is supported in the 2-step authentication which is a standard and text/plain is used for the body of the request.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or