diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-31 17:11:30 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-31 17:11:32 -0800 |
commit | f19288ca809d87a286336e04f8e6b46ddbef300c (patch) | |
tree | 771bc5d36fce6a4f9781b6b37cf5e618059108ba /rust/src/bin/fatcatd.rs | |
parent | f198a9870130484b0ba36b552c7c37ffa5d4d6ca (diff) | |
download | fatcat-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/fatcatd.rs')
-rw-r--r-- | rust/src/bin/fatcatd.rs | 1 |
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); |