diff --git a/crates/http/src/layers/catch_http_codes.rs b/crates/http/src/layers/catch_http_codes.rs index 22bed60f..6618be79 100644 --- a/crates/http/src/layers/catch_http_codes.rs +++ b/crates/http/src/layers/catch_http_codes.rs @@ -45,6 +45,7 @@ impl Error { } } +#[derive(Clone)] pub struct CatchHttpCodes { inner: S, bounds: (Bound, Bound), diff --git a/crates/oauth2-types/src/pkce.rs b/crates/oauth2-types/src/pkce.rs index ccd47c52..c677fdde 100644 --- a/crates/oauth2-types/src/pkce.rs +++ b/crates/oauth2-types/src/pkce.rs @@ -105,13 +105,13 @@ impl CodeChallengeMethodExt for PkceCodeChallengeMethod { } } -#[derive(Serialize, Deserialize)] +#[derive(Clone, Serialize, Deserialize)] pub struct AuthorizationRequest { pub code_challenge_method: PkceCodeChallengeMethod, pub code_challenge: String, } -#[derive(Serialize, Deserialize)] +#[derive(Clone, Serialize, Deserialize)] pub struct TokenRequest { pub code_challenge_verifier: String, } diff --git a/crates/oauth2-types/src/requests.rs b/crates/oauth2-types/src/requests.rs index b4145247..a44a4168 100644 --- a/crates/oauth2-types/src/requests.rs +++ b/crates/oauth2-types/src/requests.rs @@ -612,7 +612,7 @@ pub struct IntrospectionResponse { /// [Pushed Authorization Request Endpoint]: https://datatracker.ietf.org/doc/html/rfc9126 #[serde_as] #[skip_serializing_none] -#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] +#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] pub struct PushedAuthorizationResponse { /// The `request_uri` to use for the request to the authorization endpoint. pub request_uri: String,