For Ktor Client, is it possible to install the Auth module, but specify which authentication provider to use per request?
r
ryanbreaker
07/08/2025, 11:46 AM
I haven't used the client enough myself but if it's like the server then I'd imagine there would be a way to write a plugin or interceptor to control that. Just a guess of what to try to investigate.
a
Aleksei Tirman [JB]
07/09/2025, 9:26 AM
Unfortunately, it's not possible. Usually, the server sends the
WWW-Authenticate
header to hint the client on which provider to use.
j
James
07/09/2025, 9:27 AM
That's what I figured too when I didn't see anything in the documentation