Configuring a WCF service is sometime a complex operation, expecially when we need to define the security of the service. On the Microsoft web site we have some detailed articles about the different configurations, what I discuss in this post is enable a custom authentication where, based on a username and password a custom code... Continue Reading →
OAuth authentication client with .NET
One of the most authentication protocol used today in the web application is OAuth, as you know the token-based authentication protocol, where a client send the credential for the authentication, and if all goes well it receives a bearer token that the client will use for the further requests to the server. If I want... Continue Reading →
Looking deep inside OData Controllers
ASP.NET 4.5 has three different class which we can inherits to implements the controllers: Controller, ApiController and ODataController. In the latest applications that I implemented, because they were SPA, I used rarely the classic Controller (know as MVC controllers) and I developed a huge number of ApiController and ODataController. The first ones are used to... Continue Reading →
Managing OAuth 2 authentication with Swagger
In this post I want to talk about a product that could help us to produce documentation about the Web API services implemented in our application. Swagger is a popular framework that once installed in an ASP.NET application is able to produce documentation about all the Web API implemented in the project. Furthermore it give... Continue Reading →
Web API in ASP.NET Core
In this post I'll talk about the Web API in ASP.NET Core and how we can implement a Restful service with this new framework. One of the main difference in ASP.NET Core is that Web API have an unified class with the classic MVC Controllers. So the declaration of a Web API in ASP.NET Core... Continue Reading →