You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Dedicated HTTP server/client crate
Also have better names for the HTTP routes
This commit is contained in:
@@ -20,7 +20,7 @@ use mas_storage::oauth2::{
|
||||
};
|
||||
use mas_warp_utils::{
|
||||
errors::WrapError,
|
||||
filters::{client::client_authentication, database::connection, url_builder::UrlBuilder},
|
||||
filters::{self, client::client_authentication, database::connection, url_builder::UrlBuilder},
|
||||
};
|
||||
use oauth2_types::requests::{IntrospectionRequest, IntrospectionResponse};
|
||||
use sqlx::{pool::PoolConnection, PgPool, Postgres};
|
||||
@@ -37,6 +37,7 @@ pub fn filter(
|
||||
.to_string();
|
||||
|
||||
warp::path!("oauth2" / "introspect")
|
||||
.and(filters::trace::name("POST /oauth2/introspect"))
|
||||
.and(
|
||||
warp::post()
|
||||
.and(connection(pool))
|
||||
|
||||
Reference in New Issue
Block a user