Can enforce 2FA for specific clients

This commit is contained in:
2024-03-27 20:59:29 +01:00
parent 64b1bd4de9
commit cf0e7e1e68
5 changed files with 20 additions and 6 deletions

View File

@@ -28,6 +28,10 @@ pub struct Client {
/// Specify whether a client is granted to all users
#[serde(default = "bool::default")]
pub granted_to_all_users: bool,
/// Specify whether recent Second Factor Authentication is required to access this client
#[serde(default = "bool::default")]
pub enforce_2fa_auth: bool,
}
impl PartialEq for Client {