aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/bin
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-31 17:11:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-31 17:11:32 -0800
commitf19288ca809d87a286336e04f8e6b46ddbef300c (patch)
tree771bc5d36fce6a4f9781b6b37cf5e618059108ba /rust/src/bin
parentf198a9870130484b0ba36b552c7c37ffa5d4d6ca (diff)
downloadfatcat-f19288ca809d87a286336e04f8e6b46ddbef300c.tar.gz
fatcat-f19288ca809d87a286336e04f8e6b46ddbef300c.zip
add auth middleware back in
I was hoping I didn't need this middleware, but I actually do, or the swagger generated code returns unauthenticated. The middleware doesn't actually do much validation, just extracts the (string) token and does nothing with it. Acutal verification happens in user code using AuthData struct.
Diffstat (limited to 'rust/src/bin')
-rw-r--r--rust/src/bin/fatcatd.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs
index 7d77d90b..a4f20ddb 100644
--- a/rust/src/bin/fatcatd.rs
+++ b/rust/src/bin/fatcatd.rs
@@ -77,6 +77,7 @@ fn main() {
// authentication
chain.link_before(fatcat_api_spec::server::ExtractAuthData);
+ chain.link_before(fatcat::auth::MacaroonAuthMiddleware::new());
chain.link_after(fatcat::XClacksOverheadMiddleware);