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

graphql: Always make the associated SSO login available in compatibility sessions

This commit is contained in:
Quentin Gliech
2023-08-29 15:52:56 +02:00
parent ba98b7c448
commit 1849b86a7d
7 changed files with 180 additions and 19 deletions

View File

@@ -66,8 +66,7 @@ impl EndCompatSessionPayload {
/// Returns the ended session.
async fn compat_session(&self) -> Option<CompatSession> {
match self {
// XXX: the SSO login is not returned here.
Self::Ended(session) => Some(CompatSession(session.clone(), None)),
Self::Ended(session) => Some(CompatSession::new(session.clone())),
Self::NotFound => None,
}
}