diff --git a/src/main.rs b/src/main.rs index a6ca2a4..48ce23c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,15 +6,11 @@ extern crate ldap3; extern crate tokio; #[macro_use] extern crate log; -use log::Level; -#[macro_use] extern crate serde_derive; use std::env; -use std::io; use std::fs; -use std::fs::File; use std::path::Path; use std::str::{ FromStr, @@ -28,13 +24,8 @@ use hyper::header::{AUTHORIZATION}; use hyper_router::{Route, RouterBuilder, RouterService}; use base64::decode; -use ring::signature::RsaKeyPair; use biscuit::{ - ClaimsSet, Empty, - JWT, - RegisteredClaims, - SingleOrMultiple, }; use biscuit::jwa::{ SignatureAlgorithm, @@ -47,14 +38,8 @@ use biscuit::jwk::{ JWK, JWKSet, }; -use biscuit::jws::{ - Secret, - RegisteredHeader, -}; use num::BigUint; -use openssl::bn::BigNum; use openssl::rsa::Rsa; -use openssl::rsa::RsaPrivateKeyBuilder; use ldap3::{ LdapConn, Scope, SearchEntry }; @@ -210,10 +195,6 @@ fn get_keys(_req: Request
) -> Response { let jwks: Vec