ASP.NET Core glossary: Journeyman level
30 ASP.NET Core terms at the Journeyman level, each with a short definition and a link to its full page.
Updated
- [Authorize]
- Requires a signed-in user, optionally with a role or policy.
- Action Filter
- Code that runs around controller actions, applied as an attribute.
- ActionResult<T>
- An action's return type that allows either its data (a T) or a status result such as NotFound().
- Authentication Middleware
- Middleware that works out who the caller is from their token or cookie.
- Authorization Policy
- A named rule about who is allowed to do something.
- Claims and ClaimsPrincipal
- Facts about the signed-in user, held by HttpContext.User.
- Conventional Routing
- Building every address in an MVC app from one pattern, such as {controller}/{action}/{id?}.
- Cookie Authentication
- Signing users in with an encrypted browser cookie.
- CORS Policy
- Rules for which other websites may call your API from a browser.
- CreatedAtAction
- A controller helper that answers 201 Created with the new item and a Location header pointing at it.
- Data Annotations
- Validation attributes on properties, like [Required] and [Range].
- Endpoint Filter
- Code that runs around specific minimal API handlers.
- Endpoint Routing
- Matching a request to its endpoint early so later middleware can see it.
- Environment Variables in .NET
- Settings supplied as environment variables, with __ for each colon.
- Exception Handling Middleware
- Middleware that turns unhandled exceptions into a clean error response.
- Health Checks
- An endpoint that reports whether the app and its dependencies work.
- HttpClient Factory
- The built-in way to create and configure HttpClient instances safely.
- JWT Bearer Authentication
- Validating a JWT sent in the Authorization header on each request.
- Middleware
- Code that runs on every request, in order, around your endpoints.
- Model Validation
- Checking incoming data against rules and returning 400 with errors.
- ModelState
- Where ASP.NET Core records how model binding and validation went; ModelState.IsValid says whether all is well.
- Options Pattern
- Binding configuration to a typed class injected as IOptions<T>.
- PartialView()
- A controller method that answers with just a partial view's HTML, without the layout.
- Problem Details in ASP.NET Core
- Returning errors in the standard Problem Details JSON shape.
- Request Pipeline
- The ordered chain of middleware every request passes through.
- Route Constraint
- A rule on a route value, such as {id:int}, that the address must match for the route to be used.
- Route Groups
- A shared URL prefix and settings for several minimal API endpoints.
- Session State
- Small values the server keeps for one visitor between requests, found again through a session cookie.
- User Secrets
- Development secrets stored outside the project so they are never committed.
- WebApplicationFactory
- Starts your app in memory for integration tests.