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
Embed the default policy in the binary
This commit is contained in:
@@ -118,7 +118,7 @@ pub(crate) async fn post(
|
||||
return Err(RouteError::InvalidClientMetadata);
|
||||
}
|
||||
|
||||
let mut policy = policy_factory.instanciate().await?;
|
||||
let mut policy = policy_factory.instantiate().await?;
|
||||
let allowed = policy.evaluate_client_registration(&body).await?;
|
||||
if !allowed {
|
||||
return Err(RouteError::PolicyDenied);
|
||||
|
||||
Reference in New Issue
Block a user