mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
feat(service): Add SCIM sync for Teams
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
b38cbbe7ba
commit
188a26ab2d
5 changed files with 139 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ mod webhook;
|
|||
|
||||
use crate::cloud::CloudOptions;
|
||||
use crate::config::{HazeConfig, Preset, ProxyConfig};
|
||||
pub use crate::service::authentik::{Authentik, AuthentikOidc, AuthentikSaml};
|
||||
pub use crate::service::authentik::{Authentik, AuthentikOidc, AuthentikSaml, AuthentikScim};
|
||||
pub use crate::service::clam::{Clam, ClamIcap, ClamIcapTls, ClamSocket};
|
||||
use crate::service::dav::Dav;
|
||||
use crate::service::imaginary::Imaginary;
|
||||
|
|
@ -322,6 +322,8 @@ pub enum ServiceType {
|
|||
Saml,
|
||||
/// Configure Authentik as an OIDC IDP for Nextcloud
|
||||
Oidc,
|
||||
/// Configure Authentik as a SCIM server for Nextcloud
|
||||
Scim,
|
||||
}
|
||||
|
||||
#[enum_dispatch]
|
||||
|
|
@ -358,6 +360,7 @@ pub enum Service {
|
|||
Authentik(Authentik),
|
||||
AuthentikSaml(AuthentikSaml),
|
||||
AuthentikOidc(AuthentikOidc),
|
||||
AuthentikScim(AuthentikScim),
|
||||
Preset(PresetService),
|
||||
}
|
||||
|
||||
|
|
@ -413,6 +416,10 @@ impl Service {
|
|||
Service::Authentik(Authentik),
|
||||
Service::AuthentikOidc(AuthentikOidc),
|
||||
]),
|
||||
ServiceType::Scim => Some(vec![
|
||||
Service::Authentik(Authentik),
|
||||
Service::AuthentikScim(AuthentikScim),
|
||||
]),
|
||||
}
|
||||
} else {
|
||||
presets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue