title: ASP.NET 5 using openidconnect
body: <ol>
  <li><p>I'm confused which package to use:</p>
  
  <ul>
  <li>Microsoft.AspNet.Authentication.OpenIdConnect "1.0.0-beta4"</li>
  <li>Microsoft.AspNet.Security.OpenIdConnect "1.0.0-beta3"</li>
  </ul></li>
  <li><p>How to redirect to the external provider?
  I've added <code>[Authorize]</code> to the controller action and  <code>app.UseCookieAuthentication();app.UseOpenIdConnectAuthentication();</code> to <code>Startup.cs</code>.When I hit the controller action marked with <code>[Authorized]</code> attribute error 401 occurs but no redirection.
  To redirect I need to manually redirect with
  <code>Response.Challenge(new AuthenticationProperties() { RedirectUri = "/" },OpenIdConnectAuthenticationDefaults.AuthenticationScheme);</code>
  So what am I doing wrong here?</p></li>
  </ol>