Skip to content

Glossary: ASP.NET Core

Fake sign-in (test authentication scheme)

Also written: TestAuth, X-Test-Email

A test-only authentication handler, registered with `ConfigureTestServices`, that turns headers such as `X-Test-Email` into the caller's claims. Tests then need no real token.

Where the book teaches it

Related terms

Test isolationAuthenticationClaimsPrincipal