pub struct OAuthSettings {
pub github_client_id: Option<String>,
pub github_client_secret: Option<String>,
pub github_url: Option<String>,
pub github_api_url: Option<String>,
pub google_client_id: Option<String>,
pub google_client_secret: Option<String>,
pub oidc_issuer: Option<String>,
pub oidc_client_id: Option<String>,
pub oidc_client_secret: Option<String>,
pub oidc_name: Option<String>,
}Expand description
Raw provider settings from flags and serve.env, before secrets are
resolved. Client secrets come only from the environment (never argv) or
the secrets store.
Fields§
§github_client_id: Option<String>§github_client_secret: Option<String>§github_url: Option<String>§github_api_url: Option<String>§google_client_id: Option<String>§google_client_secret: Option<String>§oidc_issuer: Option<String>§oidc_client_id: Option<String>§oidc_client_secret: Option<String>§oidc_name: Option<String>Implementations§
Source§impl OAuthSettings
impl OAuthSettings
Sourcepub fn secrets_from_env(self) -> Self
pub fn secrets_from_env(self) -> Self
The client secret variables, read from the environment.
Sourcepub fn providers(
&self,
lookup: &dyn Fn(&str) -> Option<SecretFn>,
) -> (Vec<ProviderConfig>, Vec<String>)
pub fn providers( &self, lookup: &dyn Fn(&str) -> Option<SecretFn>, ) -> (Vec<ProviderConfig>, Vec<String>)
Build the enabled providers. lookup(name) returns a reader when a
secret of that name exists in the default org. A provider with a
client id but no secret is left out, with a note saying why.
Trait Implementations§
Source§impl Clone for OAuthSettings
impl Clone for OAuthSettings
Source§impl Debug for OAuthSettings
impl Debug for OAuthSettings
Auto Trait Implementations§
impl Freeze for OAuthSettings
impl RefUnwindSafe for OAuthSettings
impl Send for OAuthSettings
impl Sync for OAuthSettings
impl Unpin for OAuthSettings
impl UnsafeUnpin for OAuthSettings
impl UnwindSafe for OAuthSettings
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