initial jwt support

This commit is contained in:
Robin Appelman 2026-11-03 19:42:38 +01:00
commit 766a820f96
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
8 changed files with 1046 additions and 31 deletions

View file

@ -60,3 +60,19 @@ pub enum FetchError {
#[error(transparent)]
Hub(#[from] HubError),
}
#[derive(Debug, Error)]
pub enum JwtError {
#[error("No JWT secret configured")]
NoSecret,
#[error("Error loading JWT secret: {0}")]
DecodeKey(#[from] jsonwebtoken::errors::Error),
}
#[derive(Debug, Error)]
pub enum TriggerError {
#[error(transparent)]
Http(#[from] ureq::Error),
#[error(transparent)]
Jwt(#[from] JwtError),
}