summaryrefslogtreecommitdiffstats
path: root/fatcat-openapi/src/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat-openapi/src/context.rs')
-rw-r--r--fatcat-openapi/src/context.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat-openapi/src/context.rs b/fatcat-openapi/src/context.rs
index d782855..33702b8 100644
--- a/fatcat-openapi/src/context.rs
+++ b/fatcat-openapi/src/context.rs
@@ -102,9 +102,9 @@ where
{
use std::ops::Deref;
- use swagger::auth::Basic;
- if let Some(basic) = swagger::auth::from_headers::<Basic>(&headers) {
- let auth_data = AuthData::Basic(basic);
+ use swagger::auth::Bearer;
+ if let Some(bearer) = swagger::auth::from_headers::<Bearer>(&headers) {
+ let auth_data = AuthData::Bearer(bearer);
let context = context.push(Some(auth_data));
let context = context.push(None::<Authorization>);