title: "Generic" OpenID in ASP.NET MVC 5
body: <p>I played around with the new authentication features in ASP.NET MVC 5 (I previously used <code>DotNetOpenAuth</code>).</p>
  
  <p>I understand that the built-in Google provider uses OpenID [1] (and it works fine), but I want to use my own OpenID provider when authenticating.</p>
  
  <p>Unfortunately, I was not able to find an easy way to accomplish this with the out-of-the-box features of ASP.NET MVC 5. I looked through the source of <code>Microsoft.Owin.Security.Google</code> and based on this it seems quite possible to add a new OpenID provider.</p>
  
  <p>Is there an easier (maybe already built-in) way to add a new OpenID provider to an ASP.NET MVC 5 application? Or do I have to write one from scratch (a new Owin middleware)?</p>
  
  <p>[1] <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="noreferrer">http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on</a><br>
  [2] <a href="http://www.symbolsource.org/MyGet/Metadata/aspnetwebstacknightly/Project/Microsoft.Owin.Security.Google/2.0.1-rtw1-20924-641-dev/Release/.NETFramework,Version=v4.5/Microsoft.Owin.Security.Google" rel="noreferrer">http://www.symbolsource.org/MyGet/Metadata/aspnetwebstacknightly/Project/Microsoft.Owin.Security.Google/2.0.1-rtw1-20924-641-dev/Release/.NETFramework,Version=v4.5/Microsoft.Owin.Security.Google</a></p>