oauth 0.0.2

Universal OAuth 2.0 adapter for Rust web frameworks
Documentation
#![deny(unsafe_code)]
#![allow(clippy::module_inception)]

mod config;
pub mod error;
mod frameworks;
pub mod grants;
pub mod token_store;

pub use config::{OAuthConfig, OAuthConfigBuilder};
pub use error::{ConfigError, OAuthError, Result as OAuthResult, TokenStoreError};
pub use grants::{GrantType, TokenRequest, TokenResponse};
pub use token_store::{InMemoryTokenStore, TokenRecord, TokenStore};

#[cfg(feature = "axum")]
pub mod axum {
    //! Axum integration helpers re-exported at the crate root.
    pub use crate::frameworks::axum::*;
}

#[cfg(feature = "warp")]
pub mod warp {
    //! Warp integration helpers re-exported at the crate root.
    pub use crate::frameworks::warp::*;
}

#[cfg(feature = "actix")]
pub mod actix {
    //! Actix Web integration helpers re-exported at the crate root.
    pub use crate::frameworks::actix::*;
}

#[cfg(feature = "rocket")]
pub mod rocket {
    //! Rocket integration helpers re-exported at the crate root.
    pub use crate::frameworks::rocket::*;
}