mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 21:27:26 -05:00
move to mogh deps
This commit is contained in:
@@ -15,11 +15,13 @@ repository.workspace = true
|
||||
blocking = ["reqwest/blocking"]
|
||||
mongo = ["dep:mongo_indexed"]
|
||||
utoipa = ["dep:utoipa", "serror/utoipa"]
|
||||
core = ["mongo", "utoipa"]
|
||||
logger = ["dep:logger"]
|
||||
core = ["mongo", "utoipa", "logger"]
|
||||
|
||||
[dependencies]
|
||||
# mogh
|
||||
mongo_indexed = { workspace = true, optional = true }
|
||||
logger = { workspace = true, optional = true }
|
||||
serror = { workspace = true, features = ["axum"] }
|
||||
derive_default_builder.workspace = true
|
||||
derive_empty_traits.workspace = true
|
||||
|
||||
@@ -268,7 +268,7 @@ pub type UnenrollTotpResponse = NoData;
|
||||
#[typeshare(serialized_as = "any")]
|
||||
pub type _CreationChallengeResponse = CreationChallengeResponse;
|
||||
|
||||
/// Starts enrollment flow for WebAuthn passkey auth support.
|
||||
/// Starts enrollment flow for Passkey 2fa support.
|
||||
/// Response: [BeginPasskeyEnrollmentResponse]
|
||||
#[typeshare]
|
||||
#[derive(
|
||||
@@ -303,7 +303,7 @@ impl utoipa::PartialSchema for _RegisterPublicKeyCredential {
|
||||
#[cfg(feature = "utoipa")]
|
||||
impl utoipa::ToSchema for _RegisterPublicKeyCredential {}
|
||||
|
||||
/// Confirm enrollment flow for TOTP 2FA auth support
|
||||
/// Confirm enrollment flow for Passkey 2FA auth support
|
||||
/// Response: [NoData]
|
||||
#[typeshare]
|
||||
#[derive(
|
||||
@@ -323,7 +323,7 @@ pub type ConfirmPasskeyEnrollmentResponse = NoData;
|
||||
|
||||
//
|
||||
|
||||
/// Unenrolls user in TOTP 2FA.
|
||||
/// Unenrolls user in Passkey 2FA.
|
||||
/// Response: [NoData]
|
||||
#[typeshare]
|
||||
#[derive(
|
||||
|
||||
@@ -143,3 +143,35 @@ pub enum StdioLogMode {
|
||||
Json,
|
||||
None,
|
||||
}
|
||||
|
||||
#[cfg(feature = "logger")]
|
||||
impl logger::LogConfig for &LogConfig {
|
||||
fn ansi(&self) -> bool {
|
||||
self.ansi
|
||||
}
|
||||
fn level(&self) -> tracing::Level {
|
||||
self.level.into()
|
||||
}
|
||||
fn location(&self) -> bool {
|
||||
self.location
|
||||
}
|
||||
fn opentelemetry_scope_name(&self) -> String {
|
||||
self.opentelemetry_scope_name.clone()
|
||||
}
|
||||
fn opentelemetry_service_name(&self) -> String {
|
||||
self.opentelemetry_service_name.clone()
|
||||
}
|
||||
fn otlp_endpoint(&self) -> &str {
|
||||
&self.otlp_endpoint
|
||||
}
|
||||
fn pretty(&self) -> bool {
|
||||
self.pretty
|
||||
}
|
||||
fn stdio(&self) -> logger::StdioLogMode {
|
||||
match self.stdio {
|
||||
StdioLogMode::Standard => logger::StdioLogMode::Standard,
|
||||
StdioLogMode::Json => logger::StdioLogMode::Json,
|
||||
StdioLogMode::None => logger::StdioLogMode::None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user