pub struct AuthClientConfig {
pub pkce: Option<PkceClientConfig>,
pub social: Option<SocialAuthConfig>,
pub local: Option<LocalAuthConfig>,
}Expand description
OAuth-client configuration compiled from the [auth] client groups.
Two independent groups, each optional (at least one is present — the CLI
refuses to compile an empty group set): the PKCE server-side login client
(#621, [auth]’s discovery_url/client_id/client_secret_env/
server_redirect_uri quadruple, lowered into pkce) and the
social-login providers (#368, [auth.social.*], lowered into
social). Client secrets are never carried here — each
group names the environment variable the runtime reads its secret from.
Fields§
§pkce: Option<PkceClientConfig>PKCE OAuth client for server-side login (/auth/start, /auth/callback).
Social-login provider registry (/auth/v1/authorize, /auth/v1/callback).
local: Option<LocalAuthConfig>First-party auth methods this server operates itself ([auth.local]).
Trait Implementations§
Source§impl Clone for AuthClientConfig
impl Clone for AuthClientConfig
Source§impl Debug for AuthClientConfig
impl Debug for AuthClientConfig
Source§impl<'de> Deserialize<'de> for AuthClientConfig
impl<'de> Deserialize<'de> for AuthClientConfig
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
impl Eq for AuthClientConfig
Source§impl PartialEq for AuthClientConfig
impl PartialEq for AuthClientConfig
Source§impl Serialize for AuthClientConfig
impl Serialize for AuthClientConfig
impl StructuralPartialEq for AuthClientConfig
Auto Trait Implementations§
impl Freeze for AuthClientConfig
impl RefUnwindSafe for AuthClientConfig
impl Send for AuthClientConfig
impl Sync for AuthClientConfig
impl Unpin for AuthClientConfig
impl UnsafeUnpin for AuthClientConfig
impl UnwindSafe for AuthClientConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.