mauth-client
mauth-client
This crate allows users of the Hyper crate for making HTTP requests to sign those requests with the MAuth protocol, and verify the responses. Usage example:
Note: This crate and Rust support within Medidata is considered experimental. Do not release any code to Production or deploy in a Client-accessible environment without getting approval for the full stack used through the Architecture and Security groups.
let mauth_info = from_default_file.unwrap;
let https = new;
let client = builder.;
let uri: Uri = "https://www.example.com/".parse.unwrap;
let = build_body_with_digest;
let mut req = new;
*req.method_mut = GET;
*req.uri_mut = uri.clone;
mauth_info.sign_request;
match client.request.await