1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#[cfg(all(feature = "store-factory", feature = "memory"))]
pub mod memory;
#[cfg(any(feature = "postgres", feature = "sqlite"))]
pub(crate) mod pool;
#[cfg(all(feature = "store-factory", feature = "postgres"))]
pub mod postgres;
#[cfg(all(feature = "store-factory", feature = "sqlite"))]
pub mod sqlite;
#[cfg(feature = "store-factory")]
pub trait StoreFactory {
#[cfg(feature = "biome-credentials")]
fn get_biome_credentials_store(&self) -> Box<dyn crate::biome::CredentialsStore>;
#[cfg(feature = "biome-key-management")]
fn get_biome_key_store(&self) -> Box<dyn crate::biome::KeyStore>;
#[cfg(feature = "biome-credentials")]
fn get_biome_refresh_token_store(&self) -> Box<dyn crate::biome::RefreshTokenStore>;
#[cfg(feature = "oauth")]
fn get_biome_oauth_user_session_store(&self) -> Box<dyn crate::biome::OAuthUserSessionStore>;
#[cfg(feature = "admin-service")]
fn get_admin_service_store(&self) -> Box<dyn crate::admin::store::AdminServiceStore>;
#[cfg(feature = "oauth")]
fn get_oauth_inflight_request_store(
&self,
) -> Box<dyn crate::oauth::store::InflightOAuthRequestStore>;
#[cfg(feature = "registry")]
fn get_registry_store(&self) -> Box<dyn crate::registry::RwRegistry>;
#[cfg(feature = "authorization-handler-rbac")]
fn get_role_based_authorization_store(
&self,
) -> Box<dyn crate::rest_api::auth::authorization::rbac::store::RoleBasedAuthorizationStore>;
#[cfg(feature = "biome-profile")]
fn get_biome_user_profile_store(&self) -> Box<dyn crate::biome::UserProfileStore>;
#[cfg(feature = "node-id-store")]
fn get_node_id_store(&self) -> Box<dyn crate::node_id::store::NodeIdStore>;
}