Be Sociable, Share!

In my previous post Secure ASP.NET Web API 2 using Azure Active Directory I’ve covered how to protect Web API end points using bearer tokens issued by Azure Active Directory, and how to build a desktop application which acts as a Client. This Client gets the access token from the Authorization Server (Azure Active Directory) then use this bearer access […]

Be Sociable, Share!

Last week I was looking on how to enable Two Factor Authentication in a RESTful ASP.NET Web API service using Soft Tokens not SMS. Most of the examples out there show how to implement this in MVC application where there will be some cookies transmitted between requests, this approach defeats the stateless nature of the RESTful […]

Be Sociable, Share!

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 […]

Be Sociable, Share!

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 […]

Be Sociable, Share!

This is guest post written originally to Auth0. Recently I’ve blogged about using tokens to authenticate users in single page applications, I’ve used ASP.NET Web API, Owin middleware and ASP.NET Identity to store local accounts in database, I didn’t tap into social identity logins such as (Google, Microsoft Accounts, Facebook, etc..) because each provider will not supply the same information […]

Be Sociable, Share!

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 […]

Be Sociable, Share!

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 […]

Be Sociable, Share!

Last week I was working on AngularJS project which contains multiple JavaScript files (controllers, services, directives, etc…), good number of HTML partials, and some custom CSS files. This project started to grow and the number of JavaScript files and HTML partials started to increase quickly. I felt it is the right time to start minifing, […]

Be Sociable, Share!

This is the third part of Building SPA using AngularJS Series. The topics we’ll cover are: Building SPA using AngularJS – Part 1 Building SPA using AngularJS – Part 2 Building SPA using AngularJS – Part 3 (This Post) Update (2014-May-5) New post which covers adding GulpJS as Task Runner for our AngularJS application: AngularJS […]

Be Sociable, Share!

This is the second part of Building SPA using AngularJS Series. The topics we’ll cover are: Building SPA using AngularJS – Part 1 Building SPA using AngularJS – Part 2 (This Post) Building SPA using AngularJS – Part 3 Update (2014-May-5) New post which covers adding GulpJS as Task Runner for our AngularJS application: AngularJS with […]