You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KTOR-7644 Make re-auth status codes configurable (#4420)
Some services use 403 instead of 401. Changing them might be impossible. With this change Ktor can flexibly work with any broken service.
---------
Co-authored-by: Osip Fatkullin <[email protected]>
Copy file name to clipboardExpand all lines: ktor-client/ktor-client-plugins/ktor-client-auth/api/ktor-client-auth.klib.api
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,11 @@ final class io.ktor.client.plugins.auth/AuthConfig { // io.ktor.client.plugins.a
155
155
156
156
final val providers // io.ktor.client.plugins.auth/AuthConfig.providers|{}providers[0]
157
157
final fun <get-providers>(): kotlin.collections/MutableList<io.ktor.client.plugins.auth/AuthProvider> // io.ktor.client.plugins.auth/AuthConfig.providers.<get-providers>|<get-providers>(){}[0]
158
+
159
+
final var isUnauthorizedResponse // io.ktor.client.plugins.auth/AuthConfig.isUnauthorizedResponse|{}isUnauthorizedResponse[0]
160
+
final fun <get-isUnauthorizedResponse>(): kotlin.coroutines/SuspendFunction1<io.ktor.client.statement/HttpResponse, kotlin/Boolean> // io.ktor.client.plugins.auth/AuthConfig.isUnauthorizedResponse.<get-isUnauthorizedResponse>|<get-isUnauthorizedResponse>(){}[0]
161
+
162
+
final fun reAuthorizeOnResponse(kotlin.coroutines/SuspendFunction1<io.ktor.client.statement/HttpResponse, kotlin/Boolean>) // io.ktor.client.plugins.auth/AuthConfig.reAuthorizeOnResponse|reAuthorizeOnResponse(kotlin.coroutines.SuspendFunction1<io.ktor.client.statement.HttpResponse,kotlin.Boolean>){}[0]
158
163
}
159
164
160
165
final val io.ktor.client.plugins.auth/Auth // io.ktor.client.plugins.auth/Auth|{}Auth[0]
0 commit comments