# 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](https://www.ask-codey.com/glossary?category=aspnet-core&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/authentication-middleware
