pub enum AuthConfig {
    Biome {
        biome_credentials_resource_provider: BiomeCredentialsRestResourceProvider,
    },
    Cylinder {
        verifier: Box<dyn Verifier>,
    },
    OAuth {
        oauth_config: OAuthConfig,
        oauth_user_session_store: Box<dyn OAuthUserSessionStore>,
        user_profile_store: Box<dyn UserProfileStore>,
    },
    Custom {
        resources: Vec<Resource>,
        identity_provider: Box<dyn IdentityProvider>,
    },
}
Expand description

Configurations for the various authentication methods supported by the Splinter REST API.

Variants

Biome

Fields

biome_credentials_resource_provider: BiomeCredentialsRestResourceProvider

The resource provider that defines the Biome credentials endpoints for the Splinter REST API

Biome credentials authentication

Cylinder

Fields

verifier: Box<dyn Verifier>

The signature verifier used to validate Cylinder JWTs

Cylinder JWT authentication

OAuth

Fields

oauth_config: OAuthConfig

OAuth provider configuration

oauth_user_session_store: Box<dyn OAuthUserSessionStore>

The Biome OAuth user session store

user_profile_store: Box<dyn UserProfileStore>

The Biome user profile store

OAuth authentication

Custom

Fields

resources: Vec<Resource>

REST API resources that would allow a client to receive some authentication credentials

identity_provider: Box<dyn IdentityProvider>

The identity provider that correlates the contents of the Authorization header with an identity for the client

A custom authentication method

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

Returns the argument unchanged.

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

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more