1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-28 11:02:02 +03:00

Derive Clone for http requests structs

So they don't prevent a Service from implementing Clone.
This commit is contained in:
Kévin Commaille
2022-10-17 11:30:03 +02:00
committed by Quentin Gliech
parent 0829ab7e27
commit 99f2ca3d57
3 changed files with 4 additions and 3 deletions

View File

@ -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,
}

View File

@ -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,