pub enum AuthError {
Show 14 variants
MissingSecret,
UnsupportedCombination {
backend: String,
auth: String,
},
MissingRequiredMetadata(String),
WorkspaceMismatch,
StaleCredential,
RefreshRequired,
LeaseAbsent,
UserReauthRequired,
Expired,
RefreshFailed(String),
InteractiveLoginRequired,
HostOwnedUnavailable,
Io(String),
Other(String),
}Expand description
Top-level auth error surface.
Provider runtimes map their internal failures into these variants before
returning from resolve_binding. Callers inspect AuthError::kind for
stable wire classification.
Variants§
MissingSecret
Credential material was requested but none was available
(env lookup returned None, file missing, etc.).
UnsupportedCombination
Backend/auth combination is not allowed by the provider runtime.
MissingRequiredMetadata(String)
A required metadata field (workspace id, account id, etc.) was absent.
WorkspaceMismatch
Workspace/account identity did not match the binding constraints.
StaleCredential
Persisted credential material is stale relative to AuthMachine lease truth.
RefreshRequired
AuthMachine has admitted the credential only for refresh, not provider use.
LeaseAbsent
Credential material exists, but no AuthMachine lease currently owns it.
UserReauthRequired
AuthMachine requires an explicit user reauthorization flow.
Expired
Credential lease has expired.
RefreshFailed(String)
Refresh attempt failed (network, revoked token, etc.).
InteractiveLoginRequired
Interactive login is needed (OAuth, managed store not populated, platform default requiring browser flow, etc.).
Host-owned auth resolver is not available on this surface.
Io(String)
Low-level I/O or parsing failure during resolution.
Other(String)
Catch-all for provider-specific diagnostic messages that don’t map to another variant.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthError
impl<'de> Deserialize<'de> for AuthError
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 Error for AuthError
impl Error for AuthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl JsonSchema for AuthError
impl JsonSchema for AuthError
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl Eq for AuthError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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.