Skip to navigation

Boyan Mihaylov

Boyan Mihaylov

Boyan Mihaylov

Software architect, web enthusiast, improviser

  • Home
  • Return to Content

Header menu

  • Speaking
  • Improv
  • Travel
  • About

Tag Archives: owin

Double confirm identity with ASP.NET Identity

  • authentication, identity, log in, mvc, owin
  • February 9, 2015

ASP.NET Identity brings the authentication and authorization to a new level. Based on the OWIN middleware, one can plug & play different authentication and authorization providers, f.x. OAuth, OpenID, simple forms authentication. The beauty of the new identity model is that it provides a unified interface to work with. One can write her own log-in providers that still rely on the same unified interface.

Besides the typical scenarios where a user logs in with her username and password, or Twitter/Facebook/Google, or maybe a two factor log-in with SMS/e-mail confirmation, there is another interesting one. In some cases you would want to enable users to log in with simple forms authentication to access a basic area of functionality, f.x. just reading data. On the contrary you would want to protect other areas of the web site where the user can edit sensitive information, f.x. his password. In this case you may want to require that the user logs in again – either with the same provider or with another one.

To solve this issue I decided to write a simple extension for ASP.NET Identity, which I called Double confirm identity. It provides a set of utility methods you can use to achieve the described scenario.

Continue Reading…

Recent comments

  • Big T on taskhostw.exe high CPU usage on Windows 10
  • inslayn on Prim’s Algorithm
  • Oli101 on taskhostw.exe high CPU usage on Windows 10
  • gsudhesh on Manually trigger knockout validation
  • Ivo Peksens on Why you may not need HR anymore

Friends

  • Ajaxus

Popular tags

.NET agile algorithm amd android angular angularjs architecture ASP.NET asp.net mvc authentication BCS best practices browser compatibility bug bulgaria campaign database dependency injection deployment design patterns ebook facebook google analytics html javascript kerberos matrix mvc performance polymer react reactjs release security sharepoint sharepoint 2010 Silverlight smtp team test visual studio web webassembly WPF

Search

Powered by WordPress & Highwind.

Back to top