@doordeck/doordeck-headless-sdk 0.113.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +52 -51
- package/kotlin/Kermit-kermit.js +3 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1900 -1682
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +6 -6
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
- package/kotlin/doordeck-sdk.d.ts +1578 -292
- package/kotlin/doordeck-sdk.js +911 -1027
- package/kotlin/kotlin-kotlin-stdlib.js +584 -713
- package/kotlin/kotlinx-atomicfu.js +5 -5
- package/kotlin/kotlinx-coroutines-core.js +246 -243
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core.js +104 -104
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +126 -117
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1216 -1214
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js} +283 -286
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js → ktor-ktor-client-content-negotiation.js} +169 -169
- package/kotlin/{ktor-ktor-client-ktor-client-core.js → ktor-ktor-client-core.js} +2515 -2518
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js → ktor-ktor-client-logging.js} +926 -831
- package/kotlin/{ktor-ktor-shared-ktor-events.js → ktor-ktor-events.js} +9 -9
- package/kotlin/{ktor-ktor-http-ktor-http-cio.js → ktor-ktor-http-cio.js} +371 -370
- package/kotlin/ktor-ktor-http.js +867 -952
- package/kotlin/ktor-ktor-io.js +389 -411
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js → ktor-ktor-serialization-kotlinx-json.js} +7 -7
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js → ktor-ktor-serialization-kotlinx.js} +150 -150
- package/kotlin/{ktor-ktor-shared-ktor-serialization.js → ktor-ktor-serialization.js} +75 -75
- package/kotlin/ktor-ktor-utils.js +117 -92
- package/kotlin/{ktor-ktor-shared-ktor-websockets.js → ktor-ktor-websockets.js} +52 -52
- package/package.json +3 -3
- /package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js → ktor-ktor-client-encoding.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-sse.js → ktor-ktor-sse.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-websocket-serialization.js → ktor-ktor-websocket-serialization.js} +0 -0
package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js}
RENAMED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var CoroutineImpl = kotlin_kotlin.$_$.v9;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ya;
|
|
11
11
|
var VOID = kotlin_kotlin.$_$.h;
|
|
12
12
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
15
|
var toList = kotlin_kotlin.$_$.t8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
17
17
|
var KtMutableMap = kotlin_kotlin.$_$.w5;
|
|
18
18
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.jg;
|
|
20
20
|
var createKType = kotlin_kotlin.$_$.c;
|
|
21
21
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
22
22
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.a5;
|
|
@@ -29,31 +29,31 @@
|
|
|
29
29
|
var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
|
|
30
30
|
var flatten = kotlin_kotlin.$_$.i7;
|
|
31
31
|
var emptyList = kotlin_kotlin.$_$.z6;
|
|
32
|
-
var to = kotlin_kotlin.$_$.
|
|
32
|
+
var to = kotlin_kotlin.$_$.zg;
|
|
33
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
34
34
|
var first = kotlin_kotlin.$_$.h7;
|
|
35
35
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
36
|
-
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.
|
|
36
|
+
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
37
37
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
38
|
+
var toString = kotlin_kotlin.$_$.zb;
|
|
39
39
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
|
|
40
|
-
var Sender = kotlin_io_ktor_ktor_client_core.$_$.
|
|
40
|
+
var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
41
41
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
42
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
|
|
43
43
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
44
|
-
var Unit = kotlin_kotlin.$_$.
|
|
45
|
-
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.
|
|
44
|
+
var Unit = kotlin_kotlin.$_$.gg;
|
|
45
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
46
46
|
var KtList = kotlin_kotlin.$_$.r5;
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.xa;
|
|
48
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
|
|
49
49
|
var get = kotlin_kotlin.$_$.r9;
|
|
50
50
|
var fold = kotlin_kotlin.$_$.q9;
|
|
51
51
|
var minusKey = kotlin_kotlin.$_$.s9;
|
|
52
52
|
var plus = kotlin_kotlin.$_$.u9;
|
|
53
53
|
var Element = kotlin_kotlin.$_$.t9;
|
|
54
54
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
-
var equals = kotlin_kotlin.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.ib;
|
|
56
|
+
var equals = kotlin_kotlin.$_$.ma;
|
|
57
57
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
58
58
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
initMetadataForClass(AtomicCounter, 'AtomicCounter', AtomicCounter);
|
|
67
67
|
initMetadataForLambda(Auth$lambda$slambda, CoroutineImpl, VOID, [3]);
|
|
68
68
|
initMetadataForLambda(Auth$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
69
|
-
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE
|
|
70
|
-
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE
|
|
69
|
+
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
70
|
+
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
71
71
|
function sendWithoutRequest(request) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.e4u();
|
|
73
73
|
}
|
|
74
74
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
75
75
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
76
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.d4u(request, authHeader, $completion) : $super.d4u.call(this, request, authHeader, $completion);
|
|
77
77
|
}
|
|
78
78
|
function refreshToken(response, $completion) {
|
|
79
79
|
return true;
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
initMetadataForCompanion(Companion);
|
|
83
83
|
initMetadataForClass(SetTokenContext, 'SetTokenContext', SetTokenContext, VOID, [Element]);
|
|
84
84
|
initMetadataForLambda(AuthTokenHolder$setToken$slambda, CoroutineImpl, VOID, [1]);
|
|
85
|
-
initMetadataForCoroutine($loadTokenCOROUTINE
|
|
86
|
-
initMetadataForCoroutine($setTokenCOROUTINE
|
|
85
|
+
initMetadataForCoroutine($loadTokenCOROUTINE$, CoroutineImpl);
|
|
86
|
+
initMetadataForCoroutine($setTokenCOROUTINE$, CoroutineImpl);
|
|
87
87
|
initMetadataForClass(AuthTokenHolder, 'AuthTokenHolder', VOID, VOID, VOID, [0, 1]);
|
|
88
88
|
initMetadataForLambda(BearerAuthConfig$refreshTokens$slambda, CoroutineImpl, VOID, [1]);
|
|
89
89
|
initMetadataForLambda(BearerAuthConfig$loadTokens$slambda, CoroutineImpl, VOID, [0]);
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
initMetadataForClass(RefreshTokensParams, 'RefreshTokensParams');
|
|
92
92
|
initMetadataForClass(BearerTokens, 'BearerTokens');
|
|
93
93
|
initMetadataForLambda(BearerAuthProvider$refreshToken$slambda, CoroutineImpl, VOID, [0]);
|
|
94
|
-
initMetadataForCoroutine($addRequestHeadersCOROUTINE
|
|
95
|
-
initMetadataForCoroutine($refreshTokenCOROUTINE
|
|
94
|
+
initMetadataForCoroutine($addRequestHeadersCOROUTINE$, CoroutineImpl);
|
|
95
|
+
initMetadataForCoroutine($refreshTokenCOROUTINE$, CoroutineImpl);
|
|
96
96
|
initMetadataForClass(BearerAuthProvider, 'BearerAuthProvider', VOID, VOID, [AuthProvider], [2, 1]);
|
|
97
97
|
//endregion
|
|
98
98
|
function get_LOGGER() {
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
119
119
|
CoroutineImpl.call(this, resultContinuation);
|
|
120
120
|
}
|
|
121
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
122
|
-
var tmp = this.
|
|
121
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).z4q = function (it, $completion) {
|
|
122
|
+
var tmp = this.n3r(it, $completion);
|
|
123
123
|
tmp.i9_1 = Unit_instance;
|
|
124
124
|
tmp.j9_1 = null;
|
|
125
125
|
return tmp.o9();
|
|
126
126
|
};
|
|
127
127
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).ca = function (p1, $completion) {
|
|
128
|
-
return this.
|
|
128
|
+
return this.z4q(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
129
129
|
};
|
|
130
130
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).o9 = function () {
|
|
131
131
|
var suspendResult = this.i9_1;
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
var tmp = this.g9_1;
|
|
135
135
|
if (tmp === 0) {
|
|
136
136
|
this.h9_1 = 1;
|
|
137
|
-
return this.
|
|
137
|
+
return this.y4q_1.b35().equals(Companion_getInstance().s30_1);
|
|
138
138
|
} else if (tmp === 1) {
|
|
139
139
|
throw this.j9_1;
|
|
140
140
|
}
|
|
@@ -144,15 +144,15 @@
|
|
|
144
144
|
}
|
|
145
145
|
while (true);
|
|
146
146
|
};
|
|
147
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
147
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).n3r = function (it, completion) {
|
|
148
148
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
149
|
-
i.
|
|
149
|
+
i.y4q_1 = it;
|
|
150
150
|
return i;
|
|
151
151
|
};
|
|
152
152
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
153
153
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
154
154
|
var l = function (it, $completion) {
|
|
155
|
-
return i.
|
|
155
|
+
return i.z4q(it, $completion);
|
|
156
156
|
};
|
|
157
157
|
l.$arity = 1;
|
|
158
158
|
return l;
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
function AuthConfig() {
|
|
161
161
|
var tmp = this;
|
|
162
162
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
163
|
-
tmp.
|
|
163
|
+
tmp.a4r_1 = ArrayList_init_$Create$();
|
|
164
164
|
var tmp_0 = this;
|
|
165
|
-
tmp_0.
|
|
165
|
+
tmp_0.b4r_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
166
166
|
}
|
|
167
167
|
function AtomicCounter() {
|
|
168
|
-
this.
|
|
168
|
+
this.c4r_1 = atomic$int$1(0);
|
|
169
169
|
}
|
|
170
170
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
171
171
|
var l = function () {
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
}
|
|
177
177
|
function Auth$lambda($this$createClientPlugin) {
|
|
178
178
|
_init_properties_Auth_kt__9ob1dk();
|
|
179
|
-
var providers = toList($this$createClientPlugin.
|
|
180
|
-
$this$createClientPlugin.
|
|
179
|
+
var providers = toList($this$createClientPlugin.n3q_1.a4r_1);
|
|
180
|
+
$this$createClientPlugin.m3q_1.a3g_1.q2j(get_AuthProvidersKey(), providers);
|
|
181
181
|
var tokenVersions = new ConcurrentMap();
|
|
182
182
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
183
183
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -200,13 +200,13 @@
|
|
|
200
200
|
var tmp$ret$0 = tmp_0;
|
|
201
201
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
202
202
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
203
|
-
$this$createClientPlugin.
|
|
203
|
+
$this$createClientPlugin.a49(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
204
204
|
var tmp_2 = Send_instance;
|
|
205
|
-
$this$createClientPlugin.
|
|
205
|
+
$this$createClientPlugin.q3q(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
206
206
|
return Unit_instance;
|
|
207
207
|
}
|
|
208
208
|
function invoke$findProvider(call, candidateProviders) {
|
|
209
|
-
var headerValues = call.
|
|
209
|
+
var headerValues = call.x3g().f2z().t2n(HttpHeaders_getInstance().e2y_1);
|
|
210
210
|
var tmp;
|
|
211
211
|
if (headerValues == null) {
|
|
212
212
|
tmp = null;
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
233
233
|
var this_0 = get_LOGGER();
|
|
234
234
|
if (get_isTraceEnabled(this_0)) {
|
|
235
|
-
var tmp$ret$3 = 'Unauthorized response ' + call.
|
|
236
|
-
this_0.
|
|
235
|
+
var tmp$ret$3 = 'Unauthorized response ' + call.f3j().o3j().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
236
|
+
this_0.o2s(tmp$ret$3);
|
|
237
237
|
}
|
|
238
238
|
tmp_0 = null;
|
|
239
239
|
} else {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
var _iterator__ex2g4s_1 = candidateProviders.p();
|
|
251
251
|
while (_iterator__ex2g4s_1.q()) {
|
|
252
252
|
var element_0 = _iterator__ex2g4s_1.r();
|
|
253
|
-
if (element_0.
|
|
253
|
+
if (element_0.d4r(element)) {
|
|
254
254
|
tmp$ret$6 = element_0;
|
|
255
255
|
break $l$block;
|
|
256
256
|
}
|
|
@@ -278,13 +278,13 @@
|
|
|
278
278
|
return tmp_0;
|
|
279
279
|
}
|
|
280
280
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
281
|
-
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$
|
|
281
|
+
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
282
282
|
tmp.i9_1 = Unit_instance;
|
|
283
283
|
tmp.j9_1 = null;
|
|
284
284
|
return tmp.o9();
|
|
285
285
|
}
|
|
286
286
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
287
|
-
var tmp = new $invoke$executeWithNewTokenCOROUTINE$
|
|
287
|
+
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
288
288
|
tmp.i9_1 = Unit_instance;
|
|
289
289
|
tmp.j9_1 = null;
|
|
290
290
|
return tmp.o9();
|
|
@@ -297,21 +297,21 @@
|
|
|
297
297
|
return LinkedHashMap_init_$Create$();
|
|
298
298
|
}
|
|
299
299
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
300
|
+
this.q4s_1 = $providers;
|
|
301
|
+
this.r4s_1 = $tokenVersions;
|
|
302
|
+
this.s4s_1 = $tokenVersionsAttributeKey;
|
|
303
303
|
CoroutineImpl.call(this, resultContinuation);
|
|
304
304
|
}
|
|
305
|
-
protoOf(Auth$lambda$slambda).
|
|
306
|
-
var tmp = this.
|
|
305
|
+
protoOf(Auth$lambda$slambda).n49 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
306
|
+
var tmp = this.o49($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
307
307
|
tmp.i9_1 = Unit_instance;
|
|
308
308
|
tmp.j9_1 = null;
|
|
309
309
|
return tmp.o9();
|
|
310
310
|
};
|
|
311
|
-
protoOf(Auth$lambda$slambda).
|
|
311
|
+
protoOf(Auth$lambda$slambda).p49 = function (p1, p2, p3, $completion) {
|
|
312
312
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
313
313
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
314
|
-
return this.
|
|
314
|
+
return this.n49(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
315
315
|
};
|
|
316
316
|
protoOf(Auth$lambda$slambda).o9 = function () {
|
|
317
317
|
var suspendResult = this.i9_1;
|
|
@@ -322,46 +322,46 @@
|
|
|
322
322
|
case 0:
|
|
323
323
|
this.h9_1 = 4;
|
|
324
324
|
var tmp_0 = this;
|
|
325
|
-
var tmp0 = this.
|
|
325
|
+
var tmp0 = this.q4s_1;
|
|
326
326
|
var destination = ArrayList_init_$Create$();
|
|
327
327
|
var _iterator__ex2g4s = tmp0.p();
|
|
328
328
|
while (_iterator__ex2g4s.q()) {
|
|
329
329
|
var element = _iterator__ex2g4s.r();
|
|
330
|
-
if (element.
|
|
330
|
+
if (element.e4t(this.u4s_1)) {
|
|
331
331
|
destination.k(element);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
tmp_0.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
335
|
+
tmp_0.w4s_1 = destination;
|
|
336
|
+
this.x4s_1 = this.w4s_1;
|
|
337
|
+
this.y4s_1 = this.x4s_1.p();
|
|
338
338
|
this.g9_1 = 1;
|
|
339
339
|
continue $sm;
|
|
340
340
|
case 1:
|
|
341
|
-
if (!this.
|
|
341
|
+
if (!this.y4s_1.q()) {
|
|
342
342
|
this.g9_1 = 3;
|
|
343
343
|
continue $sm;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
this.
|
|
346
|
+
this.z4s_1 = this.y4s_1.r();
|
|
347
347
|
var tmp_1 = this;
|
|
348
|
-
tmp_1.
|
|
349
|
-
this.
|
|
348
|
+
tmp_1.a4t_1 = this.z4s_1;
|
|
349
|
+
this.b4t_1 = this.a4t_1;
|
|
350
350
|
var this_0 = get_LOGGER();
|
|
351
351
|
if (get_isTraceEnabled(this_0)) {
|
|
352
|
-
this_0.
|
|
352
|
+
this_0.o2s('Adding auth headers for ' + this.u4s_1.x3h_1.toString() + ' from provider ' + toString(this.b4t_1));
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
var tmp_2 = this;
|
|
356
|
-
tmp_2.
|
|
356
|
+
tmp_2.c4t_1 = this.r4s_1.d2s(this.b4t_1, Auth$lambda$slambda$lambda);
|
|
357
357
|
var tmp_3 = this;
|
|
358
|
-
tmp_3.
|
|
359
|
-
var
|
|
360
|
-
var tmp2 = this.
|
|
361
|
-
var value = this.
|
|
362
|
-
|
|
358
|
+
tmp_3.d4t_1 = this.u4s_1.c3i_1.s2j(this.s4s_1, Auth$lambda$slambda$lambda_0);
|
|
359
|
+
var tmp0_0 = this.d4t_1;
|
|
360
|
+
var tmp2 = this.b4t_1;
|
|
361
|
+
var value = this.c4t_1.c4r_1.kotlinx$atomicfu$value;
|
|
362
|
+
tmp0_0.n2(tmp2, value);
|
|
363
363
|
this.g9_1 = 2;
|
|
364
|
-
suspendResult = this.
|
|
364
|
+
suspendResult = this.b4t_1.f4t(this.u4s_1, VOID, this);
|
|
365
365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
366
366
|
return suspendResult;
|
|
367
367
|
}
|
|
@@ -386,37 +386,37 @@
|
|
|
386
386
|
}
|
|
387
387
|
while (true);
|
|
388
388
|
};
|
|
389
|
-
protoOf(Auth$lambda$slambda).
|
|
390
|
-
var i = new Auth$lambda$slambda(this.
|
|
391
|
-
i.
|
|
392
|
-
i.
|
|
393
|
-
i.
|
|
389
|
+
protoOf(Auth$lambda$slambda).o49 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
390
|
+
var i = new Auth$lambda$slambda(this.q4s_1, this.r4s_1, this.s4s_1, completion);
|
|
391
|
+
i.t4s_1 = $this$onRequest;
|
|
392
|
+
i.u4s_1 = request;
|
|
393
|
+
i.v4s_1 = _unused_var__etf5q3;
|
|
394
394
|
return i;
|
|
395
395
|
};
|
|
396
396
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
397
397
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
398
398
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
399
|
-
return i.
|
|
399
|
+
return i.n49($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
400
400
|
};
|
|
401
401
|
l.$arity = 3;
|
|
402
402
|
return l;
|
|
403
403
|
}
|
|
404
404
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
405
|
+
this.o4t_1 = $this_createClientPlugin;
|
|
406
|
+
this.p4t_1 = $providers;
|
|
407
|
+
this.q4t_1 = $tokenVersions;
|
|
408
|
+
this.r4t_1 = $tokenVersionsAttributeKey;
|
|
409
409
|
CoroutineImpl.call(this, resultContinuation);
|
|
410
410
|
}
|
|
411
|
-
protoOf(Auth$lambda$slambda_1).
|
|
412
|
-
var tmp = this.
|
|
411
|
+
protoOf(Auth$lambda$slambda_1).d3z = function ($this$on, originalRequest, $completion) {
|
|
412
|
+
var tmp = this.e3z($this$on, originalRequest, $completion);
|
|
413
413
|
tmp.i9_1 = Unit_instance;
|
|
414
414
|
tmp.j9_1 = null;
|
|
415
415
|
return tmp.o9();
|
|
416
416
|
};
|
|
417
417
|
protoOf(Auth$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
418
418
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
419
|
-
return this.
|
|
419
|
+
return this.d3z(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
420
420
|
};
|
|
421
421
|
protoOf(Auth$lambda$slambda_1).o9 = function () {
|
|
422
422
|
var suspendResult = this.i9_1;
|
|
@@ -427,40 +427,40 @@
|
|
|
427
427
|
case 0:
|
|
428
428
|
this.h9_1 = 10;
|
|
429
429
|
this.g9_1 = 1;
|
|
430
|
-
suspendResult = this.
|
|
430
|
+
suspendResult = this.s4t_1.h3z(this.t4t_1, this);
|
|
431
431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
432
432
|
return suspendResult;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
continue $sm;
|
|
436
436
|
case 1:
|
|
437
|
-
this.
|
|
437
|
+
this.u4t_1 = suspendResult;
|
|
438
438
|
this.g9_1 = 2;
|
|
439
|
-
suspendResult = this.
|
|
439
|
+
suspendResult = this.o4t_1.n3q_1.b4r_1(this.u4t_1.x3g(), this);
|
|
440
440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
441
441
|
return suspendResult;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
continue $sm;
|
|
445
445
|
case 2:
|
|
446
|
-
this.
|
|
447
|
-
if (!this.
|
|
448
|
-
return this.
|
|
446
|
+
this.v4t_1 = suspendResult;
|
|
447
|
+
if (!this.v4t_1) {
|
|
448
|
+
return this.u4t_1;
|
|
449
449
|
} else {
|
|
450
450
|
this.g9_1 = 3;
|
|
451
451
|
continue $sm;
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
case 3:
|
|
455
|
-
if (this.
|
|
456
|
-
return this.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
455
|
+
if (this.u4t_1.f3j().g3j().p2j(get_AuthCircuitBreaker()))
|
|
456
|
+
return this.u4t_1;
|
|
457
|
+
this.w4t_1 = this.u4t_1;
|
|
458
|
+
this.x4t_1 = HashSet_init_$Create$(this.p4t_1);
|
|
459
459
|
this.g9_1 = 4;
|
|
460
460
|
continue $sm;
|
|
461
461
|
case 4:
|
|
462
462
|
this.g9_1 = 5;
|
|
463
|
-
suspendResult = this.
|
|
463
|
+
suspendResult = this.o4t_1.n3q_1.b4r_1(this.w4t_1.x3g(), this);
|
|
464
464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
465
|
return suspendResult;
|
|
466
466
|
}
|
|
@@ -474,43 +474,43 @@
|
|
|
474
474
|
|
|
475
475
|
var this_0 = get_LOGGER();
|
|
476
476
|
if (get_isTraceEnabled(this_0)) {
|
|
477
|
-
this_0.
|
|
477
|
+
this_0.o2s('Unauthorized response for ' + this.w4t_1.f3j().o3j().toString());
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
var tmp_0 = this;
|
|
481
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
481
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.w4t_1, this.x4t_1);
|
|
482
482
|
var tmp_1;
|
|
483
483
|
if (tmp0_elvis_lhs == null) {
|
|
484
|
-
this.
|
|
484
|
+
this.s4t_1;
|
|
485
485
|
var this_1 = get_LOGGER();
|
|
486
486
|
if (get_isTraceEnabled(this_1)) {
|
|
487
|
-
this_1.
|
|
487
|
+
this_1.o2s('Can not find auth provider for ' + this.w4t_1.f3j().o3j().toString());
|
|
488
488
|
}
|
|
489
|
-
return this.
|
|
489
|
+
return this.w4t_1;
|
|
490
490
|
} else {
|
|
491
491
|
tmp_1 = tmp0_elvis_lhs;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
tmp_0.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
494
|
+
tmp_0.y4t_1 = tmp_1;
|
|
495
|
+
this.z4t_1 = this.y4t_1.tg();
|
|
496
|
+
this.a4u_1 = this.y4t_1.ug();
|
|
497
497
|
var this_2 = get_LOGGER();
|
|
498
498
|
if (get_isTraceEnabled(this_2)) {
|
|
499
|
-
this_2.
|
|
499
|
+
this_2.o2s('Using provider ' + toString(this.z4t_1) + ' for ' + this.w4t_1.f3j().o3j().toString());
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
this.
|
|
502
|
+
this.x4t_1.d2(this.z4t_1);
|
|
503
503
|
this.g9_1 = 6;
|
|
504
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
504
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.q4t_1, this.r4t_1, this.w4t_1, this.z4t_1, this.t4t_1, this);
|
|
505
505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
506
|
return suspendResult;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
continue $sm;
|
|
510
510
|
case 6:
|
|
511
|
-
this.
|
|
512
|
-
if (!this.
|
|
513
|
-
return this.
|
|
511
|
+
this.b4u_1 = suspendResult;
|
|
512
|
+
if (!this.b4u_1) {
|
|
513
|
+
return this.w4t_1;
|
|
514
514
|
} else {
|
|
515
515
|
this.g9_1 = 7;
|
|
516
516
|
continue $sm;
|
|
@@ -518,18 +518,18 @@
|
|
|
518
518
|
|
|
519
519
|
case 7:
|
|
520
520
|
this.g9_1 = 8;
|
|
521
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
521
|
+
suspendResult = invoke$executeWithNewToken(this.s4t_1, this.w4t_1, this.z4t_1, this.t4t_1, this.a4u_1, this);
|
|
522
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
523
|
return suspendResult;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 8:
|
|
528
|
-
this.
|
|
528
|
+
this.w4t_1 = suspendResult;
|
|
529
529
|
this.g9_1 = 4;
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 9:
|
|
532
|
-
return this.
|
|
532
|
+
return this.w4t_1;
|
|
533
533
|
case 10:
|
|
534
534
|
throw this.j9_1;
|
|
535
535
|
}
|
|
@@ -544,16 +544,16 @@
|
|
|
544
544
|
}
|
|
545
545
|
while (true);
|
|
546
546
|
};
|
|
547
|
-
protoOf(Auth$lambda$slambda_1).
|
|
548
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
549
|
-
i.
|
|
550
|
-
i.
|
|
547
|
+
protoOf(Auth$lambda$slambda_1).e3z = function ($this$on, originalRequest, completion) {
|
|
548
|
+
var i = new Auth$lambda$slambda_1(this.o4t_1, this.p4t_1, this.q4t_1, this.r4t_1, completion);
|
|
549
|
+
i.s4t_1 = $this$on;
|
|
550
|
+
i.t4t_1 = originalRequest;
|
|
551
551
|
return i;
|
|
552
552
|
};
|
|
553
553
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
554
554
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
555
555
|
var l = function ($this$on, originalRequest, $completion) {
|
|
556
|
-
return i.
|
|
556
|
+
return i.d3z($this$on, originalRequest, $completion);
|
|
557
557
|
};
|
|
558
558
|
l.$arity = 2;
|
|
559
559
|
return l;
|
|
@@ -567,15 +567,15 @@
|
|
|
567
567
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
568
568
|
return LinkedHashMap_init_$Create$();
|
|
569
569
|
}
|
|
570
|
-
function $invoke$refreshTokenIfNeededCOROUTINE$
|
|
570
|
+
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
571
571
|
CoroutineImpl.call(this, resultContinuation);
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
572
|
+
this.m4r_1 = tokenVersions;
|
|
573
|
+
this.n4r_1 = tokenVersionsAttributeKey;
|
|
574
|
+
this.o4r_1 = call;
|
|
575
|
+
this.p4r_1 = provider;
|
|
576
|
+
this.q4r_1 = request;
|
|
577
577
|
}
|
|
578
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$
|
|
578
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).o9 = function () {
|
|
579
579
|
var suspendResult = this.i9_1;
|
|
580
580
|
$sm: do
|
|
581
581
|
try {
|
|
@@ -584,17 +584,17 @@
|
|
|
584
584
|
case 0:
|
|
585
585
|
this.h9_1 = 4;
|
|
586
586
|
var tmp_0 = this;
|
|
587
|
-
tmp_0.
|
|
587
|
+
tmp_0.r4r_1 = this.m4r_1.d2s(this.p4r_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
588
588
|
var tmp_1 = this;
|
|
589
|
-
tmp_1.
|
|
590
|
-
this.
|
|
591
|
-
if (!(this.
|
|
589
|
+
tmp_1.s4r_1 = this.q4r_1.c3i_1.s2j(this.n4r_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
590
|
+
this.t4r_1 = this.s4r_1.k2(this.p4r_1);
|
|
591
|
+
if (!(this.t4r_1 == null) && this.t4r_1 >= this.r4r_1.c4r_1.kotlinx$atomicfu$value) {
|
|
592
592
|
var this_0 = get_LOGGER();
|
|
593
593
|
if (get_isTraceEnabled(this_0)) {
|
|
594
|
-
this_0.
|
|
594
|
+
this_0.o2s('Refreshing token for ' + this.o4r_1.f3j().o3j().toString());
|
|
595
595
|
}
|
|
596
596
|
this.g9_1 = 1;
|
|
597
|
-
suspendResult = this.
|
|
597
|
+
suspendResult = this.p4r_1.c4u(this.o4r_1.x3g(), this);
|
|
598
598
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
599
599
|
return suspendResult;
|
|
600
600
|
}
|
|
@@ -609,14 +609,14 @@
|
|
|
609
609
|
if (!ARGUMENT) {
|
|
610
610
|
var this_1 = get_LOGGER();
|
|
611
611
|
if (get_isTraceEnabled(this_1)) {
|
|
612
|
-
this_1.
|
|
612
|
+
this_1.o2s('Refreshing token failed for ' + this.o4r_1.f3j().o3j().toString());
|
|
613
613
|
}
|
|
614
614
|
return false;
|
|
615
615
|
} else {
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
var value = this.
|
|
619
|
-
|
|
616
|
+
var tmp0 = this.s4r_1;
|
|
617
|
+
var tmp2 = this.p4r_1;
|
|
618
|
+
var value = this.r4r_1.c4r_1.atomicfu$incrementAndGet();
|
|
619
|
+
tmp0.n2(tmp2, value);
|
|
620
620
|
this.g9_1 = 2;
|
|
621
621
|
continue $sm;
|
|
622
622
|
}
|
|
@@ -640,15 +640,15 @@
|
|
|
640
640
|
}
|
|
641
641
|
while (true);
|
|
642
642
|
};
|
|
643
|
-
function $invoke$executeWithNewTokenCOROUTINE$
|
|
643
|
+
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
644
644
|
CoroutineImpl.call(this, resultContinuation);
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
645
|
+
this.c4s_1 = _this__u8e3s4;
|
|
646
|
+
this.d4s_1 = call;
|
|
647
|
+
this.e4s_1 = provider;
|
|
648
|
+
this.f4s_1 = oldRequest;
|
|
649
|
+
this.g4s_1 = authHeader;
|
|
650
650
|
}
|
|
651
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$
|
|
651
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).o9 = function () {
|
|
652
652
|
var suspendResult = this.i9_1;
|
|
653
653
|
$sm: do
|
|
654
654
|
try {
|
|
@@ -656,24 +656,24 @@
|
|
|
656
656
|
switch (tmp) {
|
|
657
657
|
case 0:
|
|
658
658
|
this.h9_1 = 3;
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
659
|
+
this.h4s_1 = new HttpRequestBuilder();
|
|
660
|
+
this.h4s_1.z3n(this.f4s_1);
|
|
661
661
|
this.g9_1 = 1;
|
|
662
|
-
suspendResult = this.
|
|
662
|
+
suspendResult = this.e4s_1.d4u(this.h4s_1, this.g4s_1, this);
|
|
663
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
664
|
return suspendResult;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
continue $sm;
|
|
668
668
|
case 1:
|
|
669
|
-
this.
|
|
669
|
+
this.h4s_1.c3i_1.q2j(get_AuthCircuitBreaker(), Unit_instance);
|
|
670
670
|
var this_0 = get_LOGGER();
|
|
671
671
|
if (get_isTraceEnabled(this_0)) {
|
|
672
|
-
this_0.
|
|
672
|
+
this_0.o2s('Sending new request to ' + this.d4s_1.f3j().o3j().toString());
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
this.g9_1 = 2;
|
|
676
|
-
suspendResult = this.
|
|
676
|
+
suspendResult = this.c4s_1.h3z(this.h4s_1, this);
|
|
677
677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
678
|
return suspendResult;
|
|
679
679
|
}
|
|
@@ -760,17 +760,17 @@
|
|
|
760
760
|
return Companion_instance;
|
|
761
761
|
};
|
|
762
762
|
function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
|
|
763
|
-
this.
|
|
763
|
+
this.n4u_1 = $block;
|
|
764
764
|
CoroutineImpl.call(this, resultContinuation);
|
|
765
765
|
}
|
|
766
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
766
|
+
protoOf(AuthTokenHolder$setToken$slambda).p4u = function ($this$withContext, $completion) {
|
|
767
767
|
var tmp = this.b1x($this$withContext, $completion);
|
|
768
768
|
tmp.i9_1 = Unit_instance;
|
|
769
769
|
tmp.j9_1 = null;
|
|
770
770
|
return tmp.o9();
|
|
771
771
|
};
|
|
772
772
|
protoOf(AuthTokenHolder$setToken$slambda).ca = function (p1, $completion) {
|
|
773
|
-
return this.
|
|
773
|
+
return this.p4u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
774
774
|
};
|
|
775
775
|
protoOf(AuthTokenHolder$setToken$slambda).o9 = function () {
|
|
776
776
|
var suspendResult = this.i9_1;
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
case 0:
|
|
782
782
|
this.h9_1 = 2;
|
|
783
783
|
this.g9_1 = 1;
|
|
784
|
-
suspendResult = this.
|
|
784
|
+
suspendResult = this.n4u_1(this);
|
|
785
785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
786
786
|
return suspendResult;
|
|
787
787
|
}
|
|
@@ -804,23 +804,23 @@
|
|
|
804
804
|
while (true);
|
|
805
805
|
};
|
|
806
806
|
protoOf(AuthTokenHolder$setToken$slambda).b1x = function ($this$withContext, completion) {
|
|
807
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
808
|
-
i.
|
|
807
|
+
var i = new AuthTokenHolder$setToken$slambda(this.n4u_1, completion);
|
|
808
|
+
i.o4u_1 = $this$withContext;
|
|
809
809
|
return i;
|
|
810
810
|
};
|
|
811
811
|
function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
|
|
812
812
|
var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
|
|
813
813
|
var l = function ($this$withContext, $completion) {
|
|
814
|
-
return i.
|
|
814
|
+
return i.p4u($this$withContext, $completion);
|
|
815
815
|
};
|
|
816
816
|
l.$arity = 1;
|
|
817
817
|
return l;
|
|
818
818
|
}
|
|
819
|
-
function $loadTokenCOROUTINE$
|
|
819
|
+
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
820
820
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
|
-
this.
|
|
821
|
+
this.y4u_1 = _this__u8e3s4;
|
|
822
822
|
}
|
|
823
|
-
protoOf($loadTokenCOROUTINE$
|
|
823
|
+
protoOf($loadTokenCOROUTINE$).o9 = function () {
|
|
824
824
|
var suspendResult = this.i9_1;
|
|
825
825
|
$sm: do
|
|
826
826
|
try {
|
|
@@ -828,24 +828,24 @@
|
|
|
828
828
|
switch (tmp) {
|
|
829
829
|
case 0:
|
|
830
830
|
this.h9_1 = 12;
|
|
831
|
-
if (!(this.
|
|
832
|
-
return this.
|
|
833
|
-
this.
|
|
831
|
+
if (!(this.y4u_1.h4v_1 == null))
|
|
832
|
+
return this.y4u_1.h4v_1;
|
|
833
|
+
this.z4u_1 = this.y4u_1.h4v_1;
|
|
834
834
|
if (!(this.m9().t9(Companion_instance) == null)) {
|
|
835
835
|
this.g9_1 = 10;
|
|
836
|
-
suspendResult = this.
|
|
836
|
+
suspendResult = this.y4u_1.g4v_1(this);
|
|
837
837
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
838
838
|
return suspendResult;
|
|
839
839
|
}
|
|
840
840
|
continue $sm;
|
|
841
841
|
} else {
|
|
842
842
|
var tmp_0 = this;
|
|
843
|
-
tmp_0.
|
|
844
|
-
this.
|
|
843
|
+
tmp_0.b4v_1 = this.y4u_1.j4v_1;
|
|
844
|
+
this.c4v_1 = this.b4v_1;
|
|
845
845
|
var tmp_1 = this;
|
|
846
|
-
tmp_1.
|
|
846
|
+
tmp_1.d4v_1 = null;
|
|
847
847
|
this.g9_1 = 1;
|
|
848
|
-
suspendResult = this.
|
|
848
|
+
suspendResult = this.c4v_1.o1e(this.d4v_1, this);
|
|
849
849
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
850
850
|
return suspendResult;
|
|
851
851
|
}
|
|
@@ -853,19 +853,19 @@
|
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
case 1:
|
|
856
|
-
this.
|
|
856
|
+
this.e4v_1 = Unit_instance;
|
|
857
857
|
this.g9_1 = 2;
|
|
858
858
|
continue $sm;
|
|
859
859
|
case 2:
|
|
860
860
|
this.h9_1 = 9;
|
|
861
|
-
this.
|
|
861
|
+
this.y4u_1.i4v_1 = true;
|
|
862
862
|
this.g9_1 = 3;
|
|
863
863
|
continue $sm;
|
|
864
864
|
case 3:
|
|
865
865
|
this.h9_1 = 8;
|
|
866
|
-
if (equals(this.
|
|
866
|
+
if (equals(this.z4u_1, this.y4u_1.h4v_1)) {
|
|
867
867
|
this.g9_1 = 4;
|
|
868
|
-
suspendResult = this.
|
|
868
|
+
suspendResult = this.y4u_1.g4v_1(this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
@@ -877,45 +877,45 @@
|
|
|
877
877
|
|
|
878
878
|
case 4:
|
|
879
879
|
var ARGUMENT = suspendResult;
|
|
880
|
-
this.
|
|
880
|
+
this.y4u_1.h4v_1 = ARGUMENT;
|
|
881
881
|
this.g9_1 = 5;
|
|
882
882
|
continue $sm;
|
|
883
883
|
case 5:
|
|
884
|
-
this.
|
|
884
|
+
this.f4v_1 = Unit_instance;
|
|
885
885
|
this.g9_1 = 6;
|
|
886
886
|
continue $sm;
|
|
887
887
|
case 6:
|
|
888
888
|
this.h9_1 = 9;
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
889
|
+
this.y4u_1.i4v_1 = false;
|
|
890
|
+
this.e4v_1 = this.y4u_1.h4v_1;
|
|
891
891
|
this.h9_1 = 12;
|
|
892
892
|
this.g9_1 = 7;
|
|
893
893
|
continue $sm;
|
|
894
894
|
case 7:
|
|
895
|
-
var tmp_2 = this.
|
|
895
|
+
var tmp_2 = this.e4v_1;
|
|
896
896
|
this.h9_1 = 12;
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
897
|
+
this.c4v_1.a1e(this.d4v_1);
|
|
898
|
+
this.a4v_1 = tmp_2;
|
|
899
899
|
this.g9_1 = 11;
|
|
900
900
|
continue $sm;
|
|
901
901
|
case 8:
|
|
902
902
|
this.h9_1 = 9;
|
|
903
903
|
var t = this.j9_1;
|
|
904
|
-
this.
|
|
904
|
+
this.y4u_1.i4v_1 = false;
|
|
905
905
|
throw t;
|
|
906
906
|
case 9:
|
|
907
907
|
this.h9_1 = 12;
|
|
908
908
|
var t_0 = this.j9_1;
|
|
909
|
-
this.
|
|
909
|
+
this.c4v_1.a1e(this.d4v_1);
|
|
910
910
|
throw t_0;
|
|
911
911
|
case 10:
|
|
912
912
|
var ARGUMENT_0 = suspendResult;
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
913
|
+
this.y4u_1.h4v_1 = ARGUMENT_0;
|
|
914
|
+
this.a4v_1 = this.y4u_1.h4v_1;
|
|
915
915
|
this.g9_1 = 11;
|
|
916
916
|
continue $sm;
|
|
917
917
|
case 11:
|
|
918
|
-
return this.
|
|
918
|
+
return this.a4v_1;
|
|
919
919
|
case 12:
|
|
920
920
|
throw this.j9_1;
|
|
921
921
|
}
|
|
@@ -930,12 +930,12 @@
|
|
|
930
930
|
}
|
|
931
931
|
while (true);
|
|
932
932
|
};
|
|
933
|
-
function $setTokenCOROUTINE$
|
|
933
|
+
function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
|
|
934
934
|
CoroutineImpl.call(this, resultContinuation);
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
935
|
+
this.t4v_1 = _this__u8e3s4;
|
|
936
|
+
this.u4v_1 = block;
|
|
937
937
|
}
|
|
938
|
-
protoOf($setTokenCOROUTINE$
|
|
938
|
+
protoOf($setTokenCOROUTINE$).o9 = function () {
|
|
939
939
|
var suspendResult = this.i9_1;
|
|
940
940
|
$sm: do
|
|
941
941
|
try {
|
|
@@ -943,30 +943,30 @@
|
|
|
943
943
|
switch (tmp) {
|
|
944
944
|
case 0:
|
|
945
945
|
this.h9_1 = 7;
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
946
|
+
this.v4v_1 = this.t4v_1.h4v_1;
|
|
947
|
+
this.w4v_1 = this.t4v_1.i4v_1;
|
|
948
948
|
var tmp_0 = this;
|
|
949
|
-
tmp_0.
|
|
950
|
-
this.
|
|
949
|
+
tmp_0.x4v_1 = this.t4v_1.j4v_1;
|
|
950
|
+
this.y4v_1 = this.x4v_1;
|
|
951
951
|
var tmp_1 = this;
|
|
952
|
-
tmp_1.
|
|
952
|
+
tmp_1.z4v_1 = null;
|
|
953
953
|
this.g9_1 = 1;
|
|
954
|
-
suspendResult = this.
|
|
954
|
+
suspendResult = this.y4v_1.o1e(this.z4v_1, this);
|
|
955
955
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
956
|
return suspendResult;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
continue $sm;
|
|
960
960
|
case 1:
|
|
961
|
-
this.
|
|
961
|
+
this.a4w_1 = Unit_instance;
|
|
962
962
|
this.g9_1 = 2;
|
|
963
963
|
continue $sm;
|
|
964
964
|
case 2:
|
|
965
965
|
this.h9_1 = 6;
|
|
966
|
-
if (equals(this.
|
|
966
|
+
if (equals(this.v4v_1, this.t4v_1.h4v_1) || this.w4v_1) {
|
|
967
967
|
this.g9_1 = 3;
|
|
968
|
-
var tmp_2 = this.m9().rh(this.
|
|
969
|
-
suspendResult = withContext(tmp_2, AuthTokenHolder$setToken$slambda_0(this.
|
|
968
|
+
var tmp_2 = this.m9().rh(this.t4v_1.k4v_1);
|
|
969
|
+
suspendResult = withContext(tmp_2, AuthTokenHolder$setToken$slambda_0(this.u4v_1, null), this);
|
|
970
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
971
|
return suspendResult;
|
|
972
972
|
}
|
|
@@ -977,27 +977,24 @@
|
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
case 3:
|
|
980
|
-
var
|
|
981
|
-
|
|
982
|
-
this.x4v_1.l4v_1 = newValue;
|
|
983
|
-
}
|
|
984
|
-
|
|
980
|
+
var ARGUMENT = suspendResult;
|
|
981
|
+
this.t4v_1.h4v_1 = ARGUMENT;
|
|
985
982
|
this.g9_1 = 4;
|
|
986
983
|
continue $sm;
|
|
987
984
|
case 4:
|
|
988
|
-
this.
|
|
985
|
+
this.a4w_1 = this.t4v_1.h4v_1;
|
|
989
986
|
this.h9_1 = 7;
|
|
990
987
|
this.g9_1 = 5;
|
|
991
988
|
continue $sm;
|
|
992
989
|
case 5:
|
|
993
|
-
var tmp_3 = this.
|
|
990
|
+
var tmp_3 = this.a4w_1;
|
|
994
991
|
this.h9_1 = 7;
|
|
995
|
-
this.
|
|
992
|
+
this.y4v_1.a1e(this.z4v_1);
|
|
996
993
|
return tmp_3;
|
|
997
994
|
case 6:
|
|
998
995
|
this.h9_1 = 7;
|
|
999
996
|
var t = this.j9_1;
|
|
1000
|
-
this.
|
|
997
|
+
this.y4v_1.a1e(this.z4v_1);
|
|
1001
998
|
throw t;
|
|
1002
999
|
case 7:
|
|
1003
1000
|
throw this.j9_1;
|
|
@@ -1014,20 +1011,20 @@
|
|
|
1014
1011
|
while (true);
|
|
1015
1012
|
};
|
|
1016
1013
|
function AuthTokenHolder(loadTokens) {
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1014
|
+
this.g4v_1 = loadTokens;
|
|
1015
|
+
this.h4v_1 = null;
|
|
1016
|
+
this.i4v_1 = false;
|
|
1017
|
+
this.j4v_1 = Mutex();
|
|
1018
|
+
this.k4v_1 = new SetTokenContext();
|
|
1022
1019
|
}
|
|
1023
|
-
protoOf(AuthTokenHolder).
|
|
1024
|
-
var tmp = new $loadTokenCOROUTINE$
|
|
1020
|
+
protoOf(AuthTokenHolder).b4w = function ($completion) {
|
|
1021
|
+
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1025
1022
|
tmp.i9_1 = Unit_instance;
|
|
1026
1023
|
tmp.j9_1 = null;
|
|
1027
1024
|
return tmp.o9();
|
|
1028
1025
|
};
|
|
1029
|
-
protoOf(AuthTokenHolder).
|
|
1030
|
-
var tmp = new $setTokenCOROUTINE$
|
|
1026
|
+
protoOf(AuthTokenHolder).c4w = function (block, $completion) {
|
|
1027
|
+
var tmp = new $setTokenCOROUTINE$(this, block, $completion);
|
|
1031
1028
|
tmp.i9_1 = Unit_instance;
|
|
1032
1029
|
tmp.j9_1 = null;
|
|
1033
1030
|
return tmp.o9();
|
|
@@ -1037,19 +1034,19 @@
|
|
|
1037
1034
|
var this_0 = new BearerAuthConfig();
|
|
1038
1035
|
block(this_0);
|
|
1039
1036
|
// Inline function 'kotlin.with' call
|
|
1040
|
-
_this__u8e3s4.
|
|
1037
|
+
_this__u8e3s4.a4r_1.k(new BearerAuthProvider(this_0.d4w_1, this_0.e4w_1, this_0.f4w_1, this_0.g4w_1));
|
|
1041
1038
|
}
|
|
1042
1039
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1043
1040
|
CoroutineImpl.call(this, resultContinuation);
|
|
1044
1041
|
}
|
|
1045
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1046
|
-
var tmp = this.
|
|
1042
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).q4w = function (_this__u8e3s4, $completion) {
|
|
1043
|
+
var tmp = this.r4w(_this__u8e3s4, $completion);
|
|
1047
1044
|
tmp.i9_1 = Unit_instance;
|
|
1048
1045
|
tmp.j9_1 = null;
|
|
1049
1046
|
return tmp.o9();
|
|
1050
1047
|
};
|
|
1051
1048
|
protoOf(BearerAuthConfig$refreshTokens$slambda).ca = function (p1, $completion) {
|
|
1052
|
-
return this.
|
|
1049
|
+
return this.q4w(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1053
1050
|
};
|
|
1054
1051
|
protoOf(BearerAuthConfig$refreshTokens$slambda).o9 = function () {
|
|
1055
1052
|
var suspendResult = this.i9_1;
|
|
@@ -1068,15 +1065,15 @@
|
|
|
1068
1065
|
}
|
|
1069
1066
|
while (true);
|
|
1070
1067
|
};
|
|
1071
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1068
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).r4w = function (_this__u8e3s4, completion) {
|
|
1072
1069
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1073
|
-
i.
|
|
1070
|
+
i.p4w_1 = _this__u8e3s4;
|
|
1074
1071
|
return i;
|
|
1075
1072
|
};
|
|
1076
1073
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1077
1074
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1078
1075
|
var l = function (_this__u8e3s4, $completion) {
|
|
1079
|
-
return i.
|
|
1076
|
+
return i.q4w(_this__u8e3s4, $completion);
|
|
1080
1077
|
};
|
|
1081
1078
|
l.$arity = 1;
|
|
1082
1079
|
return l;
|
|
@@ -1084,14 +1081,14 @@
|
|
|
1084
1081
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1085
1082
|
CoroutineImpl.call(this, resultContinuation);
|
|
1086
1083
|
}
|
|
1087
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1088
|
-
var tmp = this.
|
|
1084
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).a4x = function ($completion) {
|
|
1085
|
+
var tmp = this.b4x($completion);
|
|
1089
1086
|
tmp.i9_1 = Unit_instance;
|
|
1090
1087
|
tmp.j9_1 = null;
|
|
1091
1088
|
return tmp.o9();
|
|
1092
1089
|
};
|
|
1093
1090
|
protoOf(BearerAuthConfig$loadTokens$slambda).hb = function ($completion) {
|
|
1094
|
-
return this.
|
|
1091
|
+
return this.a4x($completion);
|
|
1095
1092
|
};
|
|
1096
1093
|
protoOf(BearerAuthConfig$loadTokens$slambda).o9 = function () {
|
|
1097
1094
|
var suspendResult = this.i9_1;
|
|
@@ -1110,13 +1107,13 @@
|
|
|
1110
1107
|
}
|
|
1111
1108
|
while (true);
|
|
1112
1109
|
};
|
|
1113
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1110
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).b4x = function (completion) {
|
|
1114
1111
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1115
1112
|
};
|
|
1116
1113
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1117
1114
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1118
1115
|
var l = function ($completion) {
|
|
1119
|
-
return i.
|
|
1116
|
+
return i.a4x($completion);
|
|
1120
1117
|
};
|
|
1121
1118
|
l.$arity = 0;
|
|
1122
1119
|
return l;
|
|
@@ -1126,60 +1123,60 @@
|
|
|
1126
1123
|
}
|
|
1127
1124
|
function BearerAuthConfig() {
|
|
1128
1125
|
var tmp = this;
|
|
1129
|
-
tmp.
|
|
1126
|
+
tmp.d4w_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1130
1127
|
var tmp_0 = this;
|
|
1131
|
-
tmp_0.
|
|
1128
|
+
tmp_0.e4w_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1132
1129
|
var tmp_1 = this;
|
|
1133
|
-
tmp_1.
|
|
1134
|
-
this.
|
|
1130
|
+
tmp_1.f4w_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1131
|
+
this.g4w_1 = null;
|
|
1135
1132
|
}
|
|
1136
|
-
protoOf(BearerAuthConfig).
|
|
1137
|
-
this.
|
|
1133
|
+
protoOf(BearerAuthConfig).c4x = function (block) {
|
|
1134
|
+
this.d4w_1 = block;
|
|
1138
1135
|
};
|
|
1139
1136
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1137
|
+
this.d4x_1 = client;
|
|
1138
|
+
this.e4x_1 = response;
|
|
1139
|
+
this.f4x_1 = oldTokens;
|
|
1143
1140
|
}
|
|
1144
|
-
protoOf(RefreshTokensParams).
|
|
1145
|
-
_this__u8e3s4.
|
|
1141
|
+
protoOf(RefreshTokensParams).g4x = function (_this__u8e3s4) {
|
|
1142
|
+
_this__u8e3s4.c3i_1.q2j(get_AuthCircuitBreaker(), Unit_instance);
|
|
1146
1143
|
};
|
|
1147
1144
|
function BearerTokens(accessToken, refreshToken) {
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1145
|
+
this.h4x_1 = accessToken;
|
|
1146
|
+
this.i4x_1 = refreshToken;
|
|
1150
1147
|
}
|
|
1151
1148
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1152
1149
|
return true;
|
|
1153
1150
|
}
|
|
1154
1151
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1155
1152
|
return function ($this$headers) {
|
|
1156
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1153
|
+
var tokenValue = 'Bearer ' + $token.h4x_1;
|
|
1157
1154
|
var tmp;
|
|
1158
|
-
if ($this$headers.w2n(HttpHeaders_getInstance().
|
|
1159
|
-
$this$headers.h2o(HttpHeaders_getInstance().
|
|
1155
|
+
if ($this$headers.w2n(HttpHeaders_getInstance().l2v_1)) {
|
|
1156
|
+
$this$headers.h2o(HttpHeaders_getInstance().l2v_1);
|
|
1160
1157
|
tmp = Unit_instance;
|
|
1161
1158
|
}
|
|
1162
1159
|
var tmp_0;
|
|
1163
|
-
if (!$request.
|
|
1164
|
-
$this$headers.e2o(HttpHeaders_getInstance().
|
|
1160
|
+
if (!$request.c3i_1.p2j(get_AuthCircuitBreaker())) {
|
|
1161
|
+
$this$headers.e2o(HttpHeaders_getInstance().l2v_1, tokenValue);
|
|
1165
1162
|
tmp_0 = Unit_instance;
|
|
1166
1163
|
}
|
|
1167
1164
|
return Unit_instance;
|
|
1168
1165
|
};
|
|
1169
1166
|
}
|
|
1170
1167
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1168
|
+
this.r4x_1 = this$0;
|
|
1169
|
+
this.s4x_1 = $response;
|
|
1173
1170
|
CoroutineImpl.call(this, resultContinuation);
|
|
1174
1171
|
}
|
|
1175
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1176
|
-
var tmp = this.
|
|
1172
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).x4x = function ($completion) {
|
|
1173
|
+
var tmp = this.b4x($completion);
|
|
1177
1174
|
tmp.i9_1 = Unit_instance;
|
|
1178
1175
|
tmp.j9_1 = null;
|
|
1179
1176
|
return tmp.o9();
|
|
1180
1177
|
};
|
|
1181
1178
|
protoOf(BearerAuthProvider$refreshToken$slambda).hb = function ($completion) {
|
|
1182
|
-
return this.
|
|
1179
|
+
return this.x4x($completion);
|
|
1183
1180
|
};
|
|
1184
1181
|
protoOf(BearerAuthProvider$refreshToken$slambda).o9 = function () {
|
|
1185
1182
|
var suspendResult = this.i9_1;
|
|
@@ -1189,20 +1186,20 @@
|
|
|
1189
1186
|
switch (tmp) {
|
|
1190
1187
|
case 0:
|
|
1191
1188
|
this.h9_1 = 3;
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1189
|
+
this.t4x_1 = this.r4x_1.y4x_1;
|
|
1190
|
+
this.u4x_1 = this.s4x_1.m3j().s3g_1;
|
|
1194
1191
|
this.g9_1 = 1;
|
|
1195
|
-
suspendResult = this.
|
|
1192
|
+
suspendResult = this.r4x_1.b4y_1.b4w(this);
|
|
1196
1193
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1197
1194
|
return suspendResult;
|
|
1198
1195
|
}
|
|
1199
1196
|
|
|
1200
1197
|
continue $sm;
|
|
1201
1198
|
case 1:
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1199
|
+
this.v4x_1 = suspendResult;
|
|
1200
|
+
this.w4x_1 = new RefreshTokensParams(this.u4x_1, this.s4x_1, this.v4x_1);
|
|
1204
1201
|
this.g9_1 = 2;
|
|
1205
|
-
suspendResult = this.
|
|
1202
|
+
suspendResult = this.t4x_1(this.w4x_1, this);
|
|
1206
1203
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1207
1204
|
return suspendResult;
|
|
1208
1205
|
}
|
|
@@ -1224,24 +1221,24 @@
|
|
|
1224
1221
|
}
|
|
1225
1222
|
while (true);
|
|
1226
1223
|
};
|
|
1227
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1228
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1224
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).b4x = function (completion) {
|
|
1225
|
+
return new BearerAuthProvider$refreshToken$slambda(this.r4x_1, this.s4x_1, completion);
|
|
1229
1226
|
};
|
|
1230
1227
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1231
1228
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1232
1229
|
var l = function ($completion) {
|
|
1233
|
-
return i.
|
|
1230
|
+
return i.x4x($completion);
|
|
1234
1231
|
};
|
|
1235
1232
|
l.$arity = 0;
|
|
1236
1233
|
return l;
|
|
1237
1234
|
}
|
|
1238
|
-
function $addRequestHeadersCOROUTINE$
|
|
1235
|
+
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1239
1236
|
CoroutineImpl.call(this, resultContinuation);
|
|
1240
|
-
this.
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1237
|
+
this.k4y_1 = _this__u8e3s4;
|
|
1238
|
+
this.l4y_1 = request;
|
|
1239
|
+
this.m4y_1 = authHeader;
|
|
1243
1240
|
}
|
|
1244
|
-
protoOf($addRequestHeadersCOROUTINE$
|
|
1241
|
+
protoOf($addRequestHeadersCOROUTINE$).o9 = function () {
|
|
1245
1242
|
var suspendResult = this.i9_1;
|
|
1246
1243
|
$sm: do
|
|
1247
1244
|
try {
|
|
@@ -1250,7 +1247,7 @@
|
|
|
1250
1247
|
case 0:
|
|
1251
1248
|
this.h9_1 = 2;
|
|
1252
1249
|
this.g9_1 = 1;
|
|
1253
|
-
suspendResult = this.
|
|
1250
|
+
suspendResult = this.k4y_1.b4y_1.b4w(this);
|
|
1254
1251
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1255
1252
|
return suspendResult;
|
|
1256
1253
|
}
|
|
@@ -1266,7 +1263,7 @@
|
|
|
1266
1263
|
}
|
|
1267
1264
|
|
|
1268
1265
|
var token = tmp_0;
|
|
1269
|
-
headers(this.
|
|
1266
|
+
headers(this.l4y_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.l4y_1));
|
|
1270
1267
|
return Unit_instance;
|
|
1271
1268
|
case 2:
|
|
1272
1269
|
throw this.j9_1;
|
|
@@ -1282,12 +1279,12 @@
|
|
|
1282
1279
|
}
|
|
1283
1280
|
while (true);
|
|
1284
1281
|
};
|
|
1285
|
-
function $refreshTokenCOROUTINE$
|
|
1282
|
+
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1286
1283
|
CoroutineImpl.call(this, resultContinuation);
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1284
|
+
this.v4y_1 = _this__u8e3s4;
|
|
1285
|
+
this.w4y_1 = response;
|
|
1289
1286
|
}
|
|
1290
|
-
protoOf($refreshTokenCOROUTINE$
|
|
1287
|
+
protoOf($refreshTokenCOROUTINE$).o9 = function () {
|
|
1291
1288
|
var suspendResult = this.i9_1;
|
|
1292
1289
|
$sm: do
|
|
1293
1290
|
try {
|
|
@@ -1296,7 +1293,7 @@
|
|
|
1296
1293
|
case 0:
|
|
1297
1294
|
this.h9_1 = 2;
|
|
1298
1295
|
this.g9_1 = 1;
|
|
1299
|
-
suspendResult = this.
|
|
1296
|
+
suspendResult = this.v4y_1.b4y_1.c4w(BearerAuthProvider$refreshToken$slambda_0(this.v4y_1, this.w4y_1, null), this);
|
|
1300
1297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1298
|
return suspendResult;
|
|
1302
1299
|
}
|
|
@@ -1327,47 +1324,47 @@
|
|
|
1327
1324
|
tmp = sendWithoutRequestCallback;
|
|
1328
1325
|
}
|
|
1329
1326
|
sendWithoutRequestCallback = tmp;
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1327
|
+
this.y4x_1 = refreshTokens;
|
|
1328
|
+
this.z4x_1 = sendWithoutRequestCallback;
|
|
1329
|
+
this.a4y_1 = realm;
|
|
1330
|
+
this.b4y_1 = new AuthTokenHolder(loadTokens);
|
|
1334
1331
|
}
|
|
1335
|
-
protoOf(BearerAuthProvider).
|
|
1332
|
+
protoOf(BearerAuthProvider).e4u = function () {
|
|
1336
1333
|
var message = 'Deprecated';
|
|
1337
1334
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1338
1335
|
};
|
|
1339
|
-
protoOf(BearerAuthProvider).
|
|
1340
|
-
return this.
|
|
1336
|
+
protoOf(BearerAuthProvider).e4t = function (request) {
|
|
1337
|
+
return this.z4x_1(request);
|
|
1341
1338
|
};
|
|
1342
|
-
protoOf(BearerAuthProvider).
|
|
1343
|
-
if (!(auth.
|
|
1344
|
-
get_LOGGER().
|
|
1339
|
+
protoOf(BearerAuthProvider).d4r = function (auth) {
|
|
1340
|
+
if (!(auth.r34_1 === 'Bearer')) {
|
|
1341
|
+
get_LOGGER().o2s('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1345
1342
|
return false;
|
|
1346
1343
|
}
|
|
1347
1344
|
var tmp;
|
|
1348
|
-
if (this.
|
|
1345
|
+
if (this.a4y_1 == null) {
|
|
1349
1346
|
tmp = true;
|
|
1350
1347
|
} else {
|
|
1351
1348
|
if (!(auth instanceof Parameterized)) {
|
|
1352
1349
|
tmp = false;
|
|
1353
1350
|
} else {
|
|
1354
|
-
tmp = auth.
|
|
1351
|
+
tmp = auth.x2u('realm') == this.a4y_1;
|
|
1355
1352
|
}
|
|
1356
1353
|
}
|
|
1357
1354
|
var isSameRealm = tmp;
|
|
1358
1355
|
if (!isSameRealm) {
|
|
1359
|
-
get_LOGGER().
|
|
1356
|
+
get_LOGGER().o2s('Bearer Auth Provider is not applicable for this realm');
|
|
1360
1357
|
}
|
|
1361
1358
|
return isSameRealm;
|
|
1362
1359
|
};
|
|
1363
|
-
protoOf(BearerAuthProvider).
|
|
1364
|
-
var tmp = new $addRequestHeadersCOROUTINE$
|
|
1360
|
+
protoOf(BearerAuthProvider).d4u = function (request, authHeader, $completion) {
|
|
1361
|
+
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1365
1362
|
tmp.i9_1 = Unit_instance;
|
|
1366
1363
|
tmp.j9_1 = null;
|
|
1367
1364
|
return tmp.o9();
|
|
1368
1365
|
};
|
|
1369
|
-
protoOf(BearerAuthProvider).
|
|
1370
|
-
var tmp = new $refreshTokenCOROUTINE$
|
|
1366
|
+
protoOf(BearerAuthProvider).c4u = function (response, $completion) {
|
|
1367
|
+
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1371
1368
|
tmp.i9_1 = Unit_instance;
|
|
1372
1369
|
tmp.j9_1 = null;
|
|
1373
1370
|
return tmp.o9();
|
|
@@ -1377,7 +1374,7 @@
|
|
|
1377
1374
|
protoOf(SetTokenContext).qh = fold;
|
|
1378
1375
|
protoOf(SetTokenContext).ph = minusKey;
|
|
1379
1376
|
protoOf(SetTokenContext).rh = plus;
|
|
1380
|
-
protoOf(BearerAuthProvider).
|
|
1377
|
+
protoOf(BearerAuthProvider).f4t = addRequestHeaders$default;
|
|
1381
1378
|
//endregion
|
|
1382
1379
|
//region block: init
|
|
1383
1380
|
Companion_instance = new Companion();
|
|
@@ -1390,4 +1387,4 @@
|
|
|
1390
1387
|
_.$_$.d = get_Auth;
|
|
1391
1388
|
//endregion
|
|
1392
1389
|
return _;
|
|
1393
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-client-
|
|
1390
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-utils.js'), require('./kotlinx-coroutines-core.js')));
|