···130130 ///
131131 /// This error occurs when oauth_backend is set to "aip" but
132132 /// required AIP configuration values are missing.
133133- #[error("error-config-18 When oauth_backend is 'aip', AIP_HOSTNAME, AIP_CLIENT_ID, and AIP_CLIENT_SECRET must all be set")]
133133+ #[error(
134134+ "error-config-18 When oauth_backend is 'aip', AIP_HOSTNAME, AIP_CLIENT_ID, and AIP_CLIENT_SECRET must all be set"
135135+ )]
134136 AipConfigurationIncomplete,
135137136138 /// Error when oauth_backend has an invalid value.
···2525 SerializeFailed(serde_json::Error),
2626}
27272828-/// Represents errors that can occur during authentication middleware operations.
2929-///
3030-/// These errors typically happen in the authentication middleware layer when
3131-/// processing requests, including cryptographic operations and session validation.
3232-#[derive(Debug, Error)]
3333-pub(crate) enum AuthMiddlewareError {
3434- /// Error when content signing fails.
3535- ///
3636- /// This error occurs when the authentication middleware attempts to
3737- /// cryptographically sign content but the operation fails.
3838- #[error("error-authmiddleware-1 Unable to sign content: {0:?}")]
3939- SigningFailed(anyhow::Error),
4040-}
4141-4228#[derive(Debug, Error)]
4329pub(crate) enum MiddlewareAuthError {
4430 #[error("error-middleware-auth-1 Access Denied: {0}")]
···49355036 #[error("error-middleware-auth-3 Unhandled Auth Error: {0:?}")]
5137 Anyhow(#[from] anyhow::Error),
5252-5353- #[error(transparent)]
5454- AuthError(#[from] AuthMiddlewareError),
5538}
56395740impl IntoResponse for MiddlewareAuthError {
+3-1
src/http/errors/migrate_rsvp_error.rs
···1111 /// This error occurs when attempting to migrate an RSVP with a status
1212 /// that doesn't match one of the expected values ('going', 'interested',
1313 /// or 'notgoing').
1414- #[error("error-migrate-rsvp-1 Invalid RSVP status: {0}. Expected 'going', 'interested', or 'notgoing'.")]
1414+ #[error(
1515+ "error-migrate-rsvp-1 Invalid RSVP status: {0}. Expected 'going', 'interested', or 'notgoing'."
1616+ )]
1517 InvalidRsvpStatus(String),
16181719 /// Error when a user is not authorized to migrate an RSVP.
+1-1
src/http/errors/mod.rs
···2121pub(crate) use event_view_errors::EventViewError;
2222pub(crate) use import_error::ImportError;
2323pub(crate) use login_error::LoginError;
2424-pub(crate) use middleware_errors::{AuthMiddlewareError, WebSessionError};
2424+pub(crate) use middleware_errors::WebSessionError;
2525pub(crate) use migrate_event_error::MigrateEventError;
2626pub(crate) use migrate_rsvp_error::MigrateRsvpError;
2727pub(crate) use rsvp_error::RSVPError;