pub struct OAuth2Properties<C: Client> {
pub config: C::Configuration,
pub scopes: Vec<String>,
pub grace_period: Duration,
pub max_expiration: Option<Duration>,
pub audience: Option<String>,
pub children: Children,
pub login_options: Option<LoginOptions>,
pub logout_options: Option<LogoutOptions>,
}Expand description
Properties for the context component.
Fields§
§config: C::ConfigurationThe client configuration
scopes: Vec<String>Scopes to request for the session
grace_period: DurationThe grace period for the session timeout
The amount of time before the token expiration when the agent will refresh it.
max_expiration: Option<Duration>A maximum expiration time.
This can be used to limit the token timeout. If present, the token will be considered expired at the provided expiration or the configured maximum expiration, whatever is first.
audience: Option<String>§children: ChildrenChildren which will have access to the OAuth2Context.
login_options: Option<LoginOptions>Default LoginOptions that will be used unless more specific options have been requested.
logout_options: Option<LogoutOptions>Default LogoutOptions that will be used unless more specific options have been requested.
Trait Implementations§
Source§impl<C: Clone + Client> Clone for OAuth2Properties<C>where
C::Configuration: Clone,
impl<C: Clone + Client> Clone for OAuth2Properties<C>where
C::Configuration: Clone,
Source§fn clone(&self) -> OAuth2Properties<C>
fn clone(&self) -> OAuth2Properties<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug + Client> Debug for OAuth2Properties<C>where
C::Configuration: Debug,
impl<C: Debug + Client> Debug for OAuth2Properties<C>where
C::Configuration: Debug,
Source§impl<C: Client> PartialEq for OAuth2Properties<C>
impl<C: Client> PartialEq for OAuth2Properties<C>
Auto Trait Implementations§
impl<C> Freeze for OAuth2Properties<C>
impl<C> !RefUnwindSafe for OAuth2Properties<C>
impl<C> !Send for OAuth2Properties<C>
impl<C> !Sync for OAuth2Properties<C>
impl<C> Unpin for OAuth2Properties<C>
impl<C> !UnwindSafe for OAuth2Properties<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.