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

Better Tower layers

This commit is contained in:
Quentin Gliech
2022-08-12 14:54:43 +02:00
parent 244aa1d0ac
commit 398379e21b
8 changed files with 311 additions and 58 deletions

View File

@@ -184,7 +184,8 @@ fn jwks_key_store(jwks: &JwksOrJwksUri) -> Either<StaticJwksStore, DynamicJwksSt
// TODO: get the client from somewhere else?
let exporter = mas_http::client("fetch-jwks")
.json::<JsonWebKeySet>()
.response_body_to_bytes()
.json_response::<JsonWebKeySet>()
.map_request(move |_: ()| {
http::Request::builder()
.method("GET")