nat.authentication.jwt.jwt_auth_provider#
Named JWT identity verification provider.
Classes#
Validate inbound JWTs using a named issuer policy. |
Module Contents#
- class JwtAuthProvider( )#
Bases:
nat.authentication.interfaces.AuthProviderBase[nat.authentication.jwt.jwt_auth_provider_config.JwtAuthProviderConfig]Validate inbound JWTs using a named issuer policy.
- _validator#
- async verify(
- token: str,
Verify a JWT against this provider’s configured trust policy.
- property validator: nat.authentication.credential_validator.bearer_token_validator.BearerTokenValidator#
Return the cached validator used by this named provider.
- async authenticate(
- user_id: str | None = None,
- \*\*kwargs,
Validate the supplied
tokenthrough the authentication-provider interface.