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

Move public base URL from oauth2 config to http config

This commit is contained in:
Quentin Gliech
2022-02-01 09:34:17 +01:00
parent f96c5b0cec
commit c0e5b66ea4
15 changed files with 166 additions and 74 deletions

View File

@@ -47,12 +47,19 @@ pub fn root(
config: &RootConfig,
) -> BoxedFilter<(impl Reply,)> {
let health = health(pool);
let oauth2 = oauth2(pool, templates, key_store, &config.oauth2, &config.cookies);
let oauth2 = oauth2(
pool,
templates,
key_store,
&config.oauth2,
&config.http,
&config.cookies,
);
let views = views(
pool,
templates,
mailer,
&config.oauth2,
&config.http,
&config.csrf,
&config.cookies,
);