title: .NET 4.5 and .NET Core - Authentication Legacy
body: <p>I'm starting to work with ASP.NET Core but I still have legacy projects, so I'm going through the following problem.</p>
  
  <p>I have a project in .NET Framework 4.5 that is responsible for authenticating all my other applications.
  This project uses Microsoft Owin for authentication:</p>
  
  <p>Authentication project:</p>
  
  <pre><code>OAuthAuthorizationServerOptions = new OAuthAuthorizationServerOptions
  {
      AllowInsecureHttp = true,
      TokenEndpointPath = new PathString("/api/token"),
      AccessTokenExpireTimeSpan = TimeSpan.FromHours(2),
      Provider = new SimpleAuthorizationServerProvider(),
      RefreshTokenProvider = new ApplicationRefreshTokenProvider()
  };
  
  // Token Generation
  app.UseOAuthAuthorizationServer(OAuthAuthorizationServerOptions);
  app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
  {
      Provider = new AppOAuthBearerAuthenticationProvider()
  });
  </code></pre>
  
  <p>In other applications the token generation part is not added, only</p>
  
  <pre><code>app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
  {
      Provider = new AppOAuthBearerAuthenticationProvider()
  });
  </code></pre>
  
  <p>In both web.config:</p>
  
  <pre><code>&lt;machineKey validationKey="myValidationKey" decryptionKey="myDecryptionKey" validation="SHA1" /&gt;
  </code></pre>
  
  <p>Is it possible for the new .NET Core project to maintain the same authentication by validating the token generated by the authentication application?</p>