Struct jwt_actix::JwtAuth[][src]

pub struct JwtAuth { /* fields omitted */ }
Expand description

JWT validating middleware for Actix-Web.

Implementations

Create a new instance of JwtAuth. The URL for the keystore must be provided in the environment variable JWKS_URL at runtime.

A validator function of type JwtValidator must be provided. For every request, this will be called with the request and token information, and the function will determine whether the request should be processed (true) or not (false).

Create a new instance of JwtAuth. The keystore for validating token signatures will be downloaded from the given jwks_url.

A validator function of type JwtValidator must be provided. For every request, this will be called with the request and token information, and the function will determine whether the request should be processed (true) or not (false).

Trait Implementations

Responses produced by the service.

Errors produced by the service.

The TransformService value created by this factory

Errors produced while building a transform service.

The future response value.

Creates and returns a new Transform component, asynchronously

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.