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

Move secrets and oauth2 clients config

This commit is contained in:
Quentin Gliech
2022-02-01 09:34:18 +01:00
parent c0e5b66ea4
commit 7e24cd0948
30 changed files with 462 additions and 454 deletions

View File

@@ -24,7 +24,7 @@
use std::sync::Arc;
use mas_config::RootConfig;
use mas_config::{Encrypter, RootConfig};
use mas_email::Mailer;
use mas_jose::StaticKeystore;
use mas_static_files::filter as static_files;
@@ -43,6 +43,7 @@ pub fn root(
pool: &PgPool,
templates: &Templates,
key_store: &Arc<StaticKeystore>,
encrypter: &Encrypter,
mailer: &Mailer,
config: &RootConfig,
) -> BoxedFilter<(impl Reply,)> {
@@ -51,17 +52,17 @@ pub fn root(
pool,
templates,
key_store,
&config.oauth2,
encrypter,
&config.clients,
&config.http,
&config.cookies,
);
let views = views(
pool,
templates,
mailer,
encrypter,
&config.http,
&config.csrf,
&config.cookies,
);
let static_files = static_files(config.http.web_root.clone());