title: Adding External Login To Existing MVC5 Project Already Using Custom Membership Provider
body: <p>I have an existing MVC 5 project which is happily using forms authentication and a custom membership provider behind the scenes and I'd like to add external logins (Google/Facebook etc) to this.</p>
  
  <p>I've tried following posts such as <a href="http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on" rel="nofollow">this Microsoft example</a> however they all seem to cover creating a new project using the wizard.  I've I created a Startup.cs and Startup.Auth.cs class exactly as the tutorial shows (with all the correct dependencies) however they don't fire when the app starts for some reason, unlike the wizard example which fires after the app_start global.asax method.  I've tried matching the config etc but that doesn't seem to work either. </p>
  
  <p>Is there something I'm missing in terms of how to wire these classes in?</p>
  
  <p>Due to this problem I'm tempted to use an AuthConfig.cs file and <a href="http://msdn.microsoft.com/en-us/library/microsoft.aspnet.membership.openauth%28v=vs.111%29.aspx" rel="nofollow">Microsoft.AspNet.Membership.OpenAuth</a> as I have before but I'm not sure if this is now considered evil in MVC5?</p>
  
  <p>Any help would be appreciated.</p>