You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Add a admin flag to the compatibility session
Also adds a CLI tool to issue a compatibility token.
This commit is contained in:
@ -80,6 +80,12 @@ impl TryFrom<String> for Device {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Device {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(&self.id)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use oauth2_types::scope::OPENID;
|
||||
|
@ -68,6 +68,7 @@ pub struct CompatSession {
|
||||
pub user_id: Ulid,
|
||||
pub device: Device,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub is_synapse_admin: bool,
|
||||
}
|
||||
|
||||
impl std::ops::Deref for CompatSession {
|
||||
|
Reference in New Issue
Block a user