-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes to allow for endpoints with no mutations
- Loading branch information
Showing
8 changed files
with
103 additions
and
69 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//use mauth_client::*; | ||
|
||
// pub struct Authentication { | ||
// mauth_info: mauth_client::MAuthInfo | ||
// } | ||
|
||
// impl Authentication { | ||
// pub fn new() -> Self { | ||
// Authentication { | ||
// mauth_info: MAuthInfo::from_default_file().expect("Mauth file missing") | ||
// } | ||
// } | ||
// pub fn authenticate(&self, mut requ: &mut hyper::Request<hyper::Body>) { | ||
// // on empty body we digest "" TODO: Support request bodies | ||
// let (_, body_digest) = MAuthInfo::build_body_with_digest("".to_string()); | ||
// self.mauth_info.sign_request_v2(&mut requ, &body_digest); | ||
// self.mauth_info.sign_request_v1(&mut requ, &body_digest); | ||
// } | ||
// } | ||
|
||
pub struct Authentication {} | ||
|
||
impl Authentication { | ||
pub fn new() -> Self { | ||
Authentication {} | ||
} | ||
pub fn authenticate(&self, mut _requ: &mut hyper::Request<hyper::Body>) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.