In JetBrains Ktor prior to 2.1.0 the wrong authentication provider could be selected in some cases
jetbrains ktor