authentication challenge
The response telling a caller with no valid credential to authenticate, a 401 status with a WWW-Authenticate header.
In more detail
The framework sends it automatically when an endpoint requires an authenticated user and none is present. It differs from a forbidden response, which tells an identified caller they lack permission.
Related terms
- 401 Unauthorized — The HTTP status meaning the request has no valid credentials, so the caller must authenticate first.
- authentication — Establishing who a request represents, for example by checking a password, a session cookie or a signed token.
Taught in
- Role-Based and Policy-Based Authorization — Modern .NET Core, C# & Enterprise Microservices