aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 65d639b..51b2e6a 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -90,7 +90,7 @@ async fn authorize(
90 let decoded = decode::<Claims>( 90 let decoded = decode::<Claims>(
91 &jwt, 91 &jwt,
92 // TODO: what key are we using here? pass db/pw store here to get the claimant's public key <10-04-21, yigit> // 92 // TODO: what key are we using here? pass db/pw store here to get the claimant's public key <10-04-21, yigit> //
93 &DecodingKey::from_rsa_pem(PUBLIC_KEY_PEM.as_bytes()).unwrap(), 93 &DecodingKey::from_rsa_pem(db.users.read().get(&source).unwrap().pubkey.as_bytes()).unwrap(),
94 &Validation::new(Algorithm::HS512), 94 &Validation::new(Algorithm::HS512),
95 ) 95 )
96 .map_err(|_| reject::custom(Error::JWTTokenError)) 96 .map_err(|_| reject::custom(Error::JWTTokenError))