You've already forked authentication-service
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:
committed by
Quentin Gliech
parent
0829ab7e27
commit
99f2ca3d57
@ -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,
|
||||
}
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user