1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Use axum-extra's PrivateCookieJar

This commit is contained in:
Quentin Gliech
2022-04-29 14:56:06 +02:00
parent 9681948aa8
commit 3a83c5b3bf
18 changed files with 50 additions and 124 deletions

View File

@@ -16,13 +16,14 @@ use axum::{
extract::{Extension, Form, Query},
response::{Html, IntoResponse, Redirect, Response},
};
use axum_extra::extract::PrivateCookieJar;
use hyper::{
http::uri::{Parts, PathAndQuery},
Uri,
};
use mas_axum_utils::{
csrf::{CsrfExt, ProtectedForm},
fancy_error, FancyError, PrivateCookieJar, SessionInfoExt,
fancy_error, FancyError, SessionInfoExt,
};
use mas_config::Encrypter;
use mas_storage::user::authenticate_session;