···01pub mod scopes;
200003pub use scopes::{SCOPE_PRESETS, ScopePreset, intersect_scopes};
4pub use tranquil_db_traits::DelegationActionType;
···1+pub mod roles;
2pub mod scopes;
34+pub use roles::{
5+ CanAddControllers, CanControlAccounts, verify_can_add_controllers, verify_can_be_controller,
6+ verify_can_control_accounts,
7+};
8pub use scopes::{SCOPE_PRESETS, ScopePreset, intersect_scopes};
9pub use tranquil_db_traits::DelegationActionType;
···01use std::sync::OnceLock;
2use tranquil_db_traits::SsoProviderType;
3···50 };
5152 if config.is_any_enabled() {
53- let hostname = std::env::var("PDS_HOSTNAME").unwrap_or_default();
54 if hostname.is_empty() || hostname == "localhost" {
55 panic!(
56 "PDS_HOSTNAME must be set to a valid hostname when SSO is enabled. \
···1+use crate::util::pds_hostname;
2use std::sync::OnceLock;
3use tranquil_db_traits::SsoProviderType;
4···51 };
5253 if config.is_any_enabled() {
54+ let hostname = pds_hostname();
55 if hostname.is_empty() || hostname == "localhost" {
56 panic!(
57 "PDS_HOSTNAME must be set to a valid hostname when SSO is enabled. \