https://kotlinlang.org logo
#ktor
Title
m

Mark Schisler

02/04/2022, 12:44 AM
Regarding client re-authorization (1.6.5):
Note that this block will be called after receiving a 
401
 (Unauthorized) response with the `WWW-Authenticate`header.
https://ktor.io/docs/auth.html#bearer Unfortunately, I am dealing with an endpoint that returns a
403
in the reauthorization case. Is the best way to accomplish this via a custom plugin, more or less mirroring the implementation of
Auth
? https://github.com/ktorio/ktor/blob/0081f943b434bdd0afd82424b389629e89a89461/ktor-[…]ktor-client-auth/common/src/io/ktor/client/plugins/auth/Auth.kt