Skip to main content

haste_server/auth_n/oidc/hardcoded_clients/
mod.rs

1use crate::config::ServerConfig;
2use haste_fhir_model::r4::generated::resources::ClientApplication;
3
4pub mod admin_app;
5
6#[allow(dead_code)]
7pub fn get_hardcoded_clients(config: &ServerConfig) -> Vec<ClientApplication> {
8    let mut hardcoded_apps = vec![];
9
10    if let Some(app) = admin_app::get_admin_app(config) {
11        hardcoded_apps.push(app);
12    }
13
14    hardcoded_apps
15}