pub enum McpAuthError {
MissingToken(String),
InvalidDat(String),
InsufficientScope(String),
VerificationFailed(String),
}Expand description
Errors that can occur during MCP authentication and authorization.
Variants§
MissingToken(String)
No DAT token was provided in the request.
InvalidDat(String)
The DAT token is malformed or has an invalid signature.
InsufficientScope(String)
The DAT does not grant the required scope.
VerificationFailed(String)
DAT verification failed (expired, wrong key, constraint violated, etc.).
Trait Implementations§
Source§impl Debug for McpAuthError
impl Debug for McpAuthError
Source§impl Display for McpAuthError
impl Display for McpAuthError
Source§impl Error for McpAuthError
impl Error for McpAuthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<IdprovaError> for McpAuthError
impl From<IdprovaError> for McpAuthError
Source§fn from(e: IdprovaError) -> Self
fn from(e: IdprovaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for McpAuthError
impl RefUnwindSafe for McpAuthError
impl Send for McpAuthError
impl Sync for McpAuthError
impl Unpin for McpAuthError
impl UnsafeUnpin for McpAuthError
impl UnwindSafe for McpAuthError
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