Browse by Tags

All Tags » ASP.NET (RSS)
Once you write an OWIN Middleware service, it can be reused everywhere as long as OWIN is supported. In my last post , I discussed how you could write an Authentication Handler in Katana for Hawk (HMAC Authentication). Good news is NancyFx can be run...
Posted by cibrax
Filed under: , , ,
As I discussed in my previous post , Katana is pretty much organized in middleware services.  One of those middleware services is authentication, which provides some built-in implementations for existing OAuth providers such as Facebook, Twitter...
Posted by cibrax
Filed under: , , ,
Introduction The .NET ecosystem offers today a lot of alternatives for developing web applications. You can either use any of the frameworks supported by Microsoft with ASP.NET such as Forms, MVC or Web API, or any other open source alternative like FubuMVC...
Posted by cibrax
Filed under: , , ,
ETW or Event Tracing for Windows is a very efficient pub/sub built-in mechanism that runs in Kernel Mode for doing event tracing. That implies there is just a little overhead in using this feature compared to other traditional tracing solutions that are...
Posted by cibrax
Filed under: , , ,
Some Web APIs use the client IP address to enforce Service Level Agreements such as limit the number of calls in a period of time. The client IP address can be used as a replacement for an authentication key sometimes when a previous registration of client...
Posted by cibrax
Filed under: ,
One of the features supported by Hawk, an HTTP authentication protocol based on HMAC, is to provide read-only access to a Web API for a short period time.  That’s performed through a token called “bewit” that a Web API can provide to a client. That...
Posted by cibrax
Filed under: , ,
ASP.NET ships with two built-in mechanisms for doing logging and troubleshooting.  Chasing errors without knowing these two mechanisms might be a daunting task, specially if they happen in the runtime pipeline much before a message gets to a handler...
Posted by cibrax
Filed under: , ,
Message Handlers are one of the core components for message processing in Web API. They use an asynchronous model for processing messages, so they receive a request message and returns a Task with the corresponding response. protected internal abstract...
Posted by cibrax
Filed under: , ,
For simple scenarios of Web API consumption where identity delegation is not required, traditional http authentication schemas such as basic, certificates or digest are the most used nowadays. All these schemas rely on sending the caller credentials or...
Posted by cibrax
Filed under: , ,
UrlHelper is the class you can use in ASP.NET Web API to automatically infer links from the routing table without hardcoding anything. For example, the following code uses the helper to infer the location url for a new resource, public HttpResponseMessage...
Posted by cibrax
Filed under: , ,
More Posts Next page »