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