pub enum AuthConfig {
Bearer {
token: String,
},
Oidc {
discovery_url: String,
audience: String,
tenant_claim_name: String,
},
}Expand description
Configuration for one auth mode. Stored in solo_storage::SoloConfig
under the [auth] block.
Backward compatibility: when the [auth] block is absent from
solo.config.toml, the runtime falls through to the
--bearer-token-file CLI flag (v0.7.x behavior). Operators opt into
the v0.8.0 config-driven path by writing an [auth] block.
Variants§
Bearer
Single shared bearer token; one tenant per daemon.
Oidc
OIDC via any provider’s discovery URL (https://<host>/.well-known/openid-configuration).
audience matches the JWT aud claim. tenant_claim_name names
the custom JWT claim that carries the target tenant id (defaults
to solo_tenant).
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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 From<AuthSettings> for AuthConfig
impl From<AuthSettings> for AuthConfig
Source§fn from(s: AuthSettings) -> Self
fn from(s: AuthSettings) -> Self
Convert the on-disk config block (SoloConfig.auth) into the
transport-side AuthConfig. Same wire shape — the duplication
is intentional so solo-storage doesn’t depend on solo-api.
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
Source§fn eq(&self, other: &AuthConfig) -> bool
fn eq(&self, other: &AuthConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthConfig
impl Serialize for AuthConfig
impl Eq for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.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>
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>
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 more