dpop/lib.rs
1//! This crate provides rust implementation of [DPoP](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-dpop-14).
2//!
3
4#![warn(missing_docs)]
5#![deny(unused_qualifications)]
6
7#[cfg(feature = "http-header")]
8pub mod http_header;
9
10pub mod proof;
11
12// #[cfg(test)]
13// #[allow(missing_docs)]
14// mod test_files {
15// use picky::{key::PrivateKey, pem::Pem};
16
17// pub const RSA_2048_PK_1: &str = include_str!("../test_assets/private_keys/rsa-2048-pk_1.key");
18// pub const RSA_2048_PK_7: &str = include_str!("../test_assets/private_keys/rsa-2048-pk_7.key");
19// pub const RSA_4096_PK_3: &str = include_str!("../test_assets/private_keys/rsa-4096-pk_3.key");
20
21// pub fn get_private_key_1() -> PrivateKey {
22// let pk_pem = RSA_2048_PK_1.parse::<Pem>().unwrap();
23// PrivateKey::from_pkcs8(pk_pem.data()).unwrap()
24// }
25// }