@doordeck/doordeck-headless-sdk 0.35.0 → 0.36.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/Kotlin-DateTime-library-kotlinx-datetime.js +1192 -1192
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +14 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -6
- package/kotlin/Stately-stately-concurrency.js +6 -6
- package/kotlin/Stately-stately-concurrent-collections.js +53 -53
- package/kotlin/doordeck-sdk.js +7989 -7922
- package/kotlin/doordeck-sdk.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +1555 -1555
- package/kotlin/kotlinx-coroutines-core.js.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js +412 -412
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1657 -1657
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1310 -1310
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1696 -1696
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +212 -212
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +120 -120
- package/kotlin/ktor-ktor-http.js +629 -629
- package/kotlin/ktor-ktor-io.js +378 -378
- package/kotlin/ktor-ktor-shared-ktor-events.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +132 -132
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +37 -37
- package/kotlin/ktor-ktor-utils.js +507 -507
- package/kotlin/projects-core-koin-core.js +246 -246
- package/package.json +1 -1
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$0, CoroutineImpl);
|
|
60
60
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$1, CoroutineImpl);
|
|
61
61
|
function sendWithoutRequest(request) {
|
|
62
|
-
return this.
|
|
62
|
+
return this.j42();
|
|
63
63
|
}
|
|
64
64
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
65
65
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
66
|
-
return $super === VOID ? this.
|
|
66
|
+
return $super === VOID ? this.i42(request, authHeader, $completion) : $super.i42.call(this, request, authHeader, $completion);
|
|
67
67
|
}
|
|
68
68
|
function refreshToken(response, $completion) {
|
|
69
69
|
return true;
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
function AuthConfig() {
|
|
106
106
|
var tmp = this;
|
|
107
107
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
108
|
-
tmp.
|
|
108
|
+
tmp.k3z_1 = ArrayList_init_$Create$();
|
|
109
109
|
}
|
|
110
110
|
function AtomicCounter() {
|
|
111
|
-
this.
|
|
111
|
+
this.l3z_1 = atomic$int$1(0);
|
|
112
112
|
}
|
|
113
113
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
114
114
|
var l = function () {
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
}
|
|
120
120
|
function Auth$lambda($this$createClientPlugin) {
|
|
121
121
|
_init_properties_Auth_kt__9ob1dk();
|
|
122
|
-
var providers = toList($this$createClientPlugin.
|
|
123
|
-
$this$createClientPlugin.
|
|
122
|
+
var providers = toList($this$createClientPlugin.d33_1.k3z_1);
|
|
123
|
+
$this$createClientPlugin.c33_1.u2s_1.k26(get_AuthProvidersKey(), providers);
|
|
124
124
|
var tokenVersions = new ConcurrentMap();
|
|
125
125
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
126
126
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -143,13 +143,13 @@
|
|
|
143
143
|
var tmp$ret$0 = tmp_0;
|
|
144
144
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
145
145
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
146
|
-
$this$createClientPlugin.
|
|
146
|
+
$this$createClientPlugin.e3l(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
147
147
|
var tmp_2 = Send_instance;
|
|
148
|
-
$this$createClientPlugin.
|
|
148
|
+
$this$createClientPlugin.g33(tmp_2, Auth$lambda$slambda_2(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
149
149
|
return Unit_instance;
|
|
150
150
|
}
|
|
151
151
|
function invoke$findProvider(call, candidateProviders) {
|
|
152
|
-
var headerValues = call.
|
|
152
|
+
var headerValues = call.r2t().p2i().y27(HttpHeaders_getInstance().o2h_1);
|
|
153
153
|
var tmp;
|
|
154
154
|
if (headerValues == null) {
|
|
155
155
|
tmp = null;
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
if (authHeaders.h() && candidateProviders.s() === 1) {
|
|
174
174
|
tmp_0 = to(first(candidateProviders), null);
|
|
175
175
|
} else if (authHeaders.h()) {
|
|
176
|
-
get_LOGGER().
|
|
176
|
+
get_LOGGER().l2c('401 response ' + call.a2x().d2x().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token');
|
|
177
177
|
tmp_0 = null;
|
|
178
178
|
} else {
|
|
179
179
|
var tmp$ret$9;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
while (tmp0_iterator_1.q()) {
|
|
192
192
|
var element_0 = tmp0_iterator_1.r();
|
|
193
193
|
// Inline function 'io.ktor.client.plugins.auth.Auth$lambda.invoke.findProvider.<anonymous>.<anonymous>' call
|
|
194
|
-
if (element_0.
|
|
194
|
+
if (element_0.m3z(element)) {
|
|
195
195
|
tmp$ret$4 = element_0;
|
|
196
196
|
break $l$block;
|
|
197
197
|
}
|
|
@@ -240,21 +240,21 @@
|
|
|
240
240
|
return LinkedHashMap_init_$Create$();
|
|
241
241
|
}
|
|
242
242
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
243
|
-
this.
|
|
244
|
-
this.
|
|
245
|
-
this.
|
|
243
|
+
this.z40_1 = $providers;
|
|
244
|
+
this.a41_1 = $tokenVersions;
|
|
245
|
+
this.b41_1 = $tokenVersionsAttributeKey;
|
|
246
246
|
CoroutineImpl.call(this, resultContinuation);
|
|
247
247
|
}
|
|
248
|
-
protoOf(Auth$lambda$slambda).
|
|
249
|
-
var tmp = this.
|
|
248
|
+
protoOf(Auth$lambda$slambda).r3l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
249
|
+
var tmp = this.s3l($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
250
250
|
tmp.f9_1 = Unit_instance;
|
|
251
251
|
tmp.g9_1 = null;
|
|
252
252
|
return tmp.l9();
|
|
253
253
|
};
|
|
254
|
-
protoOf(Auth$lambda$slambda).
|
|
254
|
+
protoOf(Auth$lambda$slambda).t3l = function (p1, p2, p3, $completion) {
|
|
255
255
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
256
256
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
257
|
-
return this.
|
|
257
|
+
return this.r3l(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
258
258
|
};
|
|
259
259
|
protoOf(Auth$lambda$slambda).l9 = function () {
|
|
260
260
|
var suspendResult = this.f9_1;
|
|
@@ -265,40 +265,40 @@
|
|
|
265
265
|
case 0:
|
|
266
266
|
this.e9_1 = 4;
|
|
267
267
|
var tmp_0 = this;
|
|
268
|
-
var this_0 = this.
|
|
268
|
+
var this_0 = this.z40_1;
|
|
269
269
|
var destination = ArrayList_init_$Create$();
|
|
270
270
|
var tmp0_iterator = this_0.p();
|
|
271
271
|
while (tmp0_iterator.q()) {
|
|
272
272
|
var element = tmp0_iterator.r();
|
|
273
|
-
if (element.
|
|
273
|
+
if (element.l41(this.d41_1)) {
|
|
274
274
|
destination.k(element);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
tmp_0.
|
|
279
|
-
this.
|
|
278
|
+
tmp_0.f41_1 = destination;
|
|
279
|
+
this.g41_1 = this.f41_1.p();
|
|
280
280
|
this.d9_1 = 1;
|
|
281
281
|
continue $sm;
|
|
282
282
|
case 1:
|
|
283
|
-
if (!this.
|
|
283
|
+
if (!this.g41_1.q()) {
|
|
284
284
|
this.d9_1 = 3;
|
|
285
285
|
continue $sm;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
this.
|
|
288
|
+
this.h41_1 = this.g41_1.r();
|
|
289
289
|
var tmp_1 = this;
|
|
290
|
-
tmp_1.
|
|
291
|
-
get_LOGGER().
|
|
290
|
+
tmp_1.i41_1 = this.h41_1;
|
|
291
|
+
get_LOGGER().l2c('Adding auth headers for ' + this.d41_1.r2u_1.toString() + ' from provider ' + toString(this.i41_1));
|
|
292
292
|
var tmp_2 = this;
|
|
293
|
-
tmp_2.
|
|
293
|
+
tmp_2.j41_1 = this.a41_1.d2c(this.i41_1, Auth$lambda$slambda$lambda);
|
|
294
294
|
var tmp_3 = this;
|
|
295
|
-
tmp_3.
|
|
296
|
-
var this_1 = this.
|
|
297
|
-
var key = this.
|
|
298
|
-
var value = this.
|
|
295
|
+
tmp_3.k41_1 = this.d41_1.w2u_1.m26(this.b41_1, Auth$lambda$slambda$lambda_0);
|
|
296
|
+
var this_1 = this.k41_1;
|
|
297
|
+
var key = this.i41_1;
|
|
298
|
+
var value = this.j41_1.l3z_1.kotlinx$atomicfu$value;
|
|
299
299
|
this_1.n2(key, value);
|
|
300
300
|
this.d9_1 = 2;
|
|
301
|
-
suspendResult = this.
|
|
301
|
+
suspendResult = this.i41_1.m41(this.d41_1, VOID, this);
|
|
302
302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
303
303
|
return suspendResult;
|
|
304
304
|
}
|
|
@@ -323,36 +323,36 @@
|
|
|
323
323
|
}
|
|
324
324
|
while (true);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Auth$lambda$slambda).
|
|
327
|
-
var i = new Auth$lambda$slambda(this.
|
|
328
|
-
i.
|
|
329
|
-
i.
|
|
330
|
-
i.
|
|
326
|
+
protoOf(Auth$lambda$slambda).s3l = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
327
|
+
var i = new Auth$lambda$slambda(this.z40_1, this.a41_1, this.b41_1, completion);
|
|
328
|
+
i.c41_1 = $this$onRequest;
|
|
329
|
+
i.d41_1 = request;
|
|
330
|
+
i.e41_1 = _unused_var__etf5q3;
|
|
331
331
|
return i;
|
|
332
332
|
};
|
|
333
333
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
334
334
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
335
335
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
336
|
-
return i.
|
|
336
|
+
return i.r3l($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
337
337
|
};
|
|
338
338
|
l.$arity = 3;
|
|
339
339
|
return l;
|
|
340
340
|
}
|
|
341
341
|
function Auth$lambda$slambda_1($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
342
|
+
this.v41_1 = $providers;
|
|
343
|
+
this.w41_1 = $tokenVersions;
|
|
344
|
+
this.x41_1 = $tokenVersionsAttributeKey;
|
|
345
345
|
CoroutineImpl.call(this, resultContinuation);
|
|
346
346
|
}
|
|
347
|
-
protoOf(Auth$lambda$slambda_1).
|
|
348
|
-
var tmp = this.
|
|
347
|
+
protoOf(Auth$lambda$slambda_1).y3b = function ($this$on, originalRequest, $completion) {
|
|
348
|
+
var tmp = this.z3b($this$on, originalRequest, $completion);
|
|
349
349
|
tmp.f9_1 = Unit_instance;
|
|
350
350
|
tmp.g9_1 = null;
|
|
351
351
|
return tmp.l9();
|
|
352
352
|
};
|
|
353
353
|
protoOf(Auth$lambda$slambda_1).w9 = function (p1, p2, $completion) {
|
|
354
354
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
355
|
-
return this.
|
|
355
|
+
return this.y3b(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
356
356
|
};
|
|
357
357
|
protoOf(Auth$lambda$slambda_1).l9 = function () {
|
|
358
358
|
var suspendResult = this.f9_1;
|
|
@@ -363,56 +363,56 @@
|
|
|
363
363
|
case 0:
|
|
364
364
|
this.e9_1 = 7;
|
|
365
365
|
this.d9_1 = 1;
|
|
366
|
-
suspendResult = this.
|
|
366
|
+
suspendResult = this.y41_1.c3c(this.z41_1, this);
|
|
367
367
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
368
368
|
return suspendResult;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
continue $sm;
|
|
372
372
|
case 1:
|
|
373
|
-
this.
|
|
374
|
-
if (!this.
|
|
375
|
-
return this.
|
|
376
|
-
if (this.
|
|
377
|
-
return this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
373
|
+
this.a42_1 = suspendResult;
|
|
374
|
+
if (!this.a42_1.r2t().e2x().equals(Companion_getInstance().c2k_1))
|
|
375
|
+
return this.a42_1;
|
|
376
|
+
if (this.a42_1.a2x().g2w().j26(get_AuthCircuitBreaker()))
|
|
377
|
+
return this.a42_1;
|
|
378
|
+
this.b42_1 = this.a42_1;
|
|
379
|
+
this.c42_1 = HashSet_init_$Create$(this.v41_1);
|
|
380
380
|
this.d9_1 = 2;
|
|
381
381
|
continue $sm;
|
|
382
382
|
case 2:
|
|
383
|
-
if (!this.
|
|
383
|
+
if (!this.b42_1.r2t().e2x().equals(Companion_getInstance().c2k_1)) {
|
|
384
384
|
this.d9_1 = 6;
|
|
385
385
|
continue $sm;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
get_LOGGER().
|
|
388
|
+
get_LOGGER().l2c('Received 401 for ' + this.b42_1.a2x().d2x().toString());
|
|
389
389
|
var tmp_0 = this;
|
|
390
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
390
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.b42_1, this.c42_1);
|
|
391
391
|
var tmp_1;
|
|
392
392
|
if (tmp0_elvis_lhs == null) {
|
|
393
|
-
this.
|
|
394
|
-
get_LOGGER().
|
|
395
|
-
return this.
|
|
393
|
+
this.y41_1;
|
|
394
|
+
get_LOGGER().l2c('Can not find auth provider for ' + this.b42_1.a2x().d2x().toString());
|
|
395
|
+
return this.b42_1;
|
|
396
396
|
} else {
|
|
397
397
|
tmp_1 = tmp0_elvis_lhs;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
tmp_0.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
get_LOGGER().
|
|
404
|
-
this.
|
|
400
|
+
tmp_0.d42_1 = tmp_1;
|
|
401
|
+
this.e42_1 = this.d42_1.ig();
|
|
402
|
+
this.f42_1 = this.d42_1.jg();
|
|
403
|
+
get_LOGGER().l2c('Using provider ' + toString(this.e42_1) + ' for ' + this.b42_1.a2x().d2x().toString());
|
|
404
|
+
this.c42_1.d2(this.e42_1);
|
|
405
405
|
this.d9_1 = 3;
|
|
406
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
406
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.w41_1, this.x41_1, this.b42_1, this.e42_1, this.z41_1, this);
|
|
407
407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
408
408
|
return suspendResult;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
continue $sm;
|
|
412
412
|
case 3:
|
|
413
|
-
this.
|
|
414
|
-
if (!this.
|
|
415
|
-
return this.
|
|
413
|
+
this.g42_1 = suspendResult;
|
|
414
|
+
if (!this.g42_1) {
|
|
415
|
+
return this.b42_1;
|
|
416
416
|
} else {
|
|
417
417
|
this.d9_1 = 4;
|
|
418
418
|
continue $sm;
|
|
@@ -420,18 +420,18 @@
|
|
|
420
420
|
|
|
421
421
|
case 4:
|
|
422
422
|
this.d9_1 = 5;
|
|
423
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
423
|
+
suspendResult = invoke$executeWithNewToken(this.y41_1, this.b42_1, this.e42_1, this.z41_1, this.f42_1, this);
|
|
424
424
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
425
425
|
return suspendResult;
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
continue $sm;
|
|
429
429
|
case 5:
|
|
430
|
-
this.
|
|
430
|
+
this.b42_1 = suspendResult;
|
|
431
431
|
this.d9_1 = 2;
|
|
432
432
|
continue $sm;
|
|
433
433
|
case 6:
|
|
434
|
-
return this.
|
|
434
|
+
return this.b42_1;
|
|
435
435
|
case 7:
|
|
436
436
|
throw this.g9_1;
|
|
437
437
|
}
|
|
@@ -446,16 +446,16 @@
|
|
|
446
446
|
}
|
|
447
447
|
while (true);
|
|
448
448
|
};
|
|
449
|
-
protoOf(Auth$lambda$slambda_1).
|
|
450
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
451
|
-
i.
|
|
452
|
-
i.
|
|
449
|
+
protoOf(Auth$lambda$slambda_1).z3b = function ($this$on, originalRequest, completion) {
|
|
450
|
+
var i = new Auth$lambda$slambda_1(this.v41_1, this.w41_1, this.x41_1, completion);
|
|
451
|
+
i.y41_1 = $this$on;
|
|
452
|
+
i.z41_1 = originalRequest;
|
|
453
453
|
return i;
|
|
454
454
|
};
|
|
455
455
|
function Auth$lambda$slambda_2($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
456
456
|
var i = new Auth$lambda$slambda_1($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
457
457
|
var l = function ($this$on, originalRequest, $completion) {
|
|
458
|
-
return i.
|
|
458
|
+
return i.y3b($this$on, originalRequest, $completion);
|
|
459
459
|
};
|
|
460
460
|
l.$arity = 2;
|
|
461
461
|
return l;
|
|
@@ -471,11 +471,11 @@
|
|
|
471
471
|
}
|
|
472
472
|
function $invoke$refreshTokenIfNeededCOROUTINE$0(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
473
473
|
CoroutineImpl.call(this, resultContinuation);
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
474
|
+
this.v3z_1 = tokenVersions;
|
|
475
|
+
this.w3z_1 = tokenVersionsAttributeKey;
|
|
476
|
+
this.x3z_1 = call;
|
|
477
|
+
this.y3z_1 = provider;
|
|
478
|
+
this.z3z_1 = request;
|
|
479
479
|
}
|
|
480
480
|
protoOf($invoke$refreshTokenIfNeededCOROUTINE$0).l9 = function () {
|
|
481
481
|
var suspendResult = this.f9_1;
|
|
@@ -486,14 +486,14 @@
|
|
|
486
486
|
case 0:
|
|
487
487
|
this.e9_1 = 4;
|
|
488
488
|
var tmp_0 = this;
|
|
489
|
-
tmp_0.
|
|
489
|
+
tmp_0.a40_1 = this.v3z_1.d2c(this.y3z_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
490
490
|
var tmp_1 = this;
|
|
491
|
-
tmp_1.
|
|
492
|
-
this.
|
|
493
|
-
if (!(this.
|
|
494
|
-
get_LOGGER().
|
|
491
|
+
tmp_1.b40_1 = this.z3z_1.w2u_1.m26(this.w3z_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
492
|
+
this.c40_1 = this.b40_1.k2(this.y3z_1);
|
|
493
|
+
if (!(this.c40_1 == null) && this.c40_1 >= this.a40_1.l3z_1.kotlinx$atomicfu$value) {
|
|
494
|
+
get_LOGGER().l2c('Refreshing token for ' + this.x3z_1.a2x().d2x().toString());
|
|
495
495
|
this.d9_1 = 1;
|
|
496
|
-
suspendResult = this.
|
|
496
|
+
suspendResult = this.y3z_1.h42(this.x3z_1.r2t(), this);
|
|
497
497
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
498
498
|
return suspendResult;
|
|
499
499
|
}
|
|
@@ -506,12 +506,12 @@
|
|
|
506
506
|
case 1:
|
|
507
507
|
var ARGUMENT = suspendResult;
|
|
508
508
|
if (!ARGUMENT) {
|
|
509
|
-
get_LOGGER().
|
|
509
|
+
get_LOGGER().l2c('Refreshing token failed for ' + this.x3z_1.a2x().d2x().toString());
|
|
510
510
|
return false;
|
|
511
511
|
} else {
|
|
512
|
-
var this_0 = this.
|
|
513
|
-
var key = this.
|
|
514
|
-
var value = this.
|
|
512
|
+
var this_0 = this.b40_1;
|
|
513
|
+
var key = this.y3z_1;
|
|
514
|
+
var value = this.a40_1.l3z_1.atomicfu$incrementAndGet();
|
|
515
515
|
this_0.n2(key, value);
|
|
516
516
|
this.d9_1 = 2;
|
|
517
517
|
continue $sm;
|
|
@@ -538,11 +538,11 @@
|
|
|
538
538
|
};
|
|
539
539
|
function $invoke$executeWithNewTokenCOROUTINE$1(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
540
540
|
CoroutineImpl.call(this, resultContinuation);
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
541
|
+
this.l40_1 = _this__u8e3s4;
|
|
542
|
+
this.m40_1 = call;
|
|
543
|
+
this.n40_1 = provider;
|
|
544
|
+
this.o40_1 = oldRequest;
|
|
545
|
+
this.p40_1 = authHeader;
|
|
546
546
|
}
|
|
547
547
|
protoOf($invoke$executeWithNewTokenCOROUTINE$1).l9 = function () {
|
|
548
548
|
var suspendResult = this.f9_1;
|
|
@@ -552,20 +552,20 @@
|
|
|
552
552
|
switch (tmp) {
|
|
553
553
|
case 0:
|
|
554
554
|
this.e9_1 = 3;
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.q40_1 = new HttpRequestBuilder();
|
|
556
|
+
this.q40_1.p30(this.o40_1);
|
|
557
557
|
this.d9_1 = 1;
|
|
558
|
-
suspendResult = this.
|
|
558
|
+
suspendResult = this.n40_1.i42(this.q40_1, this.p40_1, this);
|
|
559
559
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
560
560
|
return suspendResult;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
continue $sm;
|
|
564
564
|
case 1:
|
|
565
|
-
this.
|
|
566
|
-
get_LOGGER().
|
|
565
|
+
this.q40_1.w2u_1.k26(get_AuthCircuitBreaker(), Unit_instance);
|
|
566
|
+
get_LOGGER().l2c('Sending new request to ' + this.m40_1.a2x().d2x().toString());
|
|
567
567
|
this.d9_1 = 2;
|
|
568
|
-
suspendResult = this.
|
|
568
|
+
suspendResult = this.l40_1.c3c(this.q40_1, this);
|
|
569
569
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
570
570
|
return suspendResult;
|
|
571
571
|
}
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
}
|
|
643
643
|
function $loadTokenCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
644
644
|
CoroutineImpl.call(this, resultContinuation);
|
|
645
|
-
this.
|
|
645
|
+
this.s42_1 = _this__u8e3s4;
|
|
646
646
|
}
|
|
647
647
|
protoOf($loadTokenCOROUTINE$2).l9 = function () {
|
|
648
648
|
var suspendResult = this.f9_1;
|
|
@@ -652,20 +652,20 @@
|
|
|
652
652
|
switch (tmp) {
|
|
653
653
|
case 0:
|
|
654
654
|
this.e9_1 = 5;
|
|
655
|
-
this.
|
|
655
|
+
this.u42_1 = null;
|
|
656
656
|
$l$loop: while (true) {
|
|
657
|
-
this.
|
|
658
|
-
var tmp0_elvis_lhs = this.
|
|
657
|
+
this.t42_1 = this.s42_1.x42_1.kotlinx$atomicfu$value;
|
|
658
|
+
var tmp0_elvis_lhs = this.t42_1;
|
|
659
659
|
var newValue = tmp0_elvis_lhs == null ? CompletableDeferred() : tmp0_elvis_lhs;
|
|
660
|
-
if (this.
|
|
661
|
-
this.
|
|
660
|
+
if (this.s42_1.x42_1.atomicfu$compareAndSet(this.t42_1, newValue)) {
|
|
661
|
+
this.u42_1 = newValue;
|
|
662
662
|
break $l$loop;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
if (!(this.
|
|
666
|
+
if (!(this.t42_1 == null)) {
|
|
667
667
|
this.d9_1 = 4;
|
|
668
|
-
suspendResult = this.
|
|
668
|
+
suspendResult = this.t42_1.dq(this);
|
|
669
669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
670
670
|
return suspendResult;
|
|
671
671
|
}
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
case 1:
|
|
679
679
|
this.e9_1 = 3;
|
|
680
680
|
this.d9_1 = 2;
|
|
681
|
-
suspendResult = this.
|
|
681
|
+
suspendResult = this.s42_1.v42_1(this);
|
|
682
682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
683
683
|
return suspendResult;
|
|
684
684
|
}
|
|
@@ -687,13 +687,13 @@
|
|
|
687
687
|
case 2:
|
|
688
688
|
var newTokens = suspendResult;
|
|
689
689
|
var tmp_0;
|
|
690
|
-
if (this.
|
|
690
|
+
if (this.u42_1 == null) {
|
|
691
691
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
692
692
|
} else {
|
|
693
|
-
tmp_0 = this.
|
|
693
|
+
tmp_0 = this.u42_1;
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
tmp_0.
|
|
696
|
+
tmp_0.bu(newTokens);
|
|
697
697
|
return newTokens;
|
|
698
698
|
case 3:
|
|
699
699
|
this.e9_1 = 5;
|
|
@@ -701,19 +701,19 @@
|
|
|
701
701
|
if (tmp_1 instanceof Error) {
|
|
702
702
|
var cause = this.g9_1;
|
|
703
703
|
var tmp_2;
|
|
704
|
-
if (this.
|
|
704
|
+
if (this.u42_1 == null) {
|
|
705
705
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
706
706
|
} else {
|
|
707
|
-
tmp_2 = this.
|
|
707
|
+
tmp_2 = this.u42_1;
|
|
708
708
|
}
|
|
709
|
-
tmp_2.
|
|
709
|
+
tmp_2.du(cause);
|
|
710
710
|
var tmp_3;
|
|
711
|
-
if (this.
|
|
711
|
+
if (this.u42_1 == null) {
|
|
712
712
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
713
713
|
} else {
|
|
714
|
-
tmp_3 = this.
|
|
714
|
+
tmp_3 = this.u42_1;
|
|
715
715
|
}
|
|
716
|
-
this.
|
|
716
|
+
this.s42_1.x42_1.atomicfu$compareAndSet(tmp_3, null);
|
|
717
717
|
throw cause;
|
|
718
718
|
} else {
|
|
719
719
|
throw this.g9_1;
|
|
@@ -737,8 +737,8 @@
|
|
|
737
737
|
};
|
|
738
738
|
function $setTokenCOROUTINE$3(_this__u8e3s4, block, resultContinuation) {
|
|
739
739
|
CoroutineImpl.call(this, resultContinuation);
|
|
740
|
-
this.
|
|
741
|
-
this.
|
|
740
|
+
this.g43_1 = _this__u8e3s4;
|
|
741
|
+
this.h43_1 = block;
|
|
742
742
|
}
|
|
743
743
|
protoOf($setTokenCOROUTINE$3).l9 = function () {
|
|
744
744
|
var suspendResult = this.f9_1;
|
|
@@ -748,28 +748,28 @@
|
|
|
748
748
|
switch (tmp) {
|
|
749
749
|
case 0:
|
|
750
750
|
this.e9_1 = 5;
|
|
751
|
-
this.
|
|
751
|
+
this.j43_1 = null;
|
|
752
752
|
$l$loop: while (true) {
|
|
753
|
-
this.
|
|
754
|
-
var tmp0_elvis_lhs = this.
|
|
753
|
+
this.i43_1 = this.g43_1.w42_1.kotlinx$atomicfu$value;
|
|
754
|
+
var tmp0_elvis_lhs = this.i43_1;
|
|
755
755
|
var newValue = tmp0_elvis_lhs == null ? CompletableDeferred() : tmp0_elvis_lhs;
|
|
756
|
-
if (this.
|
|
757
|
-
this.
|
|
756
|
+
if (this.g43_1.w42_1.atomicfu$compareAndSet(this.i43_1, newValue)) {
|
|
757
|
+
this.j43_1 = newValue;
|
|
758
758
|
break $l$loop;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
this.e9_1 = 4;
|
|
763
|
-
if (this.
|
|
763
|
+
if (this.i43_1 == null) {
|
|
764
764
|
this.d9_1 = 2;
|
|
765
|
-
suspendResult = this.
|
|
765
|
+
suspendResult = this.h43_1(this);
|
|
766
766
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
767
767
|
return suspendResult;
|
|
768
768
|
}
|
|
769
769
|
continue $sm;
|
|
770
770
|
} else {
|
|
771
771
|
this.d9_1 = 1;
|
|
772
|
-
suspendResult = this.
|
|
772
|
+
suspendResult = this.i43_1.dq(this);
|
|
773
773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
774
774
|
return suspendResult;
|
|
775
775
|
}
|
|
@@ -777,26 +777,26 @@
|
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
case 1:
|
|
780
|
-
this.
|
|
780
|
+
this.k43_1 = suspendResult;
|
|
781
781
|
this.d9_1 = 3;
|
|
782
782
|
continue $sm;
|
|
783
783
|
case 2:
|
|
784
784
|
var newTokens = suspendResult;
|
|
785
785
|
var tmp_0;
|
|
786
|
-
if (this.
|
|
786
|
+
if (this.j43_1 == null) {
|
|
787
787
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
788
788
|
} else {
|
|
789
|
-
tmp_0 = this.
|
|
789
|
+
tmp_0 = this.j43_1;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
tmp_0.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
792
|
+
tmp_0.bu(newTokens);
|
|
793
|
+
this.g43_1.w42_1.kotlinx$atomicfu$value = null;
|
|
794
|
+
this.k43_1 = newTokens;
|
|
795
795
|
this.d9_1 = 3;
|
|
796
796
|
continue $sm;
|
|
797
797
|
case 3:
|
|
798
|
-
var newToken = this.
|
|
799
|
-
this.
|
|
798
|
+
var newToken = this.k43_1;
|
|
799
|
+
this.g43_1.x42_1.kotlinx$atomicfu$value = CompletableDeferred_0(newToken);
|
|
800
800
|
return newToken;
|
|
801
801
|
case 4:
|
|
802
802
|
this.e9_1 = 5;
|
|
@@ -804,19 +804,19 @@
|
|
|
804
804
|
if (tmp_1 instanceof Error) {
|
|
805
805
|
var cause = this.g9_1;
|
|
806
806
|
var tmp_2;
|
|
807
|
-
if (this.
|
|
807
|
+
if (this.j43_1 == null) {
|
|
808
808
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
809
809
|
} else {
|
|
810
|
-
tmp_2 = this.
|
|
810
|
+
tmp_2 = this.j43_1;
|
|
811
811
|
}
|
|
812
|
-
tmp_2.
|
|
812
|
+
tmp_2.du(cause);
|
|
813
813
|
var tmp_3;
|
|
814
|
-
if (this.
|
|
814
|
+
if (this.j43_1 == null) {
|
|
815
815
|
throwUninitializedPropertyAccessException('newDeferred');
|
|
816
816
|
} else {
|
|
817
|
-
tmp_3 = this.
|
|
817
|
+
tmp_3 = this.j43_1;
|
|
818
818
|
}
|
|
819
|
-
this.
|
|
819
|
+
this.g43_1.w42_1.atomicfu$compareAndSet(tmp_3, null);
|
|
820
820
|
throw cause;
|
|
821
821
|
} else {
|
|
822
822
|
throw this.g9_1;
|
|
@@ -837,17 +837,17 @@
|
|
|
837
837
|
while (true);
|
|
838
838
|
};
|
|
839
839
|
function AuthTokenHolder(loadTokens) {
|
|
840
|
-
this.
|
|
841
|
-
this.v42_1 = atomic$ref$1(null);
|
|
840
|
+
this.v42_1 = loadTokens;
|
|
842
841
|
this.w42_1 = atomic$ref$1(null);
|
|
842
|
+
this.x42_1 = atomic$ref$1(null);
|
|
843
843
|
}
|
|
844
|
-
protoOf(AuthTokenHolder).
|
|
844
|
+
protoOf(AuthTokenHolder).l43 = function ($completion) {
|
|
845
845
|
var tmp = new $loadTokenCOROUTINE$2(this, $completion);
|
|
846
846
|
tmp.f9_1 = Unit_instance;
|
|
847
847
|
tmp.g9_1 = null;
|
|
848
848
|
return tmp.l9();
|
|
849
849
|
};
|
|
850
|
-
protoOf(AuthTokenHolder).
|
|
850
|
+
protoOf(AuthTokenHolder).m43 = function (block, $completion) {
|
|
851
851
|
var tmp = new $setTokenCOROUTINE$3(this, block, $completion);
|
|
852
852
|
tmp.f9_1 = Unit_instance;
|
|
853
853
|
tmp.g9_1 = null;
|
|
@@ -861,19 +861,19 @@
|
|
|
861
861
|
block(this_0);
|
|
862
862
|
// Inline function 'kotlin.contracts.contract' call
|
|
863
863
|
// Inline function 'io.ktor.client.plugins.auth.providers.bearer.<anonymous>' call
|
|
864
|
-
_this__u8e3s4.
|
|
864
|
+
_this__u8e3s4.k3z_1.k(new BearerAuthProvider(this_0.n43_1, this_0.o43_1, this_0.p43_1, this_0.q43_1));
|
|
865
865
|
}
|
|
866
866
|
function BearerAuthConfig$_refreshTokens$slambda(resultContinuation) {
|
|
867
867
|
CoroutineImpl.call(this, resultContinuation);
|
|
868
868
|
}
|
|
869
|
-
protoOf(BearerAuthConfig$_refreshTokens$slambda).
|
|
870
|
-
var tmp = this.
|
|
869
|
+
protoOf(BearerAuthConfig$_refreshTokens$slambda).a44 = function (_this__u8e3s4, $completion) {
|
|
870
|
+
var tmp = this.b44(_this__u8e3s4, $completion);
|
|
871
871
|
tmp.f9_1 = Unit_instance;
|
|
872
872
|
tmp.g9_1 = null;
|
|
873
873
|
return tmp.l9();
|
|
874
874
|
};
|
|
875
875
|
protoOf(BearerAuthConfig$_refreshTokens$slambda).v9 = function (p1, $completion) {
|
|
876
|
-
return this.
|
|
876
|
+
return this.a44(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
877
877
|
};
|
|
878
878
|
protoOf(BearerAuthConfig$_refreshTokens$slambda).l9 = function () {
|
|
879
879
|
var suspendResult = this.f9_1;
|
|
@@ -892,15 +892,15 @@
|
|
|
892
892
|
}
|
|
893
893
|
while (true);
|
|
894
894
|
};
|
|
895
|
-
protoOf(BearerAuthConfig$_refreshTokens$slambda).
|
|
895
|
+
protoOf(BearerAuthConfig$_refreshTokens$slambda).b44 = function (_this__u8e3s4, completion) {
|
|
896
896
|
var i = new BearerAuthConfig$_refreshTokens$slambda(completion);
|
|
897
|
-
i.
|
|
897
|
+
i.z43_1 = _this__u8e3s4;
|
|
898
898
|
return i;
|
|
899
899
|
};
|
|
900
900
|
function BearerAuthConfig$_refreshTokens$slambda_0(resultContinuation) {
|
|
901
901
|
var i = new BearerAuthConfig$_refreshTokens$slambda(resultContinuation);
|
|
902
902
|
var l = function (_this__u8e3s4, $completion) {
|
|
903
|
-
return i.
|
|
903
|
+
return i.a44(_this__u8e3s4, $completion);
|
|
904
904
|
};
|
|
905
905
|
l.$arity = 1;
|
|
906
906
|
return l;
|
|
@@ -908,14 +908,14 @@
|
|
|
908
908
|
function BearerAuthConfig$_loadTokens$slambda(resultContinuation) {
|
|
909
909
|
CoroutineImpl.call(this, resultContinuation);
|
|
910
910
|
}
|
|
911
|
-
protoOf(BearerAuthConfig$_loadTokens$slambda).
|
|
912
|
-
var tmp = this.
|
|
911
|
+
protoOf(BearerAuthConfig$_loadTokens$slambda).k44 = function ($completion) {
|
|
912
|
+
var tmp = this.l44($completion);
|
|
913
913
|
tmp.f9_1 = Unit_instance;
|
|
914
914
|
tmp.g9_1 = null;
|
|
915
915
|
return tmp.l9();
|
|
916
916
|
};
|
|
917
917
|
protoOf(BearerAuthConfig$_loadTokens$slambda).sa = function ($completion) {
|
|
918
|
-
return this.
|
|
918
|
+
return this.k44($completion);
|
|
919
919
|
};
|
|
920
920
|
protoOf(BearerAuthConfig$_loadTokens$slambda).l9 = function () {
|
|
921
921
|
var suspendResult = this.f9_1;
|
|
@@ -934,13 +934,13 @@
|
|
|
934
934
|
}
|
|
935
935
|
while (true);
|
|
936
936
|
};
|
|
937
|
-
protoOf(BearerAuthConfig$_loadTokens$slambda).
|
|
937
|
+
protoOf(BearerAuthConfig$_loadTokens$slambda).l44 = function (completion) {
|
|
938
938
|
return new BearerAuthConfig$_loadTokens$slambda(completion);
|
|
939
939
|
};
|
|
940
940
|
function BearerAuthConfig$_loadTokens$slambda_0(resultContinuation) {
|
|
941
941
|
var i = new BearerAuthConfig$_loadTokens$slambda(resultContinuation);
|
|
942
942
|
var l = function ($completion) {
|
|
943
|
-
return i.
|
|
943
|
+
return i.k44($completion);
|
|
944
944
|
};
|
|
945
945
|
l.$arity = 0;
|
|
946
946
|
return l;
|
|
@@ -950,53 +950,53 @@
|
|
|
950
950
|
}
|
|
951
951
|
function BearerAuthConfig() {
|
|
952
952
|
var tmp = this;
|
|
953
|
-
tmp.
|
|
953
|
+
tmp.n43_1 = BearerAuthConfig$_refreshTokens$slambda_0(null);
|
|
954
954
|
var tmp_0 = this;
|
|
955
|
-
tmp_0.
|
|
955
|
+
tmp_0.o43_1 = BearerAuthConfig$_loadTokens$slambda_0(null);
|
|
956
956
|
var tmp_1 = this;
|
|
957
|
-
tmp_1.
|
|
958
|
-
this.
|
|
957
|
+
tmp_1.p43_1 = BearerAuthConfig$_sendWithoutRequest$lambda;
|
|
958
|
+
this.q43_1 = null;
|
|
959
959
|
}
|
|
960
|
-
protoOf(BearerAuthConfig).
|
|
961
|
-
this.
|
|
960
|
+
protoOf(BearerAuthConfig).m44 = function (block) {
|
|
961
|
+
this.n43_1 = block;
|
|
962
962
|
};
|
|
963
963
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
964
|
+
this.n44_1 = client;
|
|
965
|
+
this.o44_1 = response;
|
|
966
|
+
this.p44_1 = oldTokens;
|
|
967
967
|
}
|
|
968
968
|
function BearerTokens(accessToken, refreshToken) {
|
|
969
|
-
this.
|
|
970
|
-
this.
|
|
969
|
+
this.q44_1 = accessToken;
|
|
970
|
+
this.r44_1 = refreshToken;
|
|
971
971
|
}
|
|
972
972
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
973
973
|
return true;
|
|
974
974
|
}
|
|
975
975
|
function BearerAuthProvider$addRequestHeaders$lambda($token) {
|
|
976
976
|
return function ($this$headers) {
|
|
977
|
-
var tokenValue = 'Bearer ' + $token.
|
|
977
|
+
var tokenValue = 'Bearer ' + $token.q44_1;
|
|
978
978
|
var tmp;
|
|
979
|
-
if ($this$headers.
|
|
980
|
-
$this$headers.
|
|
979
|
+
if ($this$headers.g28(HttpHeaders_getInstance().v2e_1)) {
|
|
980
|
+
$this$headers.n28(HttpHeaders_getInstance().v2e_1);
|
|
981
981
|
tmp = Unit_instance;
|
|
982
982
|
}
|
|
983
|
-
$this$headers.
|
|
983
|
+
$this$headers.k28(HttpHeaders_getInstance().v2e_1, tokenValue);
|
|
984
984
|
return Unit_instance;
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
987
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
988
|
+
this.a45_1 = this$0;
|
|
989
|
+
this.b45_1 = $response;
|
|
990
990
|
CoroutineImpl.call(this, resultContinuation);
|
|
991
991
|
}
|
|
992
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
993
|
-
var tmp = this.
|
|
992
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).g45 = function ($completion) {
|
|
993
|
+
var tmp = this.l44($completion);
|
|
994
994
|
tmp.f9_1 = Unit_instance;
|
|
995
995
|
tmp.g9_1 = null;
|
|
996
996
|
return tmp.l9();
|
|
997
997
|
};
|
|
998
998
|
protoOf(BearerAuthProvider$refreshToken$slambda).sa = function ($completion) {
|
|
999
|
-
return this.
|
|
999
|
+
return this.g45($completion);
|
|
1000
1000
|
};
|
|
1001
1001
|
protoOf(BearerAuthProvider$refreshToken$slambda).l9 = function () {
|
|
1002
1002
|
var suspendResult = this.f9_1;
|
|
@@ -1006,20 +1006,20 @@
|
|
|
1006
1006
|
switch (tmp) {
|
|
1007
1007
|
case 0:
|
|
1008
1008
|
this.e9_1 = 3;
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1009
|
+
this.c45_1 = this.a45_1.h45_1;
|
|
1010
|
+
this.d45_1 = this.b45_1.z2x().m2t_1;
|
|
1011
1011
|
this.d9_1 = 1;
|
|
1012
|
-
suspendResult = this.
|
|
1012
|
+
suspendResult = this.a45_1.k45_1.l43(this);
|
|
1013
1013
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1014
1014
|
return suspendResult;
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
continue $sm;
|
|
1018
1018
|
case 1:
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1019
|
+
this.e45_1 = suspendResult;
|
|
1020
|
+
this.f45_1 = new RefreshTokensParams(this.d45_1, this.b45_1, this.e45_1);
|
|
1021
1021
|
this.d9_1 = 2;
|
|
1022
|
-
suspendResult = this.
|
|
1022
|
+
suspendResult = this.c45_1(this.f45_1, this);
|
|
1023
1023
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1024
1024
|
return suspendResult;
|
|
1025
1025
|
}
|
|
@@ -1041,22 +1041,22 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
while (true);
|
|
1043
1043
|
};
|
|
1044
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1045
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1044
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).l44 = function (completion) {
|
|
1045
|
+
return new BearerAuthProvider$refreshToken$slambda(this.a45_1, this.b45_1, completion);
|
|
1046
1046
|
};
|
|
1047
1047
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1048
1048
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1049
1049
|
var l = function ($completion) {
|
|
1050
|
-
return i.
|
|
1050
|
+
return i.g45($completion);
|
|
1051
1051
|
};
|
|
1052
1052
|
l.$arity = 0;
|
|
1053
1053
|
return l;
|
|
1054
1054
|
}
|
|
1055
1055
|
function $addRequestHeadersCOROUTINE$4(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1056
1056
|
CoroutineImpl.call(this, resultContinuation);
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1057
|
+
this.t45_1 = _this__u8e3s4;
|
|
1058
|
+
this.u45_1 = request;
|
|
1059
|
+
this.v45_1 = authHeader;
|
|
1060
1060
|
}
|
|
1061
1061
|
protoOf($addRequestHeadersCOROUTINE$4).l9 = function () {
|
|
1062
1062
|
var suspendResult = this.f9_1;
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
case 0:
|
|
1068
1068
|
this.e9_1 = 2;
|
|
1069
1069
|
this.d9_1 = 1;
|
|
1070
|
-
suspendResult = this.
|
|
1070
|
+
suspendResult = this.t45_1.k45_1.l43(this);
|
|
1071
1071
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1072
1072
|
return suspendResult;
|
|
1073
1073
|
}
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
1085
|
var token = tmp_0;
|
|
1086
|
-
headers(this.
|
|
1086
|
+
headers(this.u45_1, BearerAuthProvider$addRequestHeaders$lambda(token));
|
|
1087
1087
|
return Unit_instance;
|
|
1088
1088
|
case 2:
|
|
1089
1089
|
throw this.g9_1;
|
|
@@ -1101,8 +1101,8 @@
|
|
|
1101
1101
|
};
|
|
1102
1102
|
function $refreshTokenCOROUTINE$5(_this__u8e3s4, response, resultContinuation) {
|
|
1103
1103
|
CoroutineImpl.call(this, resultContinuation);
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1104
|
+
this.e46_1 = _this__u8e3s4;
|
|
1105
|
+
this.f46_1 = response;
|
|
1106
1106
|
}
|
|
1107
1107
|
protoOf($refreshTokenCOROUTINE$5).l9 = function () {
|
|
1108
1108
|
var suspendResult = this.f9_1;
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
case 0:
|
|
1114
1114
|
this.e9_1 = 2;
|
|
1115
1115
|
this.d9_1 = 1;
|
|
1116
|
-
suspendResult = this.
|
|
1116
|
+
suspendResult = this.e46_1.k45_1.m43(BearerAuthProvider$refreshToken$slambda_0(this.e46_1, this.f46_1, null), this);
|
|
1117
1117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1118
1118
|
return suspendResult;
|
|
1119
1119
|
}
|
|
@@ -1144,53 +1144,53 @@
|
|
|
1144
1144
|
tmp = sendWithoutRequestCallback;
|
|
1145
1145
|
}
|
|
1146
1146
|
sendWithoutRequestCallback = tmp;
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1147
|
+
this.h45_1 = refreshTokens;
|
|
1148
|
+
this.i45_1 = sendWithoutRequestCallback;
|
|
1149
|
+
this.j45_1 = realm;
|
|
1150
|
+
this.k45_1 = new AuthTokenHolder(loadTokens);
|
|
1151
1151
|
}
|
|
1152
|
-
protoOf(BearerAuthProvider).
|
|
1152
|
+
protoOf(BearerAuthProvider).j42 = function () {
|
|
1153
1153
|
var message = 'Deprecated';
|
|
1154
1154
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(BearerAuthProvider).
|
|
1157
|
-
return this.
|
|
1156
|
+
protoOf(BearerAuthProvider).l41 = function (request) {
|
|
1157
|
+
return this.i45_1(request);
|
|
1158
1158
|
};
|
|
1159
|
-
protoOf(BearerAuthProvider).
|
|
1160
|
-
if (!(auth.
|
|
1161
|
-
get_LOGGER().
|
|
1159
|
+
protoOf(BearerAuthProvider).m3z = function (auth) {
|
|
1160
|
+
if (!(auth.y2n_1 === 'Bearer')) {
|
|
1161
|
+
get_LOGGER().l2c('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1162
1162
|
return false;
|
|
1163
1163
|
}
|
|
1164
1164
|
var tmp;
|
|
1165
|
-
if (this.
|
|
1165
|
+
if (this.j45_1 == null) {
|
|
1166
1166
|
tmp = true;
|
|
1167
1167
|
} else {
|
|
1168
1168
|
if (!(auth instanceof Parameterized)) {
|
|
1169
1169
|
tmp = false;
|
|
1170
1170
|
} else {
|
|
1171
|
-
tmp = auth.
|
|
1171
|
+
tmp = auth.h2e('realm') == this.j45_1;
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
var isSameRealm = tmp;
|
|
1175
1175
|
if (!isSameRealm) {
|
|
1176
|
-
get_LOGGER().
|
|
1176
|
+
get_LOGGER().l2c('Bearer Auth Provider is not applicable for this realm');
|
|
1177
1177
|
}
|
|
1178
1178
|
return isSameRealm;
|
|
1179
1179
|
};
|
|
1180
|
-
protoOf(BearerAuthProvider).
|
|
1180
|
+
protoOf(BearerAuthProvider).i42 = function (request, authHeader, $completion) {
|
|
1181
1181
|
var tmp = new $addRequestHeadersCOROUTINE$4(this, request, authHeader, $completion);
|
|
1182
1182
|
tmp.f9_1 = Unit_instance;
|
|
1183
1183
|
tmp.g9_1 = null;
|
|
1184
1184
|
return tmp.l9();
|
|
1185
1185
|
};
|
|
1186
|
-
protoOf(BearerAuthProvider).
|
|
1186
|
+
protoOf(BearerAuthProvider).h42 = function (response, $completion) {
|
|
1187
1187
|
var tmp = new $refreshTokenCOROUTINE$5(this, response, $completion);
|
|
1188
1188
|
tmp.f9_1 = Unit_instance;
|
|
1189
1189
|
tmp.g9_1 = null;
|
|
1190
1190
|
return tmp.l9();
|
|
1191
1191
|
};
|
|
1192
1192
|
//region block: post-declaration
|
|
1193
|
-
protoOf(BearerAuthProvider).
|
|
1193
|
+
protoOf(BearerAuthProvider).m41 = addRequestHeaders$default;
|
|
1194
1194
|
//endregion
|
|
1195
1195
|
//region block: exports
|
|
1196
1196
|
_.$_$ = _.$_$ || {};
|