Bit of Technology

  • Archive
  • About Me
    • Advertise
    • Disclaimer
  • Speaking
  • Contact

JSON Web Token in ASP.NET Web API 2 using Owin

October 27, 2014 By Taiseer Joudeh 332 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

In the previous post Decouple OWIN Authorization Server from Resource Server we saw how we can separate the Authorization Server and the Resource Server by unifying the “decryptionKey” and “validationKey” key values in machineKey node in the web.config file for the Authorization and the Resource server. So once the user request an access token from the Authorization server, the Authorization server will use this unified […]

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Filed Under: ASP.NET, ASP.Net Web API, Owin, RESTful API, Web API Security, Web API Tutorial Tagged With: ASP.NET, Autherization Server, JSON Web Tokens, JWT, OAuth, Resource Server, RESTful. Web API, Web API Security

Two Factor Authentication in ASP.NET Web API & AngularJS using Google Authenticator

October 15, 2014 By Taiseer Joudeh 46 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.NET, ASP.NET Identity, ASP.Net Web API, Owin, RESTful API, Single Page Applications, Web API Tutorial Tagged With: AngularJS, ASP.NET, Google Authenticator, Identity, TFA, Tutorial, Two Factor Authentication, Web API

Decouple OWIN Authorization Server from Resource Server

September 24, 2014 By Taiseer Joudeh 275 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Filed Under: ASP.Net Web API, CodeProject, Owin, RESTful API, Web API Tutorial Tagged With: ASP.NET, Autherization Server, OAuth, Resource Server, RESTful, Web API, Web API Security

Secure ASP.NET Web API 2 using Azure Active Directory, Owin Middleware, and ADAL

September 12, 2014 By Taiseer Joudeh 54 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Recently I’ve been asked by many blog readers on how to secure ASP.NET Web API 2 using Azure Active Directory, in other words we want to outsource the authentication part from the Web API to Microsoft Azure Active Directory (AD). We have already seen how the authentication can be done with local database accounts, and social identity providers, so in this […]

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Filed Under: ASP.NET, ASP.Net Web API, Azure, RESTful API Tagged With: Azure Active Directory, Token Authentication, Tutorial, Web API 2, Web API Security

ASP.NET Web API Documentation using Swagger

August 25, 2014 By Taiseer Joudeh 120 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Recently I was working on designing and implementing a large scale RESTful API using ASP.NET Web API, this RESTful API contains large number of endpoints with different data models used in the request/response payloads. Proper documentation and having a solid API explorer (Playground) is a crucial thing for your API success and likability by developers. There is […]

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

Filed Under: ASP.Net Web API, RESTful API Tagged With: Documentation, Swagger, Swagger-ui, Swashbuckle

ASP.NET Web API 2 external logins with Facebook and Google in AngularJS app

August 11, 2014 By Taiseer Joudeh 457 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.NET, ASP.Net Web API, RESTful API, Single Page Applications, Uncategorized, Web API Tutorial Tagged With: AngularJS, ASP.NET, External Login, Facebook, Google, OAuth, Social Login, SPA, Token Authentication, Web API

Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API 2, and Owin

July 16, 2014 By Taiseer Joudeh 730 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.NET, ASP.NET Identity, ASP.Net Web API, Owin, RESTful API, Single Page Applications, Web API Tutorial Tagged With: AngularJS, ASP.NET, OAuth, Refresh Tokens, SPA, Token Authentication, Web API

AngularJS Authentication with Auth0 & ASP .Net OWIN

July 2, 2014 By Taiseer Joudeh 12 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.Net Web API, Single Page Applications Tagged With: AngularJS, ASP.NET, Auth0, Authentication, JWT, SPA, Web API

AngularJS Token Authentication using ASP.NET Web API 2, Owin, and Identity

June 9, 2014 By Taiseer Joudeh 405 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.NET, ASP.NET Identity, ASP.Net Web API, CodeProject, RESTful API, Single Page Applications, Web API Tutorial Tagged With: AngularJS, ASP.NET, SPA, Token Authentication, Tutorial, Web API

Token Based Authentication using ASP.NET Web API 2, Owin, and Identity

June 1, 2014 By Taiseer Joudeh 1,454 Comments

Be Sociable, Share!

  • Tweet
  • Email
  • WhatsApp

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!

  • Tweet
  • Email
  • WhatsApp

Filed Under: AngularJS, ASP.NET, ASP.NET Identity, ASP.Net Web API, RESTful API, Single Page Applications, Web API Tutorial Tagged With: AngularJS, ASP.NET, SPA, Token Authentication, Tutorial, Web API

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • Next Page »

About Taiseer

Husband, Father, Consultant @ MSFT, Life Time Learner... Read More…

Buy me a coffeeBuy me a coffee

Recent Posts

  • Integrate Azure AD B2C with ASP.NET MVC Web App – Part 3
  • Secure ASP.NET Web API 2 using Azure AD B2C – Part 2
  • Azure Active Directory B2C Overview and Policies Management – Part 1
  • ASP.NET Web API Claims Authorization with ASP.NET Identity 2.1 – Part 5
  • ASP.NET Identity 2.1 Roles Based Authorization with ASP.NET Web API – Part 4

Blog Archives

Recent Posts

  • Integrate Azure AD B2C with ASP.NET MVC Web App – Part 3
  • Secure ASP.NET Web API 2 using Azure AD B2C – Part 2
  • Azure Active Directory B2C Overview and Policies Management – Part 1
  • ASP.NET Web API Claims Authorization with ASP.NET Identity 2.1 – Part 5
  • ASP.NET Identity 2.1 Roles Based Authorization with ASP.NET Web API – Part 4

Tags

AJAX AngularJS API API Versioning ASP.NET Authentication Autherization Server Azure Active Directory B2C Azure AD B2C basic authentication C# CacheCow Client Side Templating Code First Dependency Injection Entity Framework ETag Foursquare API HTTP Caching HTTP Verbs IMDB API IoC Javascript jQuery JSON JSON Web Tokens JWT Model Factory Ninject OAuth OData Pagination Resources Association Resource Server REST RESTful Single Page Applications SPA Token Authentication Tutorial Web API Web API 2 Web API Security Web Service wordpress.com

Search

Copyright © 2021 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.