1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +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

@ -159,6 +159,7 @@ impl TryInto<BrowserSession<PostgresqlBackend>> for SessionLookup {
}
}
#[tracing::instrument(skip_all, fields(session.id = id))]
pub async fn lookup_active_session(
executor: impl PgExecutor<'_>,
id: i64,
@ -191,6 +192,7 @@ pub async fn lookup_active_session(
Ok(res)
}
#[tracing::instrument(skip_all, fields(user.id = user.data))]
pub async fn start_session(
executor: impl PgExecutor<'_>,
user: User<PostgresqlBackend>,