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

Function step_up_auth

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

Source from the content-addressed store, hash-verified

311
312 #[test]
313 fn step_up_auth() {
314 let auth = test_auth();
315 // auth_time is now → should pass with 900s window.
316 let cond = GrantCondition::StepUpAuth { max_age_secs: 900 };
317 assert!(evaluate_conditions(&[cond], &auth, "10.0.0.1").is_ok());
318 }
319
320 #[test]
321 fn device_trust() {

Callers

nothing calls this directly

Calls 1

test_authFunction · 0.85

Tested by

no test coverage detected