[APP-3801] implement remote environments auth (#9331)
This commit is contained in:
+6
-4
@@ -565,12 +565,12 @@ pub fn run() -> Result<()> {
|
||||
}
|
||||
}
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerProxy) => {
|
||||
return crate::remote_server::run_proxy();
|
||||
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerProxy(args)) => {
|
||||
return crate::remote_server::run_proxy(args.identity_key.clone());
|
||||
}
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerDaemon) => {
|
||||
return crate::remote_server::run_daemon();
|
||||
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerDaemon(args)) => {
|
||||
return crate::remote_server::run_daemon(args.identity_key.clone());
|
||||
}
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
warp_cli::Command::Worker(warp_cli::WorkerCommand::RipgrepSearch {
|
||||
@@ -1253,6 +1253,8 @@ fn initialize_app(
|
||||
ctx.add_singleton_model(|_ctx| SyncedInputState::new());
|
||||
|
||||
ctx.add_singleton_model(remote_server::manager::RemoteServerManager::new);
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
remote_server::wire_auth_token_rotation(ctx);
|
||||
|
||||
log::info!(
|
||||
"Starting warp with channel state {} and version {:?}",
|
||||
|
||||
Reference in New Issue
Block a user