/ps-authorization-authentication-dotnetcore

Course work from Pluralsight's Authentication & Authorization in ASP.NET Core By Robert Guijt

Primary LanguageC#

ps-authorization-authentication-dotnetcore

Course work from Pluralsight's Authentication & Authorization in ASP.NET Core By Robert Guijt

General Overview of Content Covered:

Authentication

Utilization of Centralized Authentication

Applying Authorization

Claims-Based Authentication & Authorization

Identity Cookie

ClaimsPrincipal

Different between Claims-based Authentication & Authorization:

Authentication: go to hotel with reservation, ask for id, because they need to make sure you are who you see. Determine identity but also need proof. The hotel needs a passport, the application needs a password.

Authorization: after the hotel confirms who are you, handed hotel key but not before certain claims are checked on the passport. Key provided by hotel only allows entrance to your room and pool (hypothetically) but not doors to office spaces, bar, etc..

Identity Cookies

tracks to which user a request belogns to

safely stores user information

symettric encryption, key only on server.

used to re-construct the ClaimsPrinciple object on each request

secured by ASP.NET Core Data Protection.

Breif Notes

Authentication deteermines: you are who you say you are

Authorization determines: what actions a user can take and limits access accordingly.

Authorization requires Authentication FIRST