aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth-service/src/lib.rs
blob: 308ce0fe9d531daf41eff8b10303b172ef531eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod client;
mod service;
pub use service::*;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum AuthServiceError {
    #[error("invalid url provided")]
    InvalidUrl(#[from] url::ParseError),
    #[error("the data for key `{0}` is not available")]
    Redaction(String),
    #[error("invalid header (expected {expected:?}, found {found:?})")]
    InvalidHeader { expected: String, found: String },
    #[error("unknown data store error")]
    Unknown,
}