@solibo/solibo-sdk 1.16.9 → 1.16.10
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/KmLogging-logging.mjs +98 -98
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/client.d.mts +4 -0
- package/client.mjs +23 -0
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +7 -7
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +190 -190
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +177 -177
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +238 -238
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +20 -20
- package/hash-library-md.mjs +30 -30
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs +220 -220
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +25972 -25586
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +22 -3
- package/solibo-sdk-sdk.mjs +4639 -4639
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -80,11 +80,11 @@ initMetadataForLambda(Auth$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
|
80
80
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
81
81
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
82
82
|
function sendWithoutRequest(request) {
|
|
83
|
-
return this.
|
|
83
|
+
return this.uxo();
|
|
84
84
|
}
|
|
85
85
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
86
86
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
87
|
-
return $super === VOID ? this.
|
|
87
|
+
return $super === VOID ? this.txo(request, authHeader, $completion) : $super.txo.call(this, request, authHeader, $completion);
|
|
88
88
|
}
|
|
89
89
|
function refreshToken(response, $completion) {
|
|
90
90
|
return true;
|
|
@@ -129,14 +129,14 @@ var AuthProvidersKey;
|
|
|
129
129
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
130
130
|
CoroutineImpl.call(this, resultContinuation);
|
|
131
131
|
}
|
|
132
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
132
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).axm = function (it, $completion) {
|
|
133
133
|
var tmp = this.n4x(it, $completion);
|
|
134
134
|
tmp.o9_1 = Unit_instance;
|
|
135
135
|
tmp.p9_1 = null;
|
|
136
136
|
return tmp.u9();
|
|
137
137
|
};
|
|
138
138
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).ha = function (p1, $completion) {
|
|
139
|
-
return this.
|
|
139
|
+
return this.axm(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
140
140
|
};
|
|
141
141
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function () {
|
|
142
142
|
var suspendResult = this.o9_1;
|
|
@@ -145,7 +145,7 @@ protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function () {
|
|
|
145
145
|
var tmp = this.m9_1;
|
|
146
146
|
if (tmp === 0) {
|
|
147
147
|
this.n9_1 = 1;
|
|
148
|
-
return this.
|
|
148
|
+
return this.zxl_1.e42().equals(Companion_getInstance().u3x_1);
|
|
149
149
|
} else if (tmp === 1) {
|
|
150
150
|
throw this.p9_1;
|
|
151
151
|
}
|
|
@@ -157,24 +157,24 @@ protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function () {
|
|
|
157
157
|
};
|
|
158
158
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).n4x = function (it, completion) {
|
|
159
159
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
160
|
-
i.
|
|
160
|
+
i.zxl_1 = it;
|
|
161
161
|
return i;
|
|
162
162
|
};
|
|
163
163
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
164
164
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
165
165
|
return constructCallableReference(function (it, $completion) {
|
|
166
|
-
return i.
|
|
166
|
+
return i.axm(it, $completion);
|
|
167
167
|
}, 1);
|
|
168
168
|
}
|
|
169
169
|
function AuthConfig() {
|
|
170
170
|
var tmp = this;
|
|
171
171
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
172
|
-
tmp.
|
|
172
|
+
tmp.bxm_1 = ArrayList_init_$Create$();
|
|
173
173
|
var tmp_0 = this;
|
|
174
|
-
tmp_0.
|
|
174
|
+
tmp_0.cxm_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
175
175
|
}
|
|
176
176
|
function AtomicCounter() {
|
|
177
|
-
this.
|
|
177
|
+
this.dxm_1 = atomic$int$1(0);
|
|
178
178
|
}
|
|
179
179
|
function get_authProviders(_this__u8e3s4) {
|
|
180
180
|
_init_properties_Auth_kt__9ob1dk();
|
|
@@ -188,7 +188,7 @@ function AuthConfig$_init_$ref_ms3pb9() {
|
|
|
188
188
|
}
|
|
189
189
|
function Auth$lambda($this$createClientPlugin) {
|
|
190
190
|
_init_properties_Auth_kt__9ob1dk();
|
|
191
|
-
var providers = toList($this$createClientPlugin.n4w_1.
|
|
191
|
+
var providers = toList($this$createClientPlugin.n4w_1.bxm_1);
|
|
192
192
|
$this$createClientPlugin.m4w_1.z4l_1.i3c(get_AuthProvidersKey(), providers);
|
|
193
193
|
var tokenVersions = new ConcurrentMap();
|
|
194
194
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
@@ -255,7 +255,7 @@ function invoke$findProvider(call, candidateProviders) {
|
|
|
255
255
|
var _iterator__ex2g4s_0 = authHeaders.t();
|
|
256
256
|
while (_iterator__ex2g4s_0.u()) {
|
|
257
257
|
var element = _iterator__ex2g4s_0.v();
|
|
258
|
-
if (provider.
|
|
258
|
+
if (provider.exm(element)) {
|
|
259
259
|
tmp$ret$3 = element;
|
|
260
260
|
break $l$block;
|
|
261
261
|
}
|
|
@@ -286,7 +286,7 @@ function invoke$findProvider(call, candidateProviders) {
|
|
|
286
286
|
var _iterator__ex2g4s_2 = candidateProviders.t();
|
|
287
287
|
while (_iterator__ex2g4s_2.u()) {
|
|
288
288
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
289
|
-
if (element_1.
|
|
289
|
+
if (element_1.exm(element_0)) {
|
|
290
290
|
tmp$ret$10 = element_1;
|
|
291
291
|
break $l$block_0;
|
|
292
292
|
}
|
|
@@ -333,9 +333,9 @@ function Auth$lambda$slambda$lambda_0() {
|
|
|
333
333
|
return LinkedHashMap_init_$Create$();
|
|
334
334
|
}
|
|
335
335
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
336
|
+
this.qxn_1 = $providers;
|
|
337
|
+
this.rxn_1 = $tokenVersions;
|
|
338
|
+
this.sxn_1 = $tokenVersionsAttributeKey;
|
|
339
339
|
CoroutineImpl.call(this, resultContinuation);
|
|
340
340
|
}
|
|
341
341
|
protoOf(Auth$lambda$slambda).e5c = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
@@ -357,37 +357,37 @@ protoOf(Auth$lambda$slambda).u9 = function () {
|
|
|
357
357
|
switch (tmp) {
|
|
358
358
|
case 0:
|
|
359
359
|
this.n9_1 = 4;
|
|
360
|
-
var tmp0 = this.
|
|
360
|
+
var tmp0 = this.qxn_1;
|
|
361
361
|
var destination = ArrayList_init_$Create$();
|
|
362
362
|
var _iterator__ex2g4s = tmp0.t();
|
|
363
363
|
while (_iterator__ex2g4s.u()) {
|
|
364
364
|
var element = _iterator__ex2g4s.v();
|
|
365
|
-
if (element.
|
|
365
|
+
if (element.xxn(this.uxn_1)) {
|
|
366
366
|
destination.e1(element);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
this.
|
|
370
|
+
this.wxn_1 = destination.t();
|
|
371
371
|
this.m9_1 = 1;
|
|
372
372
|
continue $sm;
|
|
373
373
|
case 1:
|
|
374
|
-
if (!this.
|
|
374
|
+
if (!this.wxn_1.u()) {
|
|
375
375
|
this.m9_1 = 3;
|
|
376
376
|
continue $sm;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
var element_0 = this.
|
|
379
|
+
var element_0 = this.wxn_1.v();
|
|
380
380
|
var this_0 = get_LOGGER();
|
|
381
381
|
if (get_isTraceEnabled(this_0)) {
|
|
382
|
-
this_0.z3m('Adding auth headers for ' + this.
|
|
382
|
+
this_0.z3m('Adding auth headers for ' + this.uxn_1.a4o_1.toString() + ' from provider ' + toString(element_0));
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
var tokenVersion = this.
|
|
386
|
-
var requestTokenVersions = this.
|
|
387
|
-
var value = tokenVersion.
|
|
385
|
+
var tokenVersion = this.rxn_1.h3i(element_0, Auth$lambda$slambda$lambda);
|
|
386
|
+
var requestTokenVersions = this.uxn_1.f4o_1.l3c(this.sxn_1, Auth$lambda$slambda$lambda_0);
|
|
387
|
+
var value = tokenVersion.dxm_1.kotlinx$atomicfu$value;
|
|
388
388
|
requestTokenVersions.d3(element_0, value);
|
|
389
389
|
this.m9_1 = 2;
|
|
390
|
-
suspendResult = element_0.
|
|
390
|
+
suspendResult = element_0.yxn(this.uxn_1, VOID, this);
|
|
391
391
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
392
392
|
return suspendResult;
|
|
393
393
|
}
|
|
@@ -413,10 +413,10 @@ protoOf(Auth$lambda$slambda).u9 = function () {
|
|
|
413
413
|
while (true);
|
|
414
414
|
};
|
|
415
415
|
protoOf(Auth$lambda$slambda).f5c = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
416
|
-
var i = new Auth$lambda$slambda(this.
|
|
417
|
-
i.
|
|
418
|
-
i.
|
|
419
|
-
i.
|
|
416
|
+
var i = new Auth$lambda$slambda(this.qxn_1, this.rxn_1, this.sxn_1, completion);
|
|
417
|
+
i.txn_1 = $this$onRequest;
|
|
418
|
+
i.uxn_1 = request;
|
|
419
|
+
i.vxn_1 = _unused_var__etf5q3;
|
|
420
420
|
return i;
|
|
421
421
|
};
|
|
422
422
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
@@ -426,10 +426,10 @@ function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttribu
|
|
|
426
426
|
}, 3);
|
|
427
427
|
}
|
|
428
428
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
429
|
+
this.hxo_1 = $this_createClientPlugin;
|
|
430
|
+
this.ixo_1 = $providers;
|
|
431
|
+
this.jxo_1 = $tokenVersions;
|
|
432
|
+
this.kxo_1 = $tokenVersionsAttributeKey;
|
|
433
433
|
CoroutineImpl.call(this, resultContinuation);
|
|
434
434
|
}
|
|
435
435
|
protoOf(Auth$lambda$slambda_1).o53 = function ($this$on, originalRequest, $completion) {
|
|
@@ -451,16 +451,16 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
451
451
|
case 0:
|
|
452
452
|
this.n9_1 = 10;
|
|
453
453
|
this.m9_1 = 1;
|
|
454
|
-
suspendResult = this.
|
|
454
|
+
suspendResult = this.lxo_1.s53(this.mxo_1, this);
|
|
455
455
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
456
456
|
return suspendResult;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
continue $sm;
|
|
460
460
|
case 1:
|
|
461
|
-
this.
|
|
461
|
+
this.rxo_1 = suspendResult;
|
|
462
462
|
this.m9_1 = 2;
|
|
463
|
-
suspendResult = this.
|
|
463
|
+
suspendResult = this.hxo_1.n4w_1.cxm_1(this.rxo_1.a4n(), this);
|
|
464
464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
465
|
return suspendResult;
|
|
466
466
|
}
|
|
@@ -468,22 +468,22 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
468
468
|
continue $sm;
|
|
469
469
|
case 2:
|
|
470
470
|
if (!suspendResult) {
|
|
471
|
-
return this.
|
|
471
|
+
return this.rxo_1;
|
|
472
472
|
} else {
|
|
473
473
|
this.m9_1 = 3;
|
|
474
474
|
continue $sm;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
case 3:
|
|
478
|
-
if (this.
|
|
479
|
-
return this.
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
478
|
+
if (this.rxo_1.k4p().l4p().h3c(get_AuthCircuitBreaker()))
|
|
479
|
+
return this.rxo_1;
|
|
480
|
+
this.nxo_1 = this.rxo_1;
|
|
481
|
+
this.qxo_1 = HashSet_init_$Create$(this.ixo_1);
|
|
482
482
|
this.m9_1 = 4;
|
|
483
483
|
continue $sm;
|
|
484
484
|
case 4:
|
|
485
485
|
this.m9_1 = 5;
|
|
486
|
-
suspendResult = this.
|
|
486
|
+
suspendResult = this.hxo_1.n4w_1.cxm_1(this.nxo_1.a4n(), this);
|
|
487
487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
488
488
|
return suspendResult;
|
|
489
489
|
}
|
|
@@ -497,33 +497,33 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
497
497
|
|
|
498
498
|
var this_0 = get_LOGGER();
|
|
499
499
|
if (get_isTraceEnabled(this_0)) {
|
|
500
|
-
this_0.z3m('Unauthorized response for ' + this.
|
|
500
|
+
this_0.z3m('Unauthorized response for ' + this.nxo_1.k4p().u4p().toString());
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
503
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.nxo_1, this.qxo_1);
|
|
504
504
|
var tmp_0;
|
|
505
505
|
if (tmp0_elvis_lhs == null) {
|
|
506
|
-
this.
|
|
506
|
+
this.lxo_1;
|
|
507
507
|
var this_1 = get_LOGGER();
|
|
508
508
|
if (get_isTraceEnabled(this_1)) {
|
|
509
|
-
this_1.z3m('Can not find auth provider for ' + this.
|
|
509
|
+
this_1.z3m('Can not find auth provider for ' + this.nxo_1.k4p().u4p().toString());
|
|
510
510
|
}
|
|
511
|
-
return this.
|
|
511
|
+
return this.nxo_1;
|
|
512
512
|
} else {
|
|
513
513
|
tmp_0 = tmp0_elvis_lhs;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
var _destruct__k2r9zo = tmp_0;
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
517
|
+
this.pxo_1 = _destruct__k2r9zo.gh();
|
|
518
|
+
this.oxo_1 = _destruct__k2r9zo.hh();
|
|
519
519
|
var this_2 = get_LOGGER();
|
|
520
520
|
if (get_isTraceEnabled(this_2)) {
|
|
521
|
-
this_2.z3m('Using provider ' + toString(this.
|
|
521
|
+
this_2.z3m('Using provider ' + toString(this.pxo_1) + ' for ' + this.nxo_1.k4p().u4p().toString());
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
this.
|
|
524
|
+
this.qxo_1.h3(this.pxo_1);
|
|
525
525
|
this.m9_1 = 6;
|
|
526
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
526
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.jxo_1, this.kxo_1, this.nxo_1, this.pxo_1, this.mxo_1, this);
|
|
527
527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
528
528
|
return suspendResult;
|
|
529
529
|
}
|
|
@@ -531,7 +531,7 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
531
531
|
continue $sm;
|
|
532
532
|
case 6:
|
|
533
533
|
if (!suspendResult) {
|
|
534
|
-
return this.
|
|
534
|
+
return this.nxo_1;
|
|
535
535
|
} else {
|
|
536
536
|
this.m9_1 = 7;
|
|
537
537
|
continue $sm;
|
|
@@ -539,18 +539,18 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
539
539
|
|
|
540
540
|
case 7:
|
|
541
541
|
this.m9_1 = 8;
|
|
542
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
542
|
+
suspendResult = invoke$executeWithNewToken(this.lxo_1, this.nxo_1, this.pxo_1, this.mxo_1, this.oxo_1, this);
|
|
543
543
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
544
544
|
return suspendResult;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
continue $sm;
|
|
548
548
|
case 8:
|
|
549
|
-
this.
|
|
549
|
+
this.nxo_1 = suspendResult;
|
|
550
550
|
this.m9_1 = 4;
|
|
551
551
|
continue $sm;
|
|
552
552
|
case 9:
|
|
553
|
-
return this.
|
|
553
|
+
return this.nxo_1;
|
|
554
554
|
case 10:
|
|
555
555
|
throw this.p9_1;
|
|
556
556
|
}
|
|
@@ -566,9 +566,9 @@ protoOf(Auth$lambda$slambda_1).u9 = function () {
|
|
|
566
566
|
while (true);
|
|
567
567
|
};
|
|
568
568
|
protoOf(Auth$lambda$slambda_1).p53 = function ($this$on, originalRequest, completion) {
|
|
569
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
570
|
-
i.
|
|
571
|
-
i.
|
|
569
|
+
var i = new Auth$lambda$slambda_1(this.hxo_1, this.ixo_1, this.jxo_1, this.kxo_1, completion);
|
|
570
|
+
i.lxo_1 = $this$on;
|
|
571
|
+
i.mxo_1 = originalRequest;
|
|
572
572
|
return i;
|
|
573
573
|
};
|
|
574
574
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
@@ -579,11 +579,11 @@ function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersi
|
|
|
579
579
|
}
|
|
580
580
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
581
581
|
CoroutineImpl.call(this, resultContinuation);
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
582
|
+
this.nxm_1 = tokenVersions;
|
|
583
|
+
this.oxm_1 = tokenVersionsAttributeKey;
|
|
584
|
+
this.pxm_1 = call;
|
|
585
|
+
this.qxm_1 = provider;
|
|
586
|
+
this.rxm_1 = request;
|
|
587
587
|
}
|
|
588
588
|
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).u9 = function () {
|
|
589
589
|
var suspendResult = this.o9_1;
|
|
@@ -594,17 +594,17 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).u9 = function () {
|
|
|
594
594
|
case 0:
|
|
595
595
|
this.n9_1 = 4;
|
|
596
596
|
var tmp_0 = this;
|
|
597
|
-
tmp_0.
|
|
597
|
+
tmp_0.sxm_1 = this.nxm_1.h3i(this.qxm_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
598
598
|
var tmp_1 = this;
|
|
599
|
-
tmp_1.
|
|
600
|
-
var requestTokenVersion = this.
|
|
601
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
599
|
+
tmp_1.txm_1 = this.rxm_1.f4o_1.l3c(this.oxm_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
600
|
+
var requestTokenVersion = this.txm_1.a3(this.qxm_1);
|
|
601
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.sxm_1.dxm_1.kotlinx$atomicfu$value) {
|
|
602
602
|
var this_0 = get_LOGGER();
|
|
603
603
|
if (get_isTraceEnabled(this_0)) {
|
|
604
|
-
this_0.z3m('Refreshing token for ' + this.
|
|
604
|
+
this_0.z3m('Refreshing token for ' + this.pxm_1.k4p().u4p().toString());
|
|
605
605
|
}
|
|
606
606
|
this.m9_1 = 1;
|
|
607
|
-
suspendResult = this.
|
|
607
|
+
suspendResult = this.qxm_1.sxo(this.pxm_1.a4n(), this);
|
|
608
608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
609
|
return suspendResult;
|
|
610
610
|
}
|
|
@@ -618,13 +618,13 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).u9 = function () {
|
|
|
618
618
|
if (!suspendResult) {
|
|
619
619
|
var this_1 = get_LOGGER();
|
|
620
620
|
if (get_isTraceEnabled(this_1)) {
|
|
621
|
-
this_1.z3m('Refreshing token failed for ' + this.
|
|
621
|
+
this_1.z3m('Refreshing token failed for ' + this.pxm_1.k4p().u4p().toString());
|
|
622
622
|
}
|
|
623
623
|
return false;
|
|
624
624
|
} else {
|
|
625
|
-
var tmp0 = this.
|
|
626
|
-
var tmp2 = this.
|
|
627
|
-
var value = this.
|
|
625
|
+
var tmp0 = this.txm_1;
|
|
626
|
+
var tmp2 = this.qxm_1;
|
|
627
|
+
var value = this.sxm_1.dxm_1.atomicfu$incrementAndGet();
|
|
628
628
|
tmp0.d3(tmp2, value);
|
|
629
629
|
this.m9_1 = 2;
|
|
630
630
|
continue $sm;
|
|
@@ -651,11 +651,11 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).u9 = function () {
|
|
|
651
651
|
};
|
|
652
652
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
653
653
|
CoroutineImpl.call(this, resultContinuation);
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
654
|
+
this.cxn_1 = _this__u8e3s4;
|
|
655
|
+
this.dxn_1 = call;
|
|
656
|
+
this.exn_1 = provider;
|
|
657
|
+
this.fxn_1 = oldRequest;
|
|
658
|
+
this.gxn_1 = authHeader;
|
|
659
659
|
}
|
|
660
660
|
protoOf($invoke$executeWithNewTokenCOROUTINE$).u9 = function () {
|
|
661
661
|
var suspendResult = this.o9_1;
|
|
@@ -665,24 +665,24 @@ protoOf($invoke$executeWithNewTokenCOROUTINE$).u9 = function () {
|
|
|
665
665
|
switch (tmp) {
|
|
666
666
|
case 0:
|
|
667
667
|
this.n9_1 = 3;
|
|
668
|
-
this.
|
|
669
|
-
this.
|
|
668
|
+
this.hxn_1 = new HttpRequestBuilder();
|
|
669
|
+
this.hxn_1.g4u(this.fxn_1);
|
|
670
670
|
this.m9_1 = 1;
|
|
671
|
-
suspendResult = this.
|
|
671
|
+
suspendResult = this.exn_1.txo(this.hxn_1, this.gxn_1, this);
|
|
672
672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
673
673
|
return suspendResult;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
continue $sm;
|
|
677
677
|
case 1:
|
|
678
|
-
this.
|
|
678
|
+
this.hxn_1.f4o_1.i3c(get_AuthCircuitBreaker(), Unit_instance);
|
|
679
679
|
var this_0 = get_LOGGER();
|
|
680
680
|
if (get_isTraceEnabled(this_0)) {
|
|
681
|
-
this_0.z3m('Sending new request to ' + this.
|
|
681
|
+
this_0.z3m('Sending new request to ' + this.dxn_1.k4p().u4p().toString());
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
this.m9_1 = 2;
|
|
685
|
-
suspendResult = this.
|
|
685
|
+
suspendResult = this.cxn_1.s53(this.hxn_1, this);
|
|
686
686
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
687
687
|
return suspendResult;
|
|
688
688
|
}
|
|
@@ -769,20 +769,20 @@ protoOf(SetTokenContext).m1 = function () {
|
|
|
769
769
|
return Companion_instance;
|
|
770
770
|
};
|
|
771
771
|
function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
772
|
+
this.dxp_1 = this$0;
|
|
773
|
+
this.exp_1 = $prevValue;
|
|
774
|
+
this.fxp_1 = $lockedByLoad;
|
|
775
|
+
this.gxp_1 = $block;
|
|
776
776
|
CoroutineImpl.call(this, resultContinuation);
|
|
777
777
|
}
|
|
778
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
778
|
+
protoOf(AuthTokenHolder$setToken$slambda).lxp = function ($this$withContext, $completion) {
|
|
779
779
|
var tmp = this.a2m($this$withContext, $completion);
|
|
780
780
|
tmp.o9_1 = Unit_instance;
|
|
781
781
|
tmp.p9_1 = null;
|
|
782
782
|
return tmp.u9();
|
|
783
783
|
};
|
|
784
784
|
protoOf(AuthTokenHolder$setToken$slambda).ha = function (p1, $completion) {
|
|
785
|
-
return this.
|
|
785
|
+
return this.lxp((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
786
786
|
};
|
|
787
787
|
protoOf(AuthTokenHolder$setToken$slambda).u9 = function () {
|
|
788
788
|
var suspendResult = this.o9_1;
|
|
@@ -792,24 +792,24 @@ protoOf(AuthTokenHolder$setToken$slambda).u9 = function () {
|
|
|
792
792
|
switch (tmp) {
|
|
793
793
|
case 0:
|
|
794
794
|
this.n9_1 = 7;
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
795
|
+
this.jxp_1 = this.dxp_1.qxp_1;
|
|
796
|
+
this.ixp_1 = null;
|
|
797
797
|
this.m9_1 = 1;
|
|
798
|
-
suspendResult = this.
|
|
798
|
+
suspendResult = this.jxp_1.y2q(this.ixp_1, this);
|
|
799
799
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
800
800
|
return suspendResult;
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
continue $sm;
|
|
804
804
|
case 1:
|
|
805
|
-
this.
|
|
805
|
+
this.kxp_1 = Unit_instance;
|
|
806
806
|
this.m9_1 = 2;
|
|
807
807
|
continue $sm;
|
|
808
808
|
case 2:
|
|
809
809
|
this.n9_1 = 6;
|
|
810
|
-
if (equals(this.
|
|
810
|
+
if (equals(this.exp_1, this.dxp_1.oxp_1) || this.fxp_1) {
|
|
811
811
|
this.m9_1 = 3;
|
|
812
|
-
suspendResult = this.
|
|
812
|
+
suspendResult = this.gxp_1(this);
|
|
813
813
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
814
814
|
return suspendResult;
|
|
815
815
|
}
|
|
@@ -821,23 +821,23 @@ protoOf(AuthTokenHolder$setToken$slambda).u9 = function () {
|
|
|
821
821
|
|
|
822
822
|
case 3:
|
|
823
823
|
var ARGUMENT = suspendResult;
|
|
824
|
-
this.
|
|
824
|
+
this.dxp_1.oxp_1 = ARGUMENT;
|
|
825
825
|
this.m9_1 = 4;
|
|
826
826
|
continue $sm;
|
|
827
827
|
case 4:
|
|
828
|
-
this.
|
|
828
|
+
this.kxp_1 = this.dxp_1.oxp_1;
|
|
829
829
|
this.n9_1 = 7;
|
|
830
830
|
this.m9_1 = 5;
|
|
831
831
|
continue $sm;
|
|
832
832
|
case 5:
|
|
833
|
-
var tmp_0 = this.
|
|
833
|
+
var tmp_0 = this.kxp_1;
|
|
834
834
|
this.n9_1 = 7;
|
|
835
|
-
this.
|
|
835
|
+
this.jxp_1.z2q(this.ixp_1);
|
|
836
836
|
return tmp_0;
|
|
837
837
|
case 6:
|
|
838
838
|
this.n9_1 = 7;
|
|
839
839
|
var t = this.p9_1;
|
|
840
|
-
this.
|
|
840
|
+
this.jxp_1.z2q(this.ixp_1);
|
|
841
841
|
throw t;
|
|
842
842
|
case 7:
|
|
843
843
|
throw this.p9_1;
|
|
@@ -854,18 +854,18 @@ protoOf(AuthTokenHolder$setToken$slambda).u9 = function () {
|
|
|
854
854
|
while (true);
|
|
855
855
|
};
|
|
856
856
|
protoOf(AuthTokenHolder$setToken$slambda).a2m = function ($this$withContext, completion) {
|
|
857
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
858
|
-
i.
|
|
857
|
+
var i = new AuthTokenHolder$setToken$slambda(this.dxp_1, this.exp_1, this.fxp_1, this.gxp_1, completion);
|
|
858
|
+
i.hxp_1 = $this$withContext;
|
|
859
859
|
return i;
|
|
860
860
|
};
|
|
861
861
|
function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
862
862
|
var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
|
|
863
863
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
864
|
-
return i.
|
|
864
|
+
return i.lxp($this$withContext, $completion);
|
|
865
865
|
}, 1);
|
|
866
866
|
}
|
|
867
867
|
function AuthTokenHolder$clearToken$slambda(this$0, resultContinuation) {
|
|
868
|
-
this.
|
|
868
|
+
this.axq_1 = this$0;
|
|
869
869
|
CoroutineImpl.call(this, resultContinuation);
|
|
870
870
|
}
|
|
871
871
|
protoOf(AuthTokenHolder$clearToken$slambda).z2l = function ($this$launch, $completion) {
|
|
@@ -885,10 +885,10 @@ protoOf(AuthTokenHolder$clearToken$slambda).u9 = function () {
|
|
|
885
885
|
switch (tmp) {
|
|
886
886
|
case 0:
|
|
887
887
|
this.n9_1 = 2;
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
888
|
+
this.dxq_1 = this.axq_1.qxp_1;
|
|
889
|
+
this.cxq_1 = null;
|
|
890
890
|
this.m9_1 = 1;
|
|
891
|
-
suspendResult = this.
|
|
891
|
+
suspendResult = this.dxq_1.y2q(this.cxq_1, this);
|
|
892
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
893
|
return suspendResult;
|
|
894
894
|
}
|
|
@@ -898,17 +898,17 @@ protoOf(AuthTokenHolder$clearToken$slambda).u9 = function () {
|
|
|
898
898
|
l$ret$1: do {
|
|
899
899
|
var tmp_0;
|
|
900
900
|
try {
|
|
901
|
-
this.
|
|
901
|
+
this.axq_1.oxp_1 = null;
|
|
902
902
|
break l$ret$1;
|
|
903
903
|
} catch ($p) {
|
|
904
904
|
var tmp_1;
|
|
905
905
|
var t = $p;
|
|
906
|
-
this.
|
|
906
|
+
this.dxq_1.z2q(this.cxq_1);
|
|
907
907
|
throw t;
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
while (false);
|
|
911
|
-
this.
|
|
911
|
+
this.dxq_1.z2q(this.cxq_1);
|
|
912
912
|
return Unit_instance;
|
|
913
913
|
case 2:
|
|
914
914
|
throw this.p9_1;
|
|
@@ -925,8 +925,8 @@ protoOf(AuthTokenHolder$clearToken$slambda).u9 = function () {
|
|
|
925
925
|
while (true);
|
|
926
926
|
};
|
|
927
927
|
protoOf(AuthTokenHolder$clearToken$slambda).a2m = function ($this$launch, completion) {
|
|
928
|
-
var i = new AuthTokenHolder$clearToken$slambda(this.
|
|
929
|
-
i.
|
|
928
|
+
var i = new AuthTokenHolder$clearToken$slambda(this.axq_1, completion);
|
|
929
|
+
i.bxq_1 = $this$launch;
|
|
930
930
|
return i;
|
|
931
931
|
};
|
|
932
932
|
function AuthTokenHolder$clearToken$slambda_0(this$0, resultContinuation) {
|
|
@@ -937,7 +937,7 @@ function AuthTokenHolder$clearToken$slambda_0(this$0, resultContinuation) {
|
|
|
937
937
|
}
|
|
938
938
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
939
939
|
CoroutineImpl.call(this, resultContinuation);
|
|
940
|
-
this.
|
|
940
|
+
this.mxq_1 = _this__u8e3s4;
|
|
941
941
|
}
|
|
942
942
|
protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
943
943
|
var suspendResult = this.o9_1;
|
|
@@ -947,9 +947,9 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
947
947
|
switch (tmp) {
|
|
948
948
|
case 0:
|
|
949
949
|
this.n9_1 = 14;
|
|
950
|
-
if (!this.
|
|
950
|
+
if (!this.mxq_1.nxp_1) {
|
|
951
951
|
this.m9_1 = 13;
|
|
952
|
-
suspendResult = this.
|
|
952
|
+
suspendResult = this.mxq_1.mxp_1(this);
|
|
953
953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
954
954
|
return suspendResult;
|
|
955
955
|
}
|
|
@@ -960,21 +960,21 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
case 1:
|
|
963
|
-
if (!(this.
|
|
964
|
-
return this.
|
|
965
|
-
this.
|
|
963
|
+
if (!(this.mxq_1.oxp_1 == null))
|
|
964
|
+
return this.mxq_1.oxp_1;
|
|
965
|
+
this.rxq_1 = this.mxq_1.oxp_1;
|
|
966
966
|
if (!(this.s9().z9(Companion_instance) == null)) {
|
|
967
967
|
this.m9_1 = 11;
|
|
968
|
-
suspendResult = this.
|
|
968
|
+
suspendResult = this.mxq_1.mxp_1(this);
|
|
969
969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
970
970
|
return suspendResult;
|
|
971
971
|
}
|
|
972
972
|
continue $sm;
|
|
973
973
|
} else {
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
974
|
+
this.pxq_1 = this.mxq_1.qxp_1;
|
|
975
|
+
this.oxq_1 = null;
|
|
976
976
|
this.m9_1 = 2;
|
|
977
|
-
suspendResult = this.
|
|
977
|
+
suspendResult = this.pxq_1.y2q(this.oxq_1, this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
@@ -982,19 +982,19 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
case 2:
|
|
985
|
-
this.
|
|
985
|
+
this.qxq_1 = Unit_instance;
|
|
986
986
|
this.m9_1 = 3;
|
|
987
987
|
continue $sm;
|
|
988
988
|
case 3:
|
|
989
989
|
this.n9_1 = 10;
|
|
990
|
-
this.
|
|
990
|
+
this.mxq_1.pxp_1 = true;
|
|
991
991
|
this.m9_1 = 4;
|
|
992
992
|
continue $sm;
|
|
993
993
|
case 4:
|
|
994
994
|
this.n9_1 = 9;
|
|
995
|
-
if (equals(this.
|
|
995
|
+
if (equals(this.rxq_1, this.mxq_1.oxp_1)) {
|
|
996
996
|
this.m9_1 = 5;
|
|
997
|
-
suspendResult = this.
|
|
997
|
+
suspendResult = this.mxq_1.mxp_1(this);
|
|
998
998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
999
999
|
return suspendResult;
|
|
1000
1000
|
}
|
|
@@ -1006,7 +1006,7 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
1006
1006
|
|
|
1007
1007
|
case 5:
|
|
1008
1008
|
var ARGUMENT = suspendResult;
|
|
1009
|
-
this.
|
|
1009
|
+
this.mxq_1.oxp_1 = ARGUMENT;
|
|
1010
1010
|
this.m9_1 = 6;
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
case 6:
|
|
@@ -1014,36 +1014,36 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
1014
1014
|
continue $sm;
|
|
1015
1015
|
case 7:
|
|
1016
1016
|
this.n9_1 = 10;
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1017
|
+
this.mxq_1.pxp_1 = false;
|
|
1018
|
+
this.qxq_1 = this.mxq_1.oxp_1;
|
|
1019
1019
|
this.n9_1 = 14;
|
|
1020
1020
|
this.m9_1 = 8;
|
|
1021
1021
|
continue $sm;
|
|
1022
1022
|
case 8:
|
|
1023
|
-
var tmp_0 = this.
|
|
1023
|
+
var tmp_0 = this.qxq_1;
|
|
1024
1024
|
this.n9_1 = 14;
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1025
|
+
this.pxq_1.z2q(this.oxq_1);
|
|
1026
|
+
this.nxq_1 = tmp_0;
|
|
1027
1027
|
this.m9_1 = 12;
|
|
1028
1028
|
continue $sm;
|
|
1029
1029
|
case 9:
|
|
1030
1030
|
this.n9_1 = 10;
|
|
1031
1031
|
var t = this.p9_1;
|
|
1032
|
-
this.
|
|
1032
|
+
this.mxq_1.pxp_1 = false;
|
|
1033
1033
|
throw t;
|
|
1034
1034
|
case 10:
|
|
1035
1035
|
this.n9_1 = 14;
|
|
1036
1036
|
var t_0 = this.p9_1;
|
|
1037
|
-
this.
|
|
1037
|
+
this.pxq_1.z2q(this.oxq_1);
|
|
1038
1038
|
throw t_0;
|
|
1039
1039
|
case 11:
|
|
1040
1040
|
var ARGUMENT_0 = suspendResult;
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1041
|
+
this.mxq_1.oxp_1 = ARGUMENT_0;
|
|
1042
|
+
this.nxq_1 = this.mxq_1.oxp_1;
|
|
1043
1043
|
this.m9_1 = 12;
|
|
1044
1044
|
continue $sm;
|
|
1045
1045
|
case 12:
|
|
1046
|
-
return this.
|
|
1046
|
+
return this.nxq_1;
|
|
1047
1047
|
case 13:
|
|
1048
1048
|
return suspendResult;
|
|
1049
1049
|
case 14:
|
|
@@ -1062,74 +1062,74 @@ protoOf($loadTokenCOROUTINE$).u9 = function () {
|
|
|
1062
1062
|
};
|
|
1063
1063
|
function AuthTokenHolder(loadTokens, cacheTokens) {
|
|
1064
1064
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1065
|
-
this.
|
|
1066
|
-
this.
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1065
|
+
this.mxp_1 = loadTokens;
|
|
1066
|
+
this.nxp_1 = cacheTokens;
|
|
1067
|
+
this.oxp_1 = null;
|
|
1068
|
+
this.pxp_1 = false;
|
|
1069
|
+
this.qxp_1 = Mutex();
|
|
1070
|
+
this.rxp_1 = new SetTokenContext();
|
|
1071
1071
|
}
|
|
1072
|
-
protoOf(AuthTokenHolder).
|
|
1072
|
+
protoOf(AuthTokenHolder).sxq = function ($completion) {
|
|
1073
1073
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1074
1074
|
tmp.o9_1 = Unit_instance;
|
|
1075
1075
|
tmp.p9_1 = null;
|
|
1076
1076
|
return tmp.u9();
|
|
1077
1077
|
};
|
|
1078
|
-
protoOf(AuthTokenHolder).
|
|
1079
|
-
var prevValue = this.
|
|
1080
|
-
var lockedByLoad = this.
|
|
1078
|
+
protoOf(AuthTokenHolder).txq = function (nonCancellable, block, $completion) {
|
|
1079
|
+
var prevValue = this.oxp_1;
|
|
1080
|
+
var lockedByLoad = this.pxp_1;
|
|
1081
1081
|
var tmp;
|
|
1082
1082
|
if (nonCancellable) {
|
|
1083
1083
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1084
|
-
tmp = $completion.s9().ik(NonCancellable_getInstance()).ik(this.
|
|
1084
|
+
tmp = $completion.s9().ik(NonCancellable_getInstance()).ik(this.rxp_1);
|
|
1085
1085
|
} else {
|
|
1086
1086
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1087
|
-
tmp = $completion.s9().ik(this.
|
|
1087
|
+
tmp = $completion.s9().ik(this.rxp_1);
|
|
1088
1088
|
}
|
|
1089
1089
|
var context = tmp;
|
|
1090
1090
|
return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(AuthTokenHolder).
|
|
1093
|
-
if (this.
|
|
1094
|
-
this.
|
|
1095
|
-
this.
|
|
1092
|
+
protoOf(AuthTokenHolder).uxq = function (coroutineScope) {
|
|
1093
|
+
if (this.qxp_1.x2q()) {
|
|
1094
|
+
this.oxp_1 = null;
|
|
1095
|
+
this.qxp_1.a2r();
|
|
1096
1096
|
} else {
|
|
1097
1097
|
launch(coroutineScope, VOID, VOID, AuthTokenHolder$clearToken$slambda_0(this, null));
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
protoOf(AuthTokenHolder).
|
|
1100
|
+
protoOf(AuthTokenHolder).vxq = function (coroutineScope, $super) {
|
|
1101
1101
|
coroutineScope = coroutineScope === VOID ? GlobalScope_instance : coroutineScope;
|
|
1102
1102
|
var tmp;
|
|
1103
1103
|
if ($super === VOID) {
|
|
1104
|
-
this.
|
|
1104
|
+
this.uxq(coroutineScope);
|
|
1105
1105
|
tmp = Unit_instance;
|
|
1106
1106
|
} else {
|
|
1107
|
-
tmp = $super.
|
|
1107
|
+
tmp = $super.uxq.call(this, coroutineScope);
|
|
1108
1108
|
}
|
|
1109
1109
|
return tmp;
|
|
1110
1110
|
};
|
|
1111
1111
|
function BearerTokens(accessToken, refreshToken) {
|
|
1112
|
-
this.
|
|
1113
|
-
this.
|
|
1112
|
+
this.wxq_1 = accessToken;
|
|
1113
|
+
this.xxq_1 = refreshToken;
|
|
1114
1114
|
}
|
|
1115
1115
|
function bearer(_this__u8e3s4, block) {
|
|
1116
1116
|
// Inline function 'kotlin.apply' call
|
|
1117
1117
|
var this_0 = new BearerAuthConfig();
|
|
1118
1118
|
block(this_0);
|
|
1119
1119
|
// Inline function 'kotlin.with' call
|
|
1120
|
-
_this__u8e3s4.
|
|
1120
|
+
_this__u8e3s4.bxm_1.e1(new BearerAuthProvider(this_0.yxq_1, this_0.zxq_1, this_0.axr_1, this_0.bxr_1, this_0.cxr_1, this_0.dxr_1));
|
|
1121
1121
|
}
|
|
1122
1122
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1123
1123
|
CoroutineImpl.call(this, resultContinuation);
|
|
1124
1124
|
}
|
|
1125
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1126
|
-
var tmp = this.
|
|
1125
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).nxr = function (_this__u8e3s4, $completion) {
|
|
1126
|
+
var tmp = this.oxr(_this__u8e3s4, $completion);
|
|
1127
1127
|
tmp.o9_1 = Unit_instance;
|
|
1128
1128
|
tmp.p9_1 = null;
|
|
1129
1129
|
return tmp.u9();
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(BearerAuthConfig$refreshTokens$slambda).ha = function (p1, $completion) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.nxr(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function () {
|
|
1135
1135
|
var suspendResult = this.o9_1;
|
|
@@ -1148,28 +1148,28 @@ protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function () {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
while (true);
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1151
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).oxr = function (_this__u8e3s4, completion) {
|
|
1152
1152
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1153
|
-
i.
|
|
1153
|
+
i.mxr_1 = _this__u8e3s4;
|
|
1154
1154
|
return i;
|
|
1155
1155
|
};
|
|
1156
1156
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1157
1157
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1158
1158
|
return constructCallableReference(function (_this__u8e3s4, $completion) {
|
|
1159
|
-
return i.
|
|
1159
|
+
return i.nxr(_this__u8e3s4, $completion);
|
|
1160
1160
|
}, 1);
|
|
1161
1161
|
}
|
|
1162
1162
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1163
1163
|
CoroutineImpl.call(this, resultContinuation);
|
|
1164
1164
|
}
|
|
1165
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1165
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).xxr = function ($completion) {
|
|
1166
1166
|
var tmp = this.l3n($completion);
|
|
1167
1167
|
tmp.o9_1 = Unit_instance;
|
|
1168
1168
|
tmp.p9_1 = null;
|
|
1169
1169
|
return tmp.u9();
|
|
1170
1170
|
};
|
|
1171
1171
|
protoOf(BearerAuthConfig$loadTokens$slambda).ga = function ($completion) {
|
|
1172
|
-
return this.
|
|
1172
|
+
return this.xxr($completion);
|
|
1173
1173
|
};
|
|
1174
1174
|
protoOf(BearerAuthConfig$loadTokens$slambda).u9 = function () {
|
|
1175
1175
|
var suspendResult = this.o9_1;
|
|
@@ -1194,7 +1194,7 @@ protoOf(BearerAuthConfig$loadTokens$slambda).l3n = function (completion) {
|
|
|
1194
1194
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1195
1195
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1196
1196
|
return constructCallableReference(function ($completion) {
|
|
1197
|
-
return i.
|
|
1197
|
+
return i.xxr($completion);
|
|
1198
1198
|
}, 0);
|
|
1199
1199
|
}
|
|
1200
1200
|
function BearerAuthConfig$sendWithoutRequest$lambda(it) {
|
|
@@ -1202,32 +1202,32 @@ function BearerAuthConfig$sendWithoutRequest$lambda(it) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function BearerAuthConfig() {
|
|
1204
1204
|
var tmp = this;
|
|
1205
|
-
tmp.
|
|
1205
|
+
tmp.yxq_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1206
1206
|
var tmp_0 = this;
|
|
1207
|
-
tmp_0.
|
|
1207
|
+
tmp_0.zxq_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1208
1208
|
var tmp_1 = this;
|
|
1209
|
-
tmp_1.
|
|
1210
|
-
this.
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1209
|
+
tmp_1.axr_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1210
|
+
this.bxr_1 = null;
|
|
1211
|
+
this.cxr_1 = true;
|
|
1212
|
+
this.dxr_1 = false;
|
|
1213
1213
|
}
|
|
1214
|
-
protoOf(BearerAuthConfig).
|
|
1215
|
-
this.
|
|
1214
|
+
protoOf(BearerAuthConfig).yxr = function (block) {
|
|
1215
|
+
this.yxq_1 = block;
|
|
1216
1216
|
};
|
|
1217
|
-
protoOf(BearerAuthConfig).
|
|
1218
|
-
this.
|
|
1217
|
+
protoOf(BearerAuthConfig).zxr = function (block) {
|
|
1218
|
+
this.zxq_1 = block;
|
|
1219
1219
|
};
|
|
1220
1220
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1221
|
+
this.axs_1 = client;
|
|
1222
|
+
this.bxs_1 = response;
|
|
1223
|
+
this.cxs_1 = oldTokens;
|
|
1224
1224
|
}
|
|
1225
1225
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1226
1226
|
return true;
|
|
1227
1227
|
}
|
|
1228
1228
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1229
1229
|
return function ($this$headers) {
|
|
1230
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1230
|
+
var tokenValue = 'Bearer ' + $token.wxq_1;
|
|
1231
1231
|
var tmp;
|
|
1232
1232
|
if ($this$headers.q3f('Authorization')) {
|
|
1233
1233
|
$this$headers.m3h('Authorization');
|
|
@@ -1242,18 +1242,18 @@ function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
1244
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1245
|
+
this.lxs_1 = this$0;
|
|
1246
|
+
this.mxs_1 = $response;
|
|
1247
1247
|
CoroutineImpl.call(this, resultContinuation);
|
|
1248
1248
|
}
|
|
1249
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1249
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).xxr = function ($completion) {
|
|
1250
1250
|
var tmp = this.l3n($completion);
|
|
1251
1251
|
tmp.o9_1 = Unit_instance;
|
|
1252
1252
|
tmp.p9_1 = null;
|
|
1253
1253
|
return tmp.u9();
|
|
1254
1254
|
};
|
|
1255
1255
|
protoOf(BearerAuthProvider$refreshToken$slambda).ga = function ($completion) {
|
|
1256
|
-
return this.
|
|
1256
|
+
return this.xxr($completion);
|
|
1257
1257
|
};
|
|
1258
1258
|
protoOf(BearerAuthProvider$refreshToken$slambda).u9 = function () {
|
|
1259
1259
|
var suspendResult = this.o9_1;
|
|
@@ -1263,10 +1263,10 @@ protoOf(BearerAuthProvider$refreshToken$slambda).u9 = function () {
|
|
|
1263
1263
|
switch (tmp) {
|
|
1264
1264
|
case 0:
|
|
1265
1265
|
this.n9_1 = 3;
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1266
|
+
this.nxs_1 = this.lxs_1.pxs_1;
|
|
1267
|
+
this.oxs_1 = this.mxs_1.s4p().v4m_1;
|
|
1268
1268
|
this.m9_1 = 1;
|
|
1269
|
-
suspendResult = this.
|
|
1269
|
+
suspendResult = this.lxs_1.txs_1.sxq(this);
|
|
1270
1270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1271
1271
|
return suspendResult;
|
|
1272
1272
|
}
|
|
@@ -1274,9 +1274,9 @@ protoOf(BearerAuthProvider$refreshToken$slambda).u9 = function () {
|
|
|
1274
1274
|
continue $sm;
|
|
1275
1275
|
case 1:
|
|
1276
1276
|
var ARGUMENT = suspendResult;
|
|
1277
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1277
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.oxs_1, this.mxs_1, ARGUMENT);
|
|
1278
1278
|
this.m9_1 = 2;
|
|
1279
|
-
suspendResult = this.
|
|
1279
|
+
suspendResult = this.nxs_1(ARGUMENT_0, this);
|
|
1280
1280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1281
1281
|
return suspendResult;
|
|
1282
1282
|
}
|
|
@@ -1299,19 +1299,19 @@ protoOf(BearerAuthProvider$refreshToken$slambda).u9 = function () {
|
|
|
1299
1299
|
while (true);
|
|
1300
1300
|
};
|
|
1301
1301
|
protoOf(BearerAuthProvider$refreshToken$slambda).l3n = function (completion) {
|
|
1302
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1302
|
+
return new BearerAuthProvider$refreshToken$slambda(this.lxs_1, this.mxs_1, completion);
|
|
1303
1303
|
};
|
|
1304
1304
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1305
1305
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1306
1306
|
return constructCallableReference(function ($completion) {
|
|
1307
|
-
return i.
|
|
1307
|
+
return i.xxr($completion);
|
|
1308
1308
|
}, 0);
|
|
1309
1309
|
}
|
|
1310
1310
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1311
1311
|
CoroutineImpl.call(this, resultContinuation);
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1312
|
+
this.cxt_1 = _this__u8e3s4;
|
|
1313
|
+
this.dxt_1 = request;
|
|
1314
|
+
this.ext_1 = authHeader;
|
|
1315
1315
|
}
|
|
1316
1316
|
protoOf($addRequestHeadersCOROUTINE$).u9 = function () {
|
|
1317
1317
|
var suspendResult = this.o9_1;
|
|
@@ -1322,7 +1322,7 @@ protoOf($addRequestHeadersCOROUTINE$).u9 = function () {
|
|
|
1322
1322
|
case 0:
|
|
1323
1323
|
this.n9_1 = 2;
|
|
1324
1324
|
this.m9_1 = 1;
|
|
1325
|
-
suspendResult = this.
|
|
1325
|
+
suspendResult = this.cxt_1.txs_1.sxq(this);
|
|
1326
1326
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1327
1327
|
return suspendResult;
|
|
1328
1328
|
}
|
|
@@ -1338,7 +1338,7 @@ protoOf($addRequestHeadersCOROUTINE$).u9 = function () {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
|
|
1340
1340
|
var token = tmp_0;
|
|
1341
|
-
headers(this.
|
|
1341
|
+
headers(this.dxt_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.dxt_1));
|
|
1342
1342
|
return Unit_instance;
|
|
1343
1343
|
case 2:
|
|
1344
1344
|
throw this.p9_1;
|
|
@@ -1356,8 +1356,8 @@ protoOf($addRequestHeadersCOROUTINE$).u9 = function () {
|
|
|
1356
1356
|
};
|
|
1357
1357
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1358
1358
|
CoroutineImpl.call(this, resultContinuation);
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1359
|
+
this.nxt_1 = _this__u8e3s4;
|
|
1360
|
+
this.oxt_1 = response;
|
|
1361
1361
|
}
|
|
1362
1362
|
protoOf($refreshTokenCOROUTINE$).u9 = function () {
|
|
1363
1363
|
var suspendResult = this.o9_1;
|
|
@@ -1368,7 +1368,7 @@ protoOf($refreshTokenCOROUTINE$).u9 = function () {
|
|
|
1368
1368
|
case 0:
|
|
1369
1369
|
this.n9_1 = 2;
|
|
1370
1370
|
this.m9_1 = 1;
|
|
1371
|
-
suspendResult = this.
|
|
1371
|
+
suspendResult = this.nxt_1.txs_1.txq(this.nxt_1.sxs_1, BearerAuthProvider$refreshToken$slambda_0(this.nxt_1, this.oxt_1, null), this);
|
|
1372
1372
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1373
1373
|
return suspendResult;
|
|
1374
1374
|
}
|
|
@@ -1401,33 +1401,33 @@ function BearerAuthProvider(refreshTokens, loadTokens, sendWithoutRequestCallbac
|
|
|
1401
1401
|
sendWithoutRequestCallback = tmp;
|
|
1402
1402
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1403
1403
|
nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1404
|
+
this.pxs_1 = refreshTokens;
|
|
1405
|
+
this.qxs_1 = sendWithoutRequestCallback;
|
|
1406
|
+
this.rxs_1 = realm;
|
|
1407
|
+
this.sxs_1 = nonCancellableRefresh;
|
|
1408
|
+
this.txs_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1409
1409
|
}
|
|
1410
|
-
protoOf(BearerAuthProvider).
|
|
1410
|
+
protoOf(BearerAuthProvider).uxo = function () {
|
|
1411
1411
|
// Inline function 'kotlin.error' call
|
|
1412
1412
|
var message = 'Deprecated';
|
|
1413
1413
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1414
1414
|
};
|
|
1415
|
-
protoOf(BearerAuthProvider).
|
|
1416
|
-
return this.
|
|
1415
|
+
protoOf(BearerAuthProvider).xxn = function (request) {
|
|
1416
|
+
return this.qxs_1(request);
|
|
1417
1417
|
};
|
|
1418
|
-
protoOf(BearerAuthProvider).
|
|
1418
|
+
protoOf(BearerAuthProvider).exm = function (auth) {
|
|
1419
1419
|
if (!(auth.u41_1 === 'Bearer')) {
|
|
1420
1420
|
get_LOGGER().z3m('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1421
1421
|
return false;
|
|
1422
1422
|
}
|
|
1423
1423
|
var tmp;
|
|
1424
|
-
if (this.
|
|
1424
|
+
if (this.rxs_1 == null) {
|
|
1425
1425
|
tmp = true;
|
|
1426
1426
|
} else {
|
|
1427
1427
|
if (!(auth instanceof Parameterized)) {
|
|
1428
1428
|
tmp = false;
|
|
1429
1429
|
} else {
|
|
1430
|
-
tmp = auth.c3o('realm') == this.
|
|
1430
|
+
tmp = auth.c3o('realm') == this.rxs_1;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
var isSameRealm = tmp;
|
|
@@ -1436,27 +1436,27 @@ protoOf(BearerAuthProvider).cxl = function (auth) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
return isSameRealm;
|
|
1438
1438
|
};
|
|
1439
|
-
protoOf(BearerAuthProvider).
|
|
1439
|
+
protoOf(BearerAuthProvider).txo = function (request, authHeader, $completion) {
|
|
1440
1440
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1441
1441
|
tmp.o9_1 = Unit_instance;
|
|
1442
1442
|
tmp.p9_1 = null;
|
|
1443
1443
|
return tmp.u9();
|
|
1444
1444
|
};
|
|
1445
|
-
protoOf(BearerAuthProvider).
|
|
1445
|
+
protoOf(BearerAuthProvider).sxo = function (response, $completion) {
|
|
1446
1446
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1447
1447
|
tmp.o9_1 = Unit_instance;
|
|
1448
1448
|
tmp.p9_1 = null;
|
|
1449
1449
|
return tmp.u9();
|
|
1450
1450
|
};
|
|
1451
|
-
protoOf(BearerAuthProvider).
|
|
1452
|
-
this.
|
|
1451
|
+
protoOf(BearerAuthProvider).pxt = function () {
|
|
1452
|
+
this.txs_1.vxq();
|
|
1453
1453
|
};
|
|
1454
1454
|
//region block: post-declaration
|
|
1455
1455
|
protoOf(SetTokenContext).z9 = get;
|
|
1456
1456
|
protoOf(SetTokenContext).hk = fold;
|
|
1457
1457
|
protoOf(SetTokenContext).gk = minusKey;
|
|
1458
1458
|
protoOf(SetTokenContext).ik = plus;
|
|
1459
|
-
protoOf(BearerAuthProvider).
|
|
1459
|
+
protoOf(BearerAuthProvider).yxn = addRequestHeaders$default;
|
|
1460
1460
|
//endregion
|
|
1461
1461
|
//region block: init
|
|
1462
1462
|
Companion_instance = new Companion();
|