Remove enterprise leftovers from community
This commit is contained in:
@@ -989,24 +989,18 @@ fn credential_allows_security_level(
|
||||
fn security_level_rank(level: OperationSecurityLevel) -> u8 {
|
||||
match level {
|
||||
OperationSecurityLevel::Standard => 0,
|
||||
OperationSecurityLevel::Elevated => 1,
|
||||
OperationSecurityLevel::Strict => 2,
|
||||
}
|
||||
}
|
||||
|
||||
fn serialize_security_level(level: OperationSecurityLevel) -> &'static str {
|
||||
match level {
|
||||
OperationSecurityLevel::Standard => "standard",
|
||||
OperationSecurityLevel::Elevated => "elevated",
|
||||
OperationSecurityLevel::Strict => "strict",
|
||||
}
|
||||
}
|
||||
|
||||
fn serialize_machine_access_mode(mode: crank_core::MachineAccessMode) -> &'static str {
|
||||
match mode {
|
||||
crank_core::MachineAccessMode::StaticAgentKey => "static_agent_key",
|
||||
crank_core::MachineAccessMode::ShortLivedToken => "short_lived_token",
|
||||
crank_core::MachineAccessMode::OneTimeToken => "one_time_token",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user