title: Cannot use CookieAuthenticaton and openidConnect Authentication in asp.net core 2.0
body: <p>I have upgraded my project to asp.net core. But now my CookieAuthnetication and OpenIdConnectionAuthentication methods are not working. They have become obsolete.</p>
  
  <p><strong>Startup.cs Configure method</strong></p>
  
  <pre><code> app.UseCookieAuthentication(new CookieAuthenticationOptions
              {
                  AuthenticationScheme = "Cookies"
              });
  
              app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
              {
                  AuthenticationScheme = "oidc",
                  SignInScheme = "Cookies",
                  Authority = "http://localhost:5000",
                  RequireHttpsMetadata = false,
                  ClientId = "integapay.client",
                  ClientSecret = "mySecret",
                  ResponseType = "code id_token",
                  Scope = { "openid", "profile", "api.public", "offline_access" },
                  GetClaimsFromUserInfoEndpoint = true,
                  SaveTokens = true
              });
  </code></pre>