You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
policies: split the email & password policies and add jsonschema validation of the input
This commit is contained in:
@@ -117,14 +117,15 @@ impl TestState {
|
||||
let file =
|
||||
tokio::fs::File::open(workspace_root.join("policies").join("policy.wasm")).await?;
|
||||
|
||||
let policy_factory = PolicyFactory::load(
|
||||
file,
|
||||
serde_json::json!({}),
|
||||
"register/violation".to_owned(),
|
||||
"client_registration/violation".to_owned(),
|
||||
"authorization_grant/violation".to_owned(),
|
||||
)
|
||||
.await?;
|
||||
let entrypoints = mas_policy::Entrypoints {
|
||||
register: "register/violation".to_owned(),
|
||||
client_registration: "client_registration/violation".to_owned(),
|
||||
authorization_grant: "authorization_grant/violation".to_owned(),
|
||||
email: "email/violation".to_owned(),
|
||||
password: "password/violation".to_owned(),
|
||||
};
|
||||
|
||||
let policy_factory = PolicyFactory::load(file, serde_json::json!({}), entrypoints).await?;
|
||||
|
||||
let homeserver_connection = MockHomeserverConnection::new("example.com");
|
||||
|
||||
|
Reference in New Issue
Block a user