pub struct ConfigOAuth {Show 14 fields
pub oauth_provider_url: Option<String>,
pub oauth_client_id: Option<String>,
pub oauth_client_secret: Option<String>,
pub oauth_db_dsn: Option<String>,
pub oauth_redirect_url: Option<String>,
pub oauth_login_url: Option<String>,
pub oauth_consent_url: Option<String>,
pub oauth_response_type: Option<String>,
pub oauth_scope: Vec<String>,
pub oauth_admin_url: Option<String>,
pub oauth_backend_url: Option<String>,
pub frontend_login_url: Option<String>,
pub frontend_login_error_url: Option<String>,
pub oauth_grant_access_token_audience: Vec<String>,
}Fields§
§oauth_provider_url: Option<String>§oauth_client_id: Option<String>§oauth_client_secret: Option<String>§oauth_db_dsn: Option<String>§oauth_redirect_url: Option<String>§oauth_login_url: Option<String>§oauth_consent_url: Option<String>§oauth_response_type: Option<String>§oauth_scope: Vec<String>§oauth_admin_url: Option<String>§oauth_backend_url: Option<String>§frontend_login_url: Option<String>§frontend_login_error_url: Option<String>§oauth_grant_access_token_audience: Vec<String>Implementations§
Source§impl ConfigOAuth
impl ConfigOAuth
Sourcepub fn oauth_provider_url(&self) -> &str
pub fn oauth_provider_url(&self) -> &str
Returns the value of oauth_provider_url, or the default value if oauth_provider_url is unset.
Sourcepub fn oauth_client_id(&self) -> &str
pub fn oauth_client_id(&self) -> &str
Returns the value of oauth_client_id, or the default value if oauth_client_id is unset.
Sourcepub fn oauth_client_secret(&self) -> &str
pub fn oauth_client_secret(&self) -> &str
Returns the value of oauth_client_secret, or the default value if oauth_client_secret is unset.
Sourcepub fn oauth_db_dsn(&self) -> &str
pub fn oauth_db_dsn(&self) -> &str
Returns the value of oauth_db_dsn, or the default value if oauth_db_dsn is unset.
Sourcepub fn oauth_redirect_url(&self) -> &str
pub fn oauth_redirect_url(&self) -> &str
Returns the value of oauth_redirect_url, or the default value if oauth_redirect_url is unset.
Sourcepub fn oauth_login_url(&self) -> &str
pub fn oauth_login_url(&self) -> &str
Returns the value of oauth_login_url, or the default value if oauth_login_url is unset.
Sourcepub fn oauth_consent_url(&self) -> &str
pub fn oauth_consent_url(&self) -> &str
Returns the value of oauth_consent_url, or the default value if oauth_consent_url is unset.
Sourcepub fn oauth_response_type(&self) -> &str
pub fn oauth_response_type(&self) -> &str
Returns the value of oauth_response_type, or the default value if oauth_response_type is unset.
Sourcepub fn oauth_admin_url(&self) -> &str
pub fn oauth_admin_url(&self) -> &str
Returns the value of oauth_admin_url, or the default value if oauth_admin_url is unset.
Sourcepub fn oauth_backend_url(&self) -> &str
pub fn oauth_backend_url(&self) -> &str
Returns the value of oauth_backend_url, or the default value if oauth_backend_url is unset.
Sourcepub fn frontend_login_url(&self) -> &str
pub fn frontend_login_url(&self) -> &str
Returns the value of frontend_login_url, or the default value if frontend_login_url is unset.
Sourcepub fn frontend_login_error_url(&self) -> &str
pub fn frontend_login_error_url(&self) -> &str
Returns the value of frontend_login_error_url, or the default value if frontend_login_error_url is unset.
Trait Implementations§
Source§impl Clone for ConfigOAuth
impl Clone for ConfigOAuth
Source§fn clone(&self) -> ConfigOAuth
fn clone(&self) -> ConfigOAuth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigOAuth
impl Debug for ConfigOAuth
Source§impl Default for ConfigOAuth
impl Default for ConfigOAuth
Source§impl<'de> Deserialize<'de> for ConfigOAuth
impl<'de> Deserialize<'de> for ConfigOAuth
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>,
Source§impl Message for ConfigOAuth
impl Message for ConfigOAuth
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ConfigOAuth
impl PartialEq for ConfigOAuth
Source§impl Serialize for ConfigOAuth
impl Serialize for ConfigOAuth
impl StructuralPartialEq for ConfigOAuth
Auto Trait Implementations§
impl Freeze for ConfigOAuth
impl RefUnwindSafe for ConfigOAuth
impl Send for ConfigOAuth
impl Sync for ConfigOAuth
impl Unpin for ConfigOAuth
impl UnwindSafe for ConfigOAuth
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request