1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00
conduit/src/service/sso/data.rs
2024-07-15 06:09:34 +02:00

9 lines
273 B
Rust

use ruma::{OwnedUserId, UserId};
use crate::Result;
pub trait Data: Send + Sync {
fn save_subject(&self, provider: &str, user_id: &UserId, subject: &str) -> Result<()>;
fn user_from_subject(&self, provider: &str, subject: &str) -> Result<Option<OwnedUserId>>;
}