pub struct OAuth2Configuration {
pub enabled: Option<bool>,
pub discovery_enabled: Option<bool>,
pub discovery_url: Option<String>,
pub issuer_uri: Option<String>,
pub jwks_uri: Option<String>,
pub token_uri: Option<String>,
pub authorization_uri: Option<String>,
pub introspection_uri: Option<String>,
pub user_info_uri: Option<String>,
pub end_session_uri: Option<String>,
pub client: Option<OAuth2Client>,
pub jwks: Option<JwkSet>,
}Expand description
OAuth2 configuration.
Controls authentication and authorization settings.
Fields§
§enabled: Option<bool>Enables or disables OAuth2 integration.
discovery_enabled: Option<bool>Enables or disables automatic OAuth2 discovery.
discovery_url: Option<String>OAuth2 discovery URL for automatic configuration.
issuer_uri: Option<String>OAuth2 configuration issuer URL.
jwks_uri: Option<String>OAuth2 configuration JSON Web Key Set URI.
token_uri: Option<String>OAuth2 configuration token endpoint URI.
OAuth2 configuration authorization endpoint URI.
introspection_uri: Option<String>OAuth2 configuration introspection endpoint URI.
user_info_uri: Option<String>OAuth2 configuration user info endpoint URI.
end_session_uri: Option<String>OAuth2 configuration end session endpoint URI.
client: Option<OAuth2Client>OAuth2 client configuration.
jwks: Option<JwkSet>OAuth2 JSON Web Key Set. This list of keys is used to validate tokens.
Trait Implementations§
Source§impl Clone for OAuth2Configuration
impl Clone for OAuth2Configuration
Source§fn clone(&self) -> OAuth2Configuration
fn clone(&self) -> OAuth2Configuration
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 Debug for OAuth2Configuration
impl Debug for OAuth2Configuration
Source§impl<'de> Deserialize<'de> for OAuth2Configuration
impl<'de> Deserialize<'de> for OAuth2Configuration
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
Auto Trait Implementations§
impl Freeze for OAuth2Configuration
impl RefUnwindSafe for OAuth2Configuration
impl Send for OAuth2Configuration
impl Sync for OAuth2Configuration
impl Unpin for OAuth2Configuration
impl UnsafeUnpin for OAuth2Configuration
impl UnwindSafe for OAuth2Configuration
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request