Category "asp.net-web-api2"

jQuery Ajax Web API call returns 401 unauthorized error when set only Windows authentication in IIS

We have our Web API hosted in IIS with only Windows authentication. We are calling that API from our Angular project and it is working fine. Now we are creatin

FromBody string parameter is giving null

This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but

MVC POST requests losing Authorization header - how to use API Bearer Token once retrieved

I have spent the last week creating an API for an existing MVC application, and am now attempting to secure the API along with reworking the MVC side security a

Order of execution with multiple filters in web api

I am using latest web api. I do annotate some controllers with 3 different filter attributes. 1 [Authorize] 2 [RessourceOwnerAttribute derived from Authorizat

Swagger UI Web Api documentation Present enums as strings?

Is there a way to display all enums as their string value in swagger instead of their int value? I want to be able to submit POST actions and put enums accord

ASP.NET Web API Google OAuth keep return "Access Denied"

I need to integrate my ASP.NET Web API with Google and Facebook OAuth. I was following all the steps from https://bitoftech.net/2014/08/11/asp-net-web-api-2-ext

Swashbuckle and Web Api method with ModelBinder

I have a C# WebAPI project with a method that uses a custom ModelBinder for its input parameter. When I look at the Swagger UI that Swashbuckle generates, rathe