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

New JWT/JOSE crate

Still WIP, needs to handle time related claims
This commit is contained in:
Quentin Gliech
2022-01-04 22:28:00 +01:00
parent 694a0bff03
commit f933ace007
20 changed files with 1942 additions and 726 deletions

View File

@@ -22,7 +22,10 @@
#![allow(clippy::implicit_hasher)]
#![allow(clippy::unused_async)] // Some warp filters need that
use std::sync::Arc;
use mas_config::RootConfig;
use mas_jose::StaticKeystore;
use mas_static_files::filter as static_files;
use mas_templates::Templates;
use sqlx::PgPool;
@@ -38,10 +41,11 @@ use self::{health::filter as health, oauth2::filter as oauth2, views::filter as
pub fn root(
pool: &PgPool,
templates: &Templates,
key_store: &Arc<StaticKeystore>,
config: &RootConfig,
) -> BoxedFilter<(impl Reply,)> {
let health = health(pool);
let oauth2 = oauth2(pool, templates, &config.oauth2, &config.cookies);
let oauth2 = oauth2(pool, templates, key_store, &config.oauth2, &config.cookies);
let views = views(
pool,
templates,