1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Fully document the mas_core::filters module

This commit is contained in:
Quentin Gliech
2021-09-23 20:53:51 +02:00
parent 2cfaff737e
commit 3bf86c4b21
10 changed files with 62 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ use crate::{
config::{OAuth2ClientConfig, OAuth2Config},
errors::WrapError,
filters::{
client::{with_client_auth, ClientAuthentication},
client::{client_authentication, ClientAuthentication},
database::connection,
},
storage::oauth2::{access_token::lookup_access_token, refresh_token::lookup_refresh_token},
@@ -36,7 +36,7 @@ pub fn filter(
warp::path!("oauth2" / "introspect")
.and(warp::post())
.and(connection(pool))
.and(with_client_auth(oauth2_config))
.and(client_authentication(oauth2_config))
.and_then(introspect)
.recover(recover)
}