title: How to have a single asp.net mvc project with cookie authentication for mvc controllers and token authentication for API controllers
body: <p>We have an existing asp.net Mvc 5 application having external login with OAuth2 providers like google, and microsoft. We are using CookieAuthenticatoin for this.</p>
  
  <p>Now we need to add ApiContoller to the same application. </p>
  
  <p>Is there any way to use the same cookie to authenticate ApiControllers. Can I configure both cookie authentication and tokenauthentication in Startup file?</p>