Authentication Middleware
noun
say it: “aw-then-tih-KAY-shun MID-ul-wair” /ɔːˌθɛntɪˈkeɪʃən ˈmɪdəlwɛr/
The part of ASP.NET Core's request pipeline that works out who the caller is from their cookie or token.
What is Authentication Middleware?
UseAuthentication reads the credentials on each request (a JWT, a cookie) and sets HttpContext.User to who the caller is.
In a sentence
- “Authentication middleware reads the cookie and sets User before the controller runs.”
Level: Journeyman · More ASP.NET Core terms at this level
Updated