mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 04:00:49 +01:00
initial jwt support
This commit is contained in:
parent
ac55958f8c
commit
766a820f96
8 changed files with 1046 additions and 31 deletions
16
src/error.rs
16
src/error.rs
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue