MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / device_trust

Function device_trust

nodedb/src/control/security/conditional.rs:321–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn device_trust() {
322 let mut auth = test_auth();
323 auth.metadata.insert("device_trusted".into(), "true".into());
324 assert!(
325 evaluate_conditions(&[GrantCondition::RequireDeviceTrust], &auth, "10.0.0.1").is_ok()
326 );
327 }
328
329 #[test]
330 fn parse_mfa_condition() {

Callers

nothing calls this directly

Calls 2

test_authFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected