API Auth
NO WARRANTY. Trax auth is plumbing, not a security product. You are solely responsible for securing systems that use it. See API Security.
Reference for the Trax authentication packages. How they fit into a secured host is in API Security.
Trax.Api.Auth
- TraxPrincipal: the identity record, its claims round trip,
TraxPrincipalId. - AddTraxPrincipalAccessor: the injectable
TraxPrincipalandTraxCaller. - TraxCaller: the caller context that never throws.
- ITraxPrincipalResolver: maps a credential to a principal.
- TraxAuthClaimTypes: the claim types and the combined policy.
Trax.Api.Auth.ApiKey
- AddTraxApiKeyAuth: the API-key scheme and
ApiKeyBuilder. - HashedApiKeyResolver: the constant-time resolver over hashed keys.
- ApiKeyAuthenticationOptions: the header the scheme reads.
- ApiKeyDefaults: scheme, policy and header names.
Trax.Api.Auth.Jwt
- AddTraxJwtAuth: the JWT bearer scheme,
JwtBuilder,DefaultJwtPrincipalResolver. - JwtProviderExtensions: Google, Auth0, Entra and Cognito shortcuts.
- AddTraxJwtDispatcher: routes a token to a scheme by its issuer.
- JwtDefaults: scheme and policy names.
Trax.Api.Auth.Jwt.Cognito
- UseCognito: validation for an Amazon Cognito user pool, and
CognitoJwtPrincipalResolver. - CognitoDefaults: Cognito claim names.
Trax.Api.Auth.Jwt.Cognito.Issuer
- CognitoTokenIssuer: mints Cognito-shaped access and ID tokens.
- IRefreshTokenStore: refresh tokens with rotation chains, and the in-memory store.
Trax.Api.Auth.Jwt.Testing
- TestJwksServer: an in-process discovery and JWKS host.
- TestTokenIssuer: mints test tokens, with
TestTokenBuilder.
Trax.Api.Auth.Oidc
- AddTraxOidcAuth: the OpenID Connect code-flow scheme,
OidcBuilder,DefaultOidcPrincipalResolver. - OidcDefaults: scheme, cookie, policy and path names.