I have asp MVC project with API ,Now I Want make Startup.Auth.cs to authentcation access from site and API
1- This is my Startup.Auth.cs that work with site
2- And this Startup.Auth.cs that work with api
How Can make Startup.Auth.cs that can works with site and API ?

Shweta LodhaRank #31 · 39.8K reputationPosted Jan 7, 2018, 6:54 PM EST
sumer alkadasi27 reputationPosted Jan 9, 2018, 5:03 AM EST
sumer alkadasi27 reputationPosted Jan 10, 2018, 7:54 AM EST
config.SuppressDefaultHostAuthentication();
config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));