From e840f3fa57af026dbc4933322352386da3b7e607 Mon Sep 17 00:00:00 2001 From: Adam Magaluk Date: Fri, 16 Dec 2022 09:43:16 -0500 Subject: [PATCH] Exempt AuthTo from disconnect check --- robot/client/client.go | 1 + robot/client/client_session.go | 1 + robot/session_web.go | 1 + 3 files changed, 3 insertions(+) diff --git a/robot/client/client.go b/robot/client/client.go index 9e891b2a217..528239a6f51 100644 --- a/robot/client/client.go +++ b/robot/client/client.go @@ -91,6 +91,7 @@ var exemptFromConnectionCheck = map[string]bool{ "/proto.rpc.webrtc.v1.SignalingService/CallUpdate": true, "/proto.rpc.webrtc.v1.SignalingService/OptionalWebRTCConfig": true, "/proto.rpc.v1.AuthService/Authenticate": true, + "/proto.rpc.v1.ExternalAuthService/AuthenticateTo": true, } func skipConnectionCheck(method string) bool { diff --git a/robot/client/client_session.go b/robot/client/client_session.go index 61f1365560e..90715c80248 100644 --- a/robot/client/client_session.go +++ b/robot/client/client_session.go @@ -27,6 +27,7 @@ var exemptFromSession = map[string]bool{ "/proto.rpc.webrtc.v1.SignalingService/CallUpdate": true, "/proto.rpc.webrtc.v1.SignalingService/OptionalWebRTCConfig": true, "/proto.rpc.v1.AuthService/Authenticate": true, + "/proto.rpc.v1.ExternalAuthService/AuthenticateTo": true, "/viam.robot.v1.RobotService/ResourceNames": true, "/viam.robot.v1.RobotService/ResourceRPCSubtypes": true, "/viam.robot.v1.RobotService/StartSession": true, diff --git a/robot/session_web.go b/robot/session_web.go index e63de4b454b..2f5fd97453a 100644 --- a/robot/session_web.go +++ b/robot/session_web.go @@ -116,6 +116,7 @@ var exemptFromSession = map[string]bool{ "/proto.rpc.webrtc.v1.SignalingService/CallUpdate": true, "/proto.rpc.webrtc.v1.SignalingService/OptionalWebRTCConfig": true, "/proto.rpc.v1.AuthService/Authenticate": true, + "/proto.rpc.v1.ExternalAuthService/AuthenticateTo": true, "/viam.robot.v1.RobotService/ResourceNames": true, "/viam.robot.v1.RobotService/ResourceRPCSubtypes": true, "/viam.robot.v1.RobotService/StartSession": true,