pub enum AuthChoice {
None,
Native(AuthKind),
}Expand description
The user’s auth decision for one install.
Replaces the (Option<AuthKind>, bool) pair that previously travelled
through the planner, where enable_auth = false with a Some kind was
representable but meaningless. Frontends resolve “–auth on a service
with no native kinds” before constructing this (error, or a no-op note
for the OIDC provider itself), so a choice always round-trips through
metadata.toml as Option<AuthKind>.
Variants§
None
No auth integration.
Native(AuthKind)
Auth with the service’s native OIDC integration: OIDC env vars are templated and a client is registered with the provider.
Implementations§
Source§impl AuthChoice
impl AuthChoice
Sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
True when the user asked for auth. Drives the auth fabric: network joins, the auth bridge, the no-native-OIDC validation.
Sourcepub fn native_kind(&self) -> Option<&AuthKind>
pub fn native_kind(&self) -> Option<&AuthKind>
The native OIDC kind, when the service has one. Drives OIDC env templating and client registration.
Trait Implementations§
Source§impl Clone for AuthChoice
impl Clone for AuthChoice
Source§fn clone(&self) -> AuthChoice
fn clone(&self) -> AuthChoice
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 AuthChoice
impl Debug for AuthChoice
impl Eq for AuthChoice
Source§impl PartialEq for AuthChoice
impl PartialEq for AuthChoice
Source§fn eq(&self, other: &AuthChoice) -> bool
fn eq(&self, other: &AuthChoice) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthChoice
Auto Trait Implementations§
impl Freeze for AuthChoice
impl RefUnwindSafe for AuthChoice
impl Send for AuthChoice
impl Sync for AuthChoice
impl Unpin for AuthChoice
impl UnsafeUnpin for AuthChoice
impl UnwindSafe for AuthChoice
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.