# JwtDefaults

> NO WARRANTY. Trax auth is plumbing, not a security product. You are solely responsible for securing systems that use it. See [API Security](/docs/api-security).

Constants used by the Trax JWT bearer scheme.

| Constant | Value | Usage |
|---|---|---|
| `SchemeName` | `TraxJwt` | Default `AuthenticationScheme` name registered by `AddTraxJwtAuth` when no scheme name is supplied. |
| `PolicyName` | `JwtPolicy` | Default authorization policy registered alongside the default scheme, satisfied only by a caller that scheme authenticated. A named scheme's `{scheme}-JwtPolicy` is satisfied only by that scheme, and the dispatcher's by any scheme it maps to. |
| `PrincipalType` | `jwt` | Value written to the `trax:principal-type` claim by `DefaultJwtPrincipalResolver`. |
| `DispatcherSchemeName` | `TraxJwtDispatcher` | Default policy-scheme name registered by `AddTraxJwtDispatcher`. |
| `RejectSchemeName` | `TraxJwtReject` | Internal scheme used by the dispatcher when no issuer mapping matches. Always returns `AuthenticateResult.Fail`. |

Named-scheme registrations derive their authorization policy name from the scheme name: a scheme called `cognito` registers the policy `cognito-JwtPolicy`.
