Is the asp.net mvc 5 sample project with 2 factor authentication a sample or production ready?

It seems like the only way I can currently get 2 factor authentication from identity 2 is if I create an empty MVC 5 app then install the Identity samples Pre release with the package manager like so:

Install-Package -Prerelease Microsoft.AspNet.Identity.Samples

But it seems like this is only a sample and not something I can use for a real app? Can I use this "sample" project as a real app? It says in the documentation at www.asp.net/identity that it is a production release!

I just want to get 2 factor authentication into a project and I'm not sure how to do it? All the guides online show the use of the prerelease sample project from NuGet. I guess the question is - is this sample project ready for the "Show" or should I wait for a project template in VS 2013 to show up in some update? I'm afraid that if I create a MVC 5 app now with no 2 factor authentication and then try and add it later it will be a pain in the ars! Or if I use the sample project with 2FA now it might have major bugs that will be a pain in the ars later to fix being that its just a sample app.

Last question! If I do end up using the sample app to create a 2FA in my app can I still register with Facebook/Google/Twitter/etc for login?


The samples are showing how you can enable 2FA and more features of Identity. They have some areas which are not production ready such as the WebAdmin scenario of managing users and roles. We are updating the project templates in next update of Visual Studio 2013 which will have 2FA enabled in the templates. The project templates are based on the samples so will be pretty close in terms of content. You can also use Facebook/ Twitter etc for logging in in the samples package


  • MVC5 custom error page
  • Access DB - Operation must use updateable query
  • How to separate filename from path? basename() versus preg_split() with array_pop()
  • Defining a method whose return type is the singleton type of an argument of that method
  • DNS Lookup failed - Error with all browsers [closed]
  • How to change default stop edit behavior in jtable
  • Returning this from a constructor function in JS
  • Cursor in wrong place in contenteditable
  • Client side validation mvc dropdown
  • Cordova Apache wrong module path
  • Prolog Ambiguous Output
  • Separate ID and Class for JS and CSS
  • C# List of Panels
  • Does Apportable support to build library binary (.a/.so)?
  • netsh acl setting (need alternative method - registry settings?)
  • how to set variables in a php include file?
  • How to return DataSet (xsd) in WCF
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Time complexity of a program which involves multiple variables
  • Custom validator control occupying space even though display set to dynamic
  • Switching to Release Build causes runtime error in Web Reference
  • How to clear text inside text field when radio button is select
  • Scrapy recursive link crawler
  • Recording logins for password protected directories
  • Launch Runnable Jar from Web Start
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Optimizing database types to compact database (SQLite)
  • Get object from AWS S3 as a stream
  • Java applet as stand-alone Windows application?
  • Cross-Platform Protobuf Serialization
  • Validaiting emails with Net.Mail MailAddress
  • Do I've to free mysql result after storing it?
  • Jquery - Jquery Wysiwyg return html as a string
  • QuartzCore.framework for Mono Develop
  • json Serialization in asp
  • SQL merge duplicate rows and join values that are different
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Turn off referential integrity in Derby? is it possible?
  • Reading document lines to the user (python)