MCPcopy Create free account
hub / github.com/DefGuard/gateway / initialize_setup_session

Method initialize_setup_session

src/setup.rs:268–275  ·  view source on GitHub ↗
(&self, token: String)

Source from the content-addressed store, hash-verified

266 }
267
268 fn initialize_setup_session(&self, token: String) {
269 debug!("Establishing new setup session with Core");
270 self.current_session_token
271 .lock()
272 .expect("Failed to acquire lock on current session token during gateway setup")
273 .replace(token);
274 debug!("Setup session established");
275 }
276
277 fn verify_session_token(&self, token: &str) -> bool {
278 debug!("Validating setup session authorization");

Callers 1

startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected