pub struct UpstreamOauthConfig {
pub mode: UpstreamOauthMode,
pub registration: UpstreamOauthRegistration,
pub scopes: Option<Vec<String>>,
pub prefer_client_metadata_document: Option<bool>,
}Expand description
Outbound OAuth configuration for a single upstream.
Fields§
§mode: UpstreamOauthMode§registration: UpstreamOauthRegistration§scopes: Option<Vec<String>>§prefer_client_metadata_document: Option<bool>When true, always use the Client ID Metadata Document (CIMD)
strategy regardless of whether the upstream advertises a
registration_endpoint. When false, always use dynamic
registration (RFC 7591) when the upstream advertises a
registration_endpoint. None leaves the choice to the caller
wiring up UpstreamOauthRegistration::Dynamic.
Trait Implementations§
Source§impl Clone for UpstreamOauthConfig
impl Clone for UpstreamOauthConfig
Source§fn clone(&self) -> UpstreamOauthConfig
fn clone(&self) -> UpstreamOauthConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpstreamOauthConfig
impl Debug for UpstreamOauthConfig
Source§impl<'de> Deserialize<'de> for UpstreamOauthConfig
impl<'de> Deserialize<'de> for UpstreamOauthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpstreamOauthConfig
impl PartialEq for UpstreamOauthConfig
Source§fn eq(&self, other: &UpstreamOauthConfig) -> bool
fn eq(&self, other: &UpstreamOauthConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpstreamOauthConfig
impl Serialize for UpstreamOauthConfig
impl Eq for UpstreamOauthConfig
impl StructuralPartialEq for UpstreamOauthConfig
Auto Trait Implementations§
impl Freeze for UpstreamOauthConfig
impl RefUnwindSafe for UpstreamOauthConfig
impl Send for UpstreamOauthConfig
impl Sync for UpstreamOauthConfig
impl Unpin for UpstreamOauthConfig
impl UnsafeUnpin for UpstreamOauthConfig
impl UnwindSafe for UpstreamOauthConfig
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more