Bit of Technology

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

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

October 15, 2014 By Taiseer Joudeh 50 Comments

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

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

About Taiseer

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

Buy me a coffeeBuy me a coffee

Recent Posts

  • Part 10: Observability, Cost Control and MCP Security
  • Part 9: Connecting an MCP Server to Microsoft Foundry Agent Service
  • Part 8: Deploying an MCP Server to Azure Container Apps
  • Part 7: Securing an MCP Server with Microsoft Entra ID
  • Part 6: Building an MCP Client and AI Agent in .NET

Blog Archives

Recent Posts

  • Part 10: Observability, Cost Control and MCP Security
  • Part 9: Connecting an MCP Server to Microsoft Foundry Agent Service
  • Part 8: Deploying an MCP Server to Azure Container Apps
  • Part 7: Securing an MCP Server with Microsoft Entra ID
  • Part 6: Building an MCP Client and AI Agent in .NET

Tags

.NET .NET 10 AI Agents AJAX AngularJS API API Versioning ASP.NET ASP.NET 6 Authentication Autherization Server Azure Azure Active Directory B2C Azure AD B2C Azure Container Apps C# Code First Dapr Dependency Injection Entity Framework Foursquare API GitHub Copilot jQuery JSON JSON Web Tokens JWT MCP Microservice Model Context Protocol Ninject OAuth OData Redis Resource Server REST RESTful Single Page Applications SPA Token Authentication Tutorial VS Code Web API Web API 2 Web API Security Web Service

Search

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