Struct oxide_auth::primitives::authorizer::AuthMap[][src]

pub struct AuthMap<I: TagGrant = Box<dyn TagGrant + Send + Sync + 'static>> { /* fields omitted */ }
Expand description

An in-memory hash map.

This authorizer saves a mapping of generated strings to their associated grants. The generator is itself trait based and can be chosen during construction. It is assumed to not be possible for two different grants to generate the same token in the issuer.

Implementations

Create an authorizer generating tokens with the tagger.

The token map is initially empty and is filled by methods provided in its Authorizer implementation.

Trait Implementations

Create a code which allows retrieval of a bearer token at a later time.

Retrieve the parameters associated with a token, invalidating the code in the process. In particular, a code should not be usable twice (there is no stateless implementation of an authorizer for this reason). Read more

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.

Performs the conversion.

Reference this mutably as an Authorizer or Option::None.

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.