pub type Result<T> = core::result::Result<T, FederationError>;
#[derive(Debug, thiserror::Error)]
pub enum FederatedSessionBindingError {
#[error("{0}")]
InvalidRequest(String),
#[error("{0}")]
Internal(String),
}
#[derive(Debug, thiserror::Error)]
pub enum FederationError {
#[error("{0}")]
Authorization(String),
#[error("{0}")]
CodeExchange(String),
#[error("{0}")]
TokenVerification(String),
#[error("{0}")]
Logout(String),
#[error("no policies are available for this OIDC token")]
NoAuthorizationContext,
#[error(transparent)]
Binding(#[from] FederatedSessionBindingError),
}