Recently I’ve received lot of comments and emails asking how we can decouple the OWIN Authorization Server we’ve built in the previous posts from the resources we are protecting. If you are following the posts mentioned below you will notice that we’ve only one software component (API) which plays both roles: Authorization Server and Resource Server. […]
ASP.NET Web API 2 external logins with Facebook and Google in AngularJS app
Ok so it is time to enable ASP.NET Web API 2 external logins such as Facebook & Google then consume this in our AngularJS application. In this post we’ll add support to login using Facebook and Google+ external providers, then we’ll associate those authenticated social accounts with local accounts. Once we complete the implementation in this post we’ll have an […]
Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API 2, and Owin
After my previous Token Based Authentication post I’ve received many requests to add OAuth Refresh Tokens to the OAuth Resource Owner Password Credentials flow which I’m currently using in the previous tutorial. To be honest adding support for refresh tokens adds a noticeable level of complexity to your Authorization Server. As well most of the available resources on […]
AngularJS Token Authentication using ASP.NET Web API 2, Owin, and Identity
This is the second part of AngularJS Token Authentication using ASP.NET Web API 2 and Owin middleware, you can find the first part using the link below: Token Based Authentication using ASP.NET Web API 2, Owin middleware, and ASP.NET Identity – Part 1. Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API […]
Token Based Authentication using ASP.NET Web API 2, Owin, and Identity
Last week I was looking at the top viewed posts on my blog and I noticed that visitors are interested in the authentication part of ASP.NET Web API, CORS Support, and how to authenticate users in single page applications built with AngularJS using token based approach. So I decided to compile mini tutorial of three five posts which covers and connects those […]
Building OData Service using ASP.Net Web API Tutorial – Part 3
This is the third part of Building OData Service using Asp.Net Web API. The topics we’ll cover are: OData Introduction and Querying Existing OData Service – Part 1. Create read-only OData endpoint using Asp.Net Web API – Part 2. CRUD Operations on OData endpoint using Asp.Net Web API – Part 3 (This Post). Consuming OData Service […]
Building OData Service using ASP.Net Web API Tutorial – Part 2
This is the second part of Building OData Service using Asp.Net Web API. The topics we’ll cover are: OData Introduction and Querying Existing OData Service – Part 1. Create read-only OData endpoint using Asp.Net Web API – Part 2 (This Post). CRUD Operations on OData endpoint using Asp.Net Web API – Part 3. Consuming OData Service […]
Building OData Service using ASP.Net Web API Tutorial – Part 1
In my previous tutorial we’ve covered different aspects of how to Build RESTful service using Asp.NET Web API, in this multi-part series tutorial we’ll be building OData service following the same REST architecture we’ve talked about previously. Before jump into code samples let’s talk a little bit about OData definition and specifications. OData Introduction OData […]
What is New in ASP.Net Web API 2 – Part 2
In the previous post we’ve covered ASP.Net Web API 2 attribute routing, in this post we’ll complete covering new features, we’ll start by discussing the new response return type IHttpActionResult then cover the support for CORS. Source code is available on GitHub. ASP.Net Web API 2 IHttpActionResult: As we talked before ASP.Net Web API 2 has […]
What is New in ASP.Net Web API 2 – Part 1
Asp.Net Web API 2 has been released with the release of Asp.Net MVC 5 since 5 months ago, Web API 2 can be used with .NET framework 4.5 only, the Web API 2 template is available by default on VS 2013 and you can install Web Tools 2013.1 for VS 2012 to have this template […]