Struct oidc::Options

source ·
pub struct Options {
    pub scope: Option<String>,
    pub state: Option<String>,
    pub nonce: Option<String>,
    pub display: Option<Display>,
    pub prompt: Option<HashSet<Prompt>>,
    pub max_age: Option<Duration>,
    pub ui_locales: Option<String>,
    pub claims_locales: Option<String>,
    pub id_token_hint: Option<String>,
    pub login_hint: Option<String>,
    pub acr_values: Option<String>,
}
Expand description

Optional parameters that OpenID specifies for the auth URI. Derives Default, so remember to ..Default::default() after you specify what you want.

Fields

scope: Option<String>

MUST contain openid. By default this is ONLY openid. Official optional scopes are email, profile, address, phone, offline_access. Check the Discovery config scopes_supported to see what is available at your provider!

state: Option<String>nonce: Option<String>display: Option<Display>prompt: Option<HashSet<Prompt>>max_age: Option<Duration>ui_locales: Option<String>claims_locales: Option<String>id_token_hint: Option<String>login_hint: Option<String>acr_values: Option<String>

Trait Implementations

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

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

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.