Struct oxide_auth::primitives::registrar::EncodedClient[][src]

pub struct EncodedClient {
    pub client_id: String,
    pub redirect_uri: RegisteredUrl,
    pub additional_redirect_uris: Vec<RegisteredUrl>,
    pub default_scope: Scope,
    pub encoded_client: ClientType,
}
Expand description

A client whose credentials have been wrapped by a password policy.

This provides a standard encoding for Registrars who wish to store their clients and makes it possible to test password policies.

Fields

client_id: String

The id of this client. If this is was registered at a Registrar, this should be a key to the instance.

redirect_uri: RegisteredUrl

The registered redirect uri. Unlike additional_redirect_uris, this is registered as the default redirect uri and will be replaced if, for example, no redirect_uri is specified in the request parameter.

additional_redirect_uris: Vec<RegisteredUrl>

The redirect uris that can be registered in addition to the redirect_uri. If you want to register multiple redirect uris, register them together with redirect_uri.

default_scope: Scope

The scope the client gets if none was given.

encoded_client: ClientType

The authentication data.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.