pub struct FronteggConfig {
    pub admin_api_token_url: String,
    pub decoding_key: DecodingKey,
    pub tenant_id: Uuid,
    pub now: NowFn,
    pub refresh_before_secs: i64,
    pub password_prefix: String,
}

Fields

admin_api_token_url: String

URL for the token endpoint, including full path.

decoding_key: DecodingKey

JWK used to validate JWTs.

tenant_id: Uuid

Tenant id used to validate JWTs.

now: NowFn

Function to provide system time to validate exp (expires at) field of JWTs.

refresh_before_secs: i64

Number of seconds before which to attempt to renew an expiring token.

password_prefix: String

Prefix that is expected to be present on all passwords.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext 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.

Wrap the input message T in a tonic::Request

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