Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

asp.net-web-api

ASP.NET Web API 2: How do I log in with external authentication services?

September 2, 2022 by Magenaut

According to this post http://www.asp.net/web-api/overview/security/external-authentication-services…
I’m able to log in with a local authentication service (with the new ASP.NET identity framework)

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-identity, asp.net-web-api, oauth-2.0 Leave a comment

How to Customize ASP.NET Web API AuthorizeAttribute for Unusual Requirements

September 2, 2022 by Magenaut

I am inheriting from System.Web.Http.AuthorizeAttribute to create a custom authorization/authentication routine to meet some unusual requirements for a web application developed using ASP.NET MVC 4. This adds security to the Web API used for Ajax calls from the web client. The requirements are:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-web-api, security Leave a comment

Reading FromUri and FromBody at the same time

September 2, 2022 by Magenaut

I have a new method in web api

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, frombodyattribute, http-post Leave a comment

How to return raw string with ApiController?

September 2, 2022 by Magenaut

I have an ApiController that serves XML/JSON, but I would like one of my actions to return pure HTML. I tried the below but it still return XML/JSON.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, asp.net-web-api Leave a comment

Web Api Parameter always null

September 2, 2022 by Magenaut

Why is the parameter always null when I call the below Post method with the below ajax?

Categories ASP.NET, Q&A Tags ajax, asp.net, asp.net-web-api Leave a comment

Can I incorporate both SignalR and a RESTful API?

September 2, 2022 by Magenaut

I have a single page web app developed using ASP.NET. I recently converted many of the web methods to be push based, using the SignalR library. This really sped up the page considerably and reduced a lot of the server calls from the page.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, rest, signalr, web-applications Leave a comment

Order of execution with multiple filters in web api

September 2, 2022 by Magenaut

I am using latest web api.

Categories ASP.NET, Q&A Tags action-filter, asp.net, asp.net-web-api, asp.net-web-api2, c# Leave a comment

Force CamelCase on ASP.NET WebAPI Per Controller

September 2, 2022 by Magenaut

In ASP.NET WebAPI, I know you can set the default json formatter to use camel case using CamelCasePropertyNamesContractResolver() in the global.aspx which will force ALL json serialization to camel case.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, camelcasing, json, json.net Leave a comment

ASP.net MVC4 WebApi route with file-name in it

September 2, 2022 by Magenaut

I’m trying to get the following (and similar) urls to work in my ASP.net MVC4/WebApi project:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-routing, asp.net-web-api Leave a comment

Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?

September 2, 2022 by Magenaut

I’m working in an ASP.NET webapi codebase where we rely heavily on the automatic support for JSON deserialization of message bodies into .NET objects via JSON.NET.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, json, json.net Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page29 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress