You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +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
@ -45,6 +45,7 @@ impl<S, E> Error<S, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct CatchHttpCodes<S, M> {
|
pub struct CatchHttpCodes<S, M> {
|
||||||
inner: S,
|
inner: S,
|
||||||
bounds: (Bound<StatusCode>, Bound<StatusCode>),
|
bounds: (Bound<StatusCode>, Bound<StatusCode>),
|
||||||
|
@ -105,13 +105,13 @@ impl CodeChallengeMethodExt for PkceCodeChallengeMethod {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Clone, Serialize, Deserialize)]
|
||||||
pub struct AuthorizationRequest {
|
pub struct AuthorizationRequest {
|
||||||
pub code_challenge_method: PkceCodeChallengeMethod,
|
pub code_challenge_method: PkceCodeChallengeMethod,
|
||||||
pub code_challenge: String,
|
pub code_challenge: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Clone, Serialize, Deserialize)]
|
||||||
pub struct TokenRequest {
|
pub struct TokenRequest {
|
||||||
pub code_challenge_verifier: String,
|
pub code_challenge_verifier: String,
|
||||||
}
|
}
|
||||||
|
@ -612,7 +612,7 @@ pub struct IntrospectionResponse {
|
|||||||
/// [Pushed Authorization Request Endpoint]: https://datatracker.ietf.org/doc/html/rfc9126
|
/// [Pushed Authorization Request Endpoint]: https://datatracker.ietf.org/doc/html/rfc9126
|
||||||
#[serde_as]
|
#[serde_as]
|
||||||
#[skip_serializing_none]
|
#[skip_serializing_none]
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct PushedAuthorizationResponse {
|
pub struct PushedAuthorizationResponse {
|
||||||
/// The `request_uri` to use for the request to the authorization endpoint.
|
/// The `request_uri` to use for the request to the authorization endpoint.
|
||||||
pub request_uri: String,
|
pub request_uri: String,
|
||||||
|
Reference in New Issue
Block a user