mauth-client
mauth-client
This crate allows users of the Reqwest 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 client = new;
let uri: Url = "https://www.example.com/".parse.unwrap;
let = build_body_with_digest;
let mut req = new;
*req.body_mut = Some;
mauth_info.sign_request;
match client.execute.await
The optional axum-service
feature provides for a Tower Layer and Service that will
authenticate incoming requests via MAuth V2 or V1 and provide to the lower layers a
validated app_uuid from the request via the ValidatedRequestDetails struct.
License: MIT