Skip to content

Commit d47455a

Browse files
Merge pull request #22 from mdsol/version-bumps
Version bumps
2 parents 5df1848 + bef1730 commit d47455a

File tree

8 files changed

+20
-15
lines changed

8 files changed

+20
-15
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "mauth-client"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["Mason Gup <mgup@mdsol.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
documentation = "https://docs.rs/mauth-client/"
77
license = "MIT"
88
description = "Sign requests and validate responses using the Medidata MAuth protocol"
@@ -15,7 +15,7 @@ categories = ["authentication", "web-programming"]
1515
[dependencies]
1616
reqwest = { version = "0.12", features = ["json"] }
1717
reqwest-middleware = "0.4"
18-
reqwest-tracing = { version = "0.5.5", optional = true }
18+
reqwest-tracing = { version = "0.5.6", optional = true }
1919
async-trait = ">= 0.1.83"
2020
url = "2"
2121
serde = { version = "1", features = ["derive"] }
@@ -41,3 +41,4 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
4141
axum-service = ["tower", "futures-core", "axum", "bytes", "tracing"]
4242
tracing-otel-26 = ["reqwest-tracing/opentelemetry_0_26"]
4343
tracing-otel-27 = ["reqwest-tracing/opentelemetry_0_27"]
44+
tracing-otel-28 = ["reqwest-tracing/opentelemetry_0_28"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ implements Axum's `OptionalFromRequestParts`, so you can more easily retrieve it
182182

183183
### OpenTelemetry Integration
184184

185-
There are also optional features `tracing-otel-26` and `tracing-otel-27` that pair with
186-
the `axum-service` feature to ensure that any outgoing requests for credentials that take
187-
place in the context of an incoming web request also include the proper OpenTelemetry span
188-
information in any requests to MAudit services. Note that it is critical to use the same
185+
There are also optional features `tracing-otel-26`, `tracing-otel-27`, and `tracing-otel-28`
186+
that pair with the `axum-service` feature to ensure that any outgoing requests for credentials
187+
that take place in the context of an incoming web request also include the proper OpenTelemetry
188+
span information in any requests to MAudit services. Note that it is critical to use the same
189189
version of OpenTelemetry crates as the rest of the project - if you do not, there will be 2
190190
or more instances of the OpenTelemetry global information, and requests may not be traced
191191
through properly.

src/axum_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use axum::{
66
response::IntoResponse,
77
};
88
use futures_core::future::BoxFuture;
9-
use http::{request::Parts, Response, StatusCode};
9+
use http::{Response, StatusCode, request::Parts};
1010
use std::convert::Infallible;
1111
use std::error::Error;
1212
use std::task::{Context, Poll};
@@ -15,8 +15,8 @@ use tracing::error;
1515

1616
use crate::validate_incoming::{MAuthValidationError, ValidatedRequestDetails};
1717
use crate::{
18-
config::{ConfigFileSection, ConfigReadError},
1918
MAuthInfo,
19+
config::{ConfigFileSection, ConfigReadError},
2020
};
2121

2222
/// This is a Tower Service which validates that incoming requests have a valid

src/config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{MAuthInfo, CLIENT};
1+
use crate::{CLIENT, MAuthInfo};
22
use mauth_core::signer::Signer;
33
use reqwest::Client;
44
use reqwest::Url;
@@ -62,7 +62,11 @@ impl MAuthInfo {
6262

6363
CLIENT.get_or_init(|| {
6464
let builder = ClientBuilder::new(Client::new()).with(mauth_info.clone());
65-
#[cfg(any(feature = "tracing-otel-26", feature = "tracing-otel-27"))]
65+
#[cfg(any(
66+
feature = "tracing-otel-26",
67+
feature = "tracing-otel-27",
68+
feature = "tracing-otel-28"
69+
))]
6670
let builder = builder.with(reqwest_tracing::TracingMiddleware::default());
6771
builder.build()
6872
});

src/protocol_test_suite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{config::ConfigFileSection, MAuthInfo};
1+
use crate::{MAuthInfo, config::ConfigFileSection};
22
use reqwest::{Method, Request};
33
use serde::Deserialize;
44
use tokio::fs;

src/reqwest_middleware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use http::Extensions;
22
use reqwest::{Request, Response};
33
use reqwest_middleware::{Middleware, Next, Result};
44

5-
use crate::{sign_outgoing::SigningError, MAuthInfo};
5+
use crate::{MAuthInfo, sign_outgoing::SigningError};
66

77
#[async_trait::async_trait]
88
impl Middleware for MAuthInfo {

src/sign_outgoing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::MAuthInfo;
22
use chrono::prelude::*;
3-
use reqwest::{header::HeaderValue, Request};
3+
use reqwest::{Request, header::HeaderValue};
44
use thiserror::Error;
55

66
impl MAuthInfo {

src/validate_incoming.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{MAuthInfo, CLIENT, PUBKEY_CACHE};
1+
use crate::{CLIENT, MAuthInfo, PUBKEY_CACHE};
22
use axum::extract::Request;
33
use bytes::Bytes;
44
use chrono::prelude::*;

0 commit comments

Comments
 (0)