title: Sharing Authentication Between Asp .Net and Asp .Net Core
body: <p>Hi I am building a centralized authentication structure for all our applications in our intranet.</p>
  
  <p>I have tried using a Jwt Web Api.</p>
  
  <p>I have tried Identity Server 4 OpenConnect</p>
  
  <p>And now i found out Cookie Sharing from Microsoft docs</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-2.2" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-2.2</a></p>
  
  <p>I can't decide even after reading so many articles already which one should i implement.</p>
  
  <p>The cookie sharing sounds very simple to do, I downloaded the sample and it worked right out of the box.</p>
  
  <p>The identity Server 4 samples all have some problem that i can't run. Some functions like log out won't work or only works on one end.</p>
  
  <p>The Jwt Web Api wasn't very hard to implement but still requires to thinker a bit to get claims from the token and then implement token refresh.</p>
  
  <p>The cookie sharing i just found out but i'm still open for more alternatives or pros and cons each of these.</p>
  
  <p>I also heard about OWIN but still don't understand exactly what it is</p>