In JetBrains JetBrains Gateway prior to 2022.3 a client could connect without a valid token if the host consented.
jetbrains jetbrains gateway