Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Why there is no services.AddAuthentication() in startup when using services.AddIdentity(...) ?

$
0
0

I use latest VS2017 to create new ASP.NET Core 2.0 MVC app and change authentication to "Individual User Accounts". 

In the "Startup.cs", I can see "app.UseAuthentication();" but there is no "services.AddAuthentication()".  Does this mean when "services.AddIdentity(...)" used, the "app.UseAuthentication();" is implicited added and all default scheme applied?  Could someone explain this in details? Thanks.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>