fix: add Keycloak and Oidc variants to AuthProvider enum
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m9s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 13s
CI Pipeline / Build .deb & Release (push) Has been skipped
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m9s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 13s
CI Pipeline / Build .deb & Release (push) Has been skipped
This commit is contained in:
@ -56,6 +56,8 @@ pub enum AuthProvider {
|
|||||||
Local,
|
Local,
|
||||||
#[sqlx(rename = "azure_sso")]
|
#[sqlx(rename = "azure_sso")]
|
||||||
AzureSso,
|
AzureSso,
|
||||||
|
Keycloak,
|
||||||
|
Oidc,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::fmt::Display for AuthProvider {
|
impl std::fmt::Display for AuthProvider {
|
||||||
@ -63,6 +65,8 @@ impl std::fmt::Display for AuthProvider {
|
|||||||
match self {
|
match self {
|
||||||
Self::Local => write!(f, "local"),
|
Self::Local => write!(f, "local"),
|
||||||
Self::AzureSso => write!(f, "azure_sso"),
|
Self::AzureSso => write!(f, "azure_sso"),
|
||||||
|
Self::Keycloak => write!(f, "keycloak"),
|
||||||
|
Self::Oidc => write!(f, "oidc"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user