@solibo/solibo-sdk 1.1.45 → 1.1.46
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 +76 -76
- package/KotlinBigInteger-bignum.mjs +1104 -1104
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +4 -4
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-logging.mjs +516 -516
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +12811 -12885
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +1 -5
- package/solibo-sdk-sdk.mjs +2349 -2349
|
@@ -79,11 +79,11 @@ initMetadataForLambda(Auth$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
|
79
79
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
80
80
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
81
81
|
function sendWithoutRequest(request) {
|
|
82
|
-
return this.
|
|
82
|
+
return this.yod();
|
|
83
83
|
}
|
|
84
84
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
85
85
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
86
|
-
return $super === VOID ? this.
|
|
86
|
+
return $super === VOID ? this.xod(request, authHeader, $completion) : $super.xod.call(this, request, authHeader, $completion);
|
|
87
87
|
}
|
|
88
88
|
function refreshToken(response, $completion) {
|
|
89
89
|
return true;
|
|
@@ -128,14 +128,14 @@ var AuthProvidersKey;
|
|
|
128
128
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
129
129
|
CoroutineImpl.call(this, resultContinuation);
|
|
130
130
|
}
|
|
131
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
131
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).eob = function (it, $completion) {
|
|
132
132
|
var tmp = this.s4v(it, $completion);
|
|
133
133
|
tmp.n9_1 = Unit_instance;
|
|
134
134
|
tmp.o9_1 = null;
|
|
135
135
|
return tmp.t9();
|
|
136
136
|
};
|
|
137
137
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).fa = function (p1, $completion) {
|
|
138
|
-
return this.
|
|
138
|
+
return this.eob(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
139
139
|
};
|
|
140
140
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).t9 = function () {
|
|
141
141
|
var suspendResult = this.n9_1;
|
|
@@ -144,7 +144,7 @@ protoOf(AuthConfig$isUnauthorizedResponse$slambda).t9 = function () {
|
|
|
144
144
|
var tmp = this.l9_1;
|
|
145
145
|
if (tmp === 0) {
|
|
146
146
|
this.m9_1 = 1;
|
|
147
|
-
return this.
|
|
147
|
+
return this.dob_1.t41().equals(Companion_getInstance().j3x_1);
|
|
148
148
|
} else if (tmp === 1) {
|
|
149
149
|
throw this.o9_1;
|
|
150
150
|
}
|
|
@@ -156,13 +156,13 @@ protoOf(AuthConfig$isUnauthorizedResponse$slambda).t9 = function () {
|
|
|
156
156
|
};
|
|
157
157
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).s4v = function (it, completion) {
|
|
158
158
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
159
|
-
i.
|
|
159
|
+
i.dob_1 = it;
|
|
160
160
|
return i;
|
|
161
161
|
};
|
|
162
162
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
163
163
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
164
164
|
var l = function (it, $completion) {
|
|
165
|
-
return i.
|
|
165
|
+
return i.eob(it, $completion);
|
|
166
166
|
};
|
|
167
167
|
l.$arity = 1;
|
|
168
168
|
return l;
|
|
@@ -170,12 +170,12 @@ function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
|
170
170
|
function AuthConfig() {
|
|
171
171
|
var tmp = this;
|
|
172
172
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
173
|
-
tmp.
|
|
173
|
+
tmp.fob_1 = ArrayList_init_$Create$();
|
|
174
174
|
var tmp_0 = this;
|
|
175
|
-
tmp_0.
|
|
175
|
+
tmp_0.gob_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
176
176
|
}
|
|
177
177
|
function AtomicCounter() {
|
|
178
|
-
this.
|
|
178
|
+
this.hob_1 = atomic$int$1(0);
|
|
179
179
|
}
|
|
180
180
|
function get_authProviders(_this__u8e3s4) {
|
|
181
181
|
_init_properties_Auth_kt__9ob1dk();
|
|
@@ -191,7 +191,7 @@ function AuthConfig$_init_$ref_ms3pb9() {
|
|
|
191
191
|
}
|
|
192
192
|
function Auth$lambda($this$createClientPlugin) {
|
|
193
193
|
_init_properties_Auth_kt__9ob1dk();
|
|
194
|
-
var providers = toList($this$createClientPlugin.s4u_1.
|
|
194
|
+
var providers = toList($this$createClientPlugin.s4u_1.fob_1);
|
|
195
195
|
$this$createClientPlugin.r4u_1.h4k_1.l3e(get_AuthProvidersKey(), providers);
|
|
196
196
|
var tokenVersions = new ConcurrentMap();
|
|
197
197
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
@@ -258,7 +258,7 @@ function invoke$findProvider(call, candidateProviders) {
|
|
|
258
258
|
var _iterator__ex2g4s_0 = authHeaders.t();
|
|
259
259
|
while (_iterator__ex2g4s_0.u()) {
|
|
260
260
|
var element = _iterator__ex2g4s_0.v();
|
|
261
|
-
if (provider.
|
|
261
|
+
if (provider.iob(element)) {
|
|
262
262
|
tmp$ret$4 = element;
|
|
263
263
|
break $l$block;
|
|
264
264
|
}
|
|
@@ -289,7 +289,7 @@ function invoke$findProvider(call, candidateProviders) {
|
|
|
289
289
|
var _iterator__ex2g4s_2 = candidateProviders.t();
|
|
290
290
|
while (_iterator__ex2g4s_2.u()) {
|
|
291
291
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
292
|
-
if (element_1.
|
|
292
|
+
if (element_1.iob(element_0)) {
|
|
293
293
|
tmp$ret$8 = element_1;
|
|
294
294
|
break $l$block_0;
|
|
295
295
|
}
|
|
@@ -336,9 +336,9 @@ function Auth$lambda$slambda$lambda_0() {
|
|
|
336
336
|
return LinkedHashMap_init_$Create$();
|
|
337
337
|
}
|
|
338
338
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
339
|
+
this.uoc_1 = $providers;
|
|
340
|
+
this.voc_1 = $tokenVersions;
|
|
341
|
+
this.woc_1 = $tokenVersionsAttributeKey;
|
|
342
342
|
CoroutineImpl.call(this, resultContinuation);
|
|
343
343
|
}
|
|
344
344
|
protoOf(Auth$lambda$slambda).g5a = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
@@ -360,37 +360,37 @@ protoOf(Auth$lambda$slambda).t9 = function () {
|
|
|
360
360
|
switch (tmp) {
|
|
361
361
|
case 0:
|
|
362
362
|
this.m9_1 = 4;
|
|
363
|
-
var tmp0 = this.
|
|
363
|
+
var tmp0 = this.uoc_1;
|
|
364
364
|
var destination = ArrayList_init_$Create$();
|
|
365
365
|
var _iterator__ex2g4s = tmp0.t();
|
|
366
366
|
while (_iterator__ex2g4s.u()) {
|
|
367
367
|
var element = _iterator__ex2g4s.v();
|
|
368
|
-
if (element.
|
|
368
|
+
if (element.bod(this.yoc_1)) {
|
|
369
369
|
destination.e1(element);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
this.
|
|
373
|
+
this.aod_1 = destination.t();
|
|
374
374
|
this.l9_1 = 1;
|
|
375
375
|
continue $sm;
|
|
376
376
|
case 1:
|
|
377
|
-
if (!this.
|
|
377
|
+
if (!this.aod_1.u()) {
|
|
378
378
|
this.l9_1 = 3;
|
|
379
379
|
continue $sm;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
var element_0 = this.
|
|
382
|
+
var element_0 = this.aod_1.v();
|
|
383
383
|
var this_0 = get_LOGGER();
|
|
384
384
|
if (get_isTraceEnabled(this_0)) {
|
|
385
|
-
this_0.x3n('Adding auth headers for ' + this.
|
|
385
|
+
this_0.x3n('Adding auth headers for ' + this.yoc_1.d4m_1.toString() + ' from provider ' + toString(element_0));
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
var tokenVersion = this.
|
|
389
|
-
var requestTokenVersions = this.
|
|
390
|
-
var value = tokenVersion.
|
|
388
|
+
var tokenVersion = this.voc_1.o3n(element_0, Auth$lambda$slambda$lambda);
|
|
389
|
+
var requestTokenVersions = this.yoc_1.i4m_1.o3e(this.woc_1, Auth$lambda$slambda$lambda_0);
|
|
390
|
+
var value = tokenVersion.hob_1.kotlinx$atomicfu$value;
|
|
391
391
|
requestTokenVersions.c3(element_0, value);
|
|
392
392
|
this.l9_1 = 2;
|
|
393
|
-
suspendResult = element_0.
|
|
393
|
+
suspendResult = element_0.cod(this.yoc_1, VOID, this);
|
|
394
394
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
395
395
|
return suspendResult;
|
|
396
396
|
}
|
|
@@ -416,10 +416,10 @@ protoOf(Auth$lambda$slambda).t9 = function () {
|
|
|
416
416
|
while (true);
|
|
417
417
|
};
|
|
418
418
|
protoOf(Auth$lambda$slambda).h5a = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
419
|
-
var i = new Auth$lambda$slambda(this.
|
|
420
|
-
i.
|
|
421
|
-
i.
|
|
422
|
-
i.
|
|
419
|
+
var i = new Auth$lambda$slambda(this.uoc_1, this.voc_1, this.woc_1, completion);
|
|
420
|
+
i.xoc_1 = $this$onRequest;
|
|
421
|
+
i.yoc_1 = request;
|
|
422
|
+
i.zoc_1 = _unused_var__etf5q3;
|
|
423
423
|
return i;
|
|
424
424
|
};
|
|
425
425
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
@@ -431,10 +431,10 @@ function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttribu
|
|
|
431
431
|
return l;
|
|
432
432
|
}
|
|
433
433
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
434
|
+
this.lod_1 = $this_createClientPlugin;
|
|
435
|
+
this.mod_1 = $providers;
|
|
436
|
+
this.nod_1 = $tokenVersions;
|
|
437
|
+
this.ood_1 = $tokenVersionsAttributeKey;
|
|
438
438
|
CoroutineImpl.call(this, resultContinuation);
|
|
439
439
|
}
|
|
440
440
|
protoOf(Auth$lambda$slambda_1).u51 = function ($this$on, originalRequest, $completion) {
|
|
@@ -456,16 +456,16 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
456
456
|
case 0:
|
|
457
457
|
this.m9_1 = 10;
|
|
458
458
|
this.l9_1 = 1;
|
|
459
|
-
suspendResult = this.
|
|
459
|
+
suspendResult = this.pod_1.y51(this.qod_1, this);
|
|
460
460
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
461
461
|
return suspendResult;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
continue $sm;
|
|
465
465
|
case 1:
|
|
466
|
-
this.
|
|
466
|
+
this.vod_1 = suspendResult;
|
|
467
467
|
this.l9_1 = 2;
|
|
468
|
-
suspendResult = this.
|
|
468
|
+
suspendResult = this.lod_1.s4u_1.gob_1(this.vod_1.d4l(), this);
|
|
469
469
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
470
470
|
return suspendResult;
|
|
471
471
|
}
|
|
@@ -473,22 +473,22 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
473
473
|
continue $sm;
|
|
474
474
|
case 2:
|
|
475
475
|
if (!suspendResult) {
|
|
476
|
-
return this.
|
|
476
|
+
return this.vod_1;
|
|
477
477
|
} else {
|
|
478
478
|
this.l9_1 = 3;
|
|
479
479
|
continue $sm;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
case 3:
|
|
483
|
-
if (this.
|
|
484
|
-
return this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
483
|
+
if (this.vod_1.m4n().n4n().k3e(get_AuthCircuitBreaker()))
|
|
484
|
+
return this.vod_1;
|
|
485
|
+
this.rod_1 = this.vod_1;
|
|
486
|
+
this.uod_1 = HashSet_init_$Create$(this.mod_1);
|
|
487
487
|
this.l9_1 = 4;
|
|
488
488
|
continue $sm;
|
|
489
489
|
case 4:
|
|
490
490
|
this.l9_1 = 5;
|
|
491
|
-
suspendResult = this.
|
|
491
|
+
suspendResult = this.lod_1.s4u_1.gob_1(this.rod_1.d4l(), this);
|
|
492
492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
493
493
|
return suspendResult;
|
|
494
494
|
}
|
|
@@ -502,33 +502,33 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
502
502
|
|
|
503
503
|
var this_0 = get_LOGGER();
|
|
504
504
|
if (get_isTraceEnabled(this_0)) {
|
|
505
|
-
this_0.x3n('Unauthorized response for ' + this.
|
|
505
|
+
this_0.x3n('Unauthorized response for ' + this.rod_1.m4n().w4n().toString());
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
508
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.rod_1, this.uod_1);
|
|
509
509
|
var tmp_0;
|
|
510
510
|
if (tmp0_elvis_lhs == null) {
|
|
511
|
-
this.
|
|
511
|
+
this.pod_1;
|
|
512
512
|
var this_1 = get_LOGGER();
|
|
513
513
|
if (get_isTraceEnabled(this_1)) {
|
|
514
|
-
this_1.x3n('Can not find auth provider for ' + this.
|
|
514
|
+
this_1.x3n('Can not find auth provider for ' + this.rod_1.m4n().w4n().toString());
|
|
515
515
|
}
|
|
516
|
-
return this.
|
|
516
|
+
return this.rod_1;
|
|
517
517
|
} else {
|
|
518
518
|
tmp_0 = tmp0_elvis_lhs;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
var _destruct__k2r9zo = tmp_0;
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
522
|
+
this.tod_1 = _destruct__k2r9zo.fh();
|
|
523
|
+
this.sod_1 = _destruct__k2r9zo.gh();
|
|
524
524
|
var this_2 = get_LOGGER();
|
|
525
525
|
if (get_isTraceEnabled(this_2)) {
|
|
526
|
-
this_2.x3n('Using provider ' + toString(this.
|
|
526
|
+
this_2.x3n('Using provider ' + toString(this.tod_1) + ' for ' + this.rod_1.m4n().w4n().toString());
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
this.
|
|
529
|
+
this.uod_1.g3(this.tod_1);
|
|
530
530
|
this.l9_1 = 6;
|
|
531
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
531
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.nod_1, this.ood_1, this.rod_1, this.tod_1, this.qod_1, this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
@@ -536,7 +536,7 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
536
536
|
continue $sm;
|
|
537
537
|
case 6:
|
|
538
538
|
if (!suspendResult) {
|
|
539
|
-
return this.
|
|
539
|
+
return this.rod_1;
|
|
540
540
|
} else {
|
|
541
541
|
this.l9_1 = 7;
|
|
542
542
|
continue $sm;
|
|
@@ -544,18 +544,18 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
544
544
|
|
|
545
545
|
case 7:
|
|
546
546
|
this.l9_1 = 8;
|
|
547
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
547
|
+
suspendResult = invoke$executeWithNewToken(this.pod_1, this.rod_1, this.tod_1, this.qod_1, this.sod_1, this);
|
|
548
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
549
549
|
return suspendResult;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
continue $sm;
|
|
553
553
|
case 8:
|
|
554
|
-
this.
|
|
554
|
+
this.rod_1 = suspendResult;
|
|
555
555
|
this.l9_1 = 4;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 9:
|
|
558
|
-
return this.
|
|
558
|
+
return this.rod_1;
|
|
559
559
|
case 10:
|
|
560
560
|
throw this.o9_1;
|
|
561
561
|
}
|
|
@@ -571,9 +571,9 @@ protoOf(Auth$lambda$slambda_1).t9 = function () {
|
|
|
571
571
|
while (true);
|
|
572
572
|
};
|
|
573
573
|
protoOf(Auth$lambda$slambda_1).v51 = function ($this$on, originalRequest, completion) {
|
|
574
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
575
|
-
i.
|
|
576
|
-
i.
|
|
574
|
+
var i = new Auth$lambda$slambda_1(this.lod_1, this.mod_1, this.nod_1, this.ood_1, completion);
|
|
575
|
+
i.pod_1 = $this$on;
|
|
576
|
+
i.qod_1 = originalRequest;
|
|
577
577
|
return i;
|
|
578
578
|
};
|
|
579
579
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
@@ -586,11 +586,11 @@ function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersi
|
|
|
586
586
|
}
|
|
587
587
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
588
588
|
CoroutineImpl.call(this, resultContinuation);
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
589
|
+
this.rob_1 = tokenVersions;
|
|
590
|
+
this.sob_1 = tokenVersionsAttributeKey;
|
|
591
|
+
this.tob_1 = call;
|
|
592
|
+
this.uob_1 = provider;
|
|
593
|
+
this.vob_1 = request;
|
|
594
594
|
}
|
|
595
595
|
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).t9 = function () {
|
|
596
596
|
var suspendResult = this.n9_1;
|
|
@@ -601,17 +601,17 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).t9 = function () {
|
|
|
601
601
|
case 0:
|
|
602
602
|
this.m9_1 = 4;
|
|
603
603
|
var tmp_0 = this;
|
|
604
|
-
tmp_0.
|
|
604
|
+
tmp_0.wob_1 = this.rob_1.o3n(this.uob_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
605
605
|
var tmp_1 = this;
|
|
606
|
-
tmp_1.
|
|
607
|
-
var requestTokenVersion = this.
|
|
608
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
606
|
+
tmp_1.xob_1 = this.vob_1.i4m_1.o3e(this.sob_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
607
|
+
var requestTokenVersion = this.xob_1.z2(this.uob_1);
|
|
608
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.wob_1.hob_1.kotlinx$atomicfu$value) {
|
|
609
609
|
var this_0 = get_LOGGER();
|
|
610
610
|
if (get_isTraceEnabled(this_0)) {
|
|
611
|
-
this_0.x3n('Refreshing token for ' + this.
|
|
611
|
+
this_0.x3n('Refreshing token for ' + this.tob_1.m4n().w4n().toString());
|
|
612
612
|
}
|
|
613
613
|
this.l9_1 = 1;
|
|
614
|
-
suspendResult = this.
|
|
614
|
+
suspendResult = this.uob_1.wod(this.tob_1.d4l(), this);
|
|
615
615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
616
|
return suspendResult;
|
|
617
617
|
}
|
|
@@ -625,13 +625,13 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).t9 = function () {
|
|
|
625
625
|
if (!suspendResult) {
|
|
626
626
|
var this_1 = get_LOGGER();
|
|
627
627
|
if (get_isTraceEnabled(this_1)) {
|
|
628
|
-
this_1.x3n('Refreshing token failed for ' + this.
|
|
628
|
+
this_1.x3n('Refreshing token failed for ' + this.tob_1.m4n().w4n().toString());
|
|
629
629
|
}
|
|
630
630
|
return false;
|
|
631
631
|
} else {
|
|
632
|
-
var tmp0 = this.
|
|
633
|
-
var tmp2 = this.
|
|
634
|
-
var value = this.
|
|
632
|
+
var tmp0 = this.xob_1;
|
|
633
|
+
var tmp2 = this.uob_1;
|
|
634
|
+
var value = this.wob_1.hob_1.atomicfu$incrementAndGet();
|
|
635
635
|
tmp0.c3(tmp2, value);
|
|
636
636
|
this.l9_1 = 2;
|
|
637
637
|
continue $sm;
|
|
@@ -658,11 +658,11 @@ protoOf($invoke$refreshTokenIfNeededCOROUTINE$).t9 = function () {
|
|
|
658
658
|
};
|
|
659
659
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
660
660
|
CoroutineImpl.call(this, resultContinuation);
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
661
|
+
this.goc_1 = _this__u8e3s4;
|
|
662
|
+
this.hoc_1 = call;
|
|
663
|
+
this.ioc_1 = provider;
|
|
664
|
+
this.joc_1 = oldRequest;
|
|
665
|
+
this.koc_1 = authHeader;
|
|
666
666
|
}
|
|
667
667
|
protoOf($invoke$executeWithNewTokenCOROUTINE$).t9 = function () {
|
|
668
668
|
var suspendResult = this.n9_1;
|
|
@@ -672,24 +672,24 @@ protoOf($invoke$executeWithNewTokenCOROUTINE$).t9 = function () {
|
|
|
672
672
|
switch (tmp) {
|
|
673
673
|
case 0:
|
|
674
674
|
this.m9_1 = 3;
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
675
|
+
this.loc_1 = new HttpRequestBuilder();
|
|
676
|
+
this.loc_1.h4s(this.joc_1);
|
|
677
677
|
this.l9_1 = 1;
|
|
678
|
-
suspendResult = this.
|
|
678
|
+
suspendResult = this.ioc_1.xod(this.loc_1, this.koc_1, this);
|
|
679
679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
680
680
|
return suspendResult;
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
continue $sm;
|
|
684
684
|
case 1:
|
|
685
|
-
this.
|
|
685
|
+
this.loc_1.i4m_1.l3e(get_AuthCircuitBreaker(), Unit_instance);
|
|
686
686
|
var this_0 = get_LOGGER();
|
|
687
687
|
if (get_isTraceEnabled(this_0)) {
|
|
688
|
-
this_0.x3n('Sending new request to ' + this.
|
|
688
|
+
this_0.x3n('Sending new request to ' + this.hoc_1.m4n().w4n().toString());
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
this.l9_1 = 2;
|
|
692
|
-
suspendResult = this.
|
|
692
|
+
suspendResult = this.goc_1.y51(this.loc_1, this);
|
|
693
693
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
694
694
|
return suspendResult;
|
|
695
695
|
}
|
|
@@ -776,20 +776,20 @@ protoOf(SetTokenContext).m1 = function () {
|
|
|
776
776
|
return Companion_instance;
|
|
777
777
|
};
|
|
778
778
|
function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
779
|
+
this.hoe_1 = this$0;
|
|
780
|
+
this.ioe_1 = $prevValue;
|
|
781
|
+
this.joe_1 = $lockedByLoad;
|
|
782
|
+
this.koe_1 = $block;
|
|
783
783
|
CoroutineImpl.call(this, resultContinuation);
|
|
784
784
|
}
|
|
785
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
785
|
+
protoOf(AuthTokenHolder$setToken$slambda).poe = function ($this$withContext, $completion) {
|
|
786
786
|
var tmp = this.e3c($this$withContext, $completion);
|
|
787
787
|
tmp.n9_1 = Unit_instance;
|
|
788
788
|
tmp.o9_1 = null;
|
|
789
789
|
return tmp.t9();
|
|
790
790
|
};
|
|
791
791
|
protoOf(AuthTokenHolder$setToken$slambda).fa = function (p1, $completion) {
|
|
792
|
-
return this.
|
|
792
|
+
return this.poe((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
793
793
|
};
|
|
794
794
|
protoOf(AuthTokenHolder$setToken$slambda).t9 = function () {
|
|
795
795
|
var suspendResult = this.n9_1;
|
|
@@ -799,24 +799,24 @@ protoOf(AuthTokenHolder$setToken$slambda).t9 = function () {
|
|
|
799
799
|
switch (tmp) {
|
|
800
800
|
case 0:
|
|
801
801
|
this.m9_1 = 7;
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
802
|
+
this.noe_1 = this.hoe_1.uoe_1;
|
|
803
|
+
this.moe_1 = null;
|
|
804
804
|
this.l9_1 = 1;
|
|
805
|
-
suspendResult = this.
|
|
805
|
+
suspendResult = this.noe_1.k2t(this.moe_1, this);
|
|
806
806
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
807
807
|
return suspendResult;
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
continue $sm;
|
|
811
811
|
case 1:
|
|
812
|
-
this.
|
|
812
|
+
this.ooe_1 = Unit_instance;
|
|
813
813
|
this.l9_1 = 2;
|
|
814
814
|
continue $sm;
|
|
815
815
|
case 2:
|
|
816
816
|
this.m9_1 = 6;
|
|
817
|
-
if (equals(this.
|
|
817
|
+
if (equals(this.ioe_1, this.hoe_1.soe_1) || this.joe_1) {
|
|
818
818
|
this.l9_1 = 3;
|
|
819
|
-
suspendResult = this.
|
|
819
|
+
suspendResult = this.koe_1(this);
|
|
820
820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
821
821
|
return suspendResult;
|
|
822
822
|
}
|
|
@@ -828,23 +828,23 @@ protoOf(AuthTokenHolder$setToken$slambda).t9 = function () {
|
|
|
828
828
|
|
|
829
829
|
case 3:
|
|
830
830
|
var ARGUMENT = suspendResult;
|
|
831
|
-
this.
|
|
831
|
+
this.hoe_1.soe_1 = ARGUMENT;
|
|
832
832
|
this.l9_1 = 4;
|
|
833
833
|
continue $sm;
|
|
834
834
|
case 4:
|
|
835
|
-
this.
|
|
835
|
+
this.ooe_1 = this.hoe_1.soe_1;
|
|
836
836
|
this.m9_1 = 7;
|
|
837
837
|
this.l9_1 = 5;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 5:
|
|
840
|
-
var tmp_0 = this.
|
|
840
|
+
var tmp_0 = this.ooe_1;
|
|
841
841
|
this.m9_1 = 7;
|
|
842
|
-
this.
|
|
842
|
+
this.noe_1.l2t(this.moe_1);
|
|
843
843
|
return tmp_0;
|
|
844
844
|
case 6:
|
|
845
845
|
this.m9_1 = 7;
|
|
846
846
|
var t = this.o9_1;
|
|
847
|
-
this.
|
|
847
|
+
this.noe_1.l2t(this.moe_1);
|
|
848
848
|
throw t;
|
|
849
849
|
case 7:
|
|
850
850
|
throw this.o9_1;
|
|
@@ -861,20 +861,20 @@ protoOf(AuthTokenHolder$setToken$slambda).t9 = function () {
|
|
|
861
861
|
while (true);
|
|
862
862
|
};
|
|
863
863
|
protoOf(AuthTokenHolder$setToken$slambda).e3c = function ($this$withContext, completion) {
|
|
864
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
865
|
-
i.
|
|
864
|
+
var i = new AuthTokenHolder$setToken$slambda(this.hoe_1, this.ioe_1, this.joe_1, this.koe_1, completion);
|
|
865
|
+
i.loe_1 = $this$withContext;
|
|
866
866
|
return i;
|
|
867
867
|
};
|
|
868
868
|
function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
869
869
|
var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
|
|
870
870
|
var l = function ($this$withContext, $completion) {
|
|
871
|
-
return i.
|
|
871
|
+
return i.poe($this$withContext, $completion);
|
|
872
872
|
};
|
|
873
873
|
l.$arity = 1;
|
|
874
874
|
return l;
|
|
875
875
|
}
|
|
876
876
|
function AuthTokenHolder$clearToken$slambda(this$0, resultContinuation) {
|
|
877
|
-
this.
|
|
877
|
+
this.eof_1 = this$0;
|
|
878
878
|
CoroutineImpl.call(this, resultContinuation);
|
|
879
879
|
}
|
|
880
880
|
protoOf(AuthTokenHolder$clearToken$slambda).d3c = function ($this$launch, $completion) {
|
|
@@ -894,10 +894,10 @@ protoOf(AuthTokenHolder$clearToken$slambda).t9 = function () {
|
|
|
894
894
|
switch (tmp) {
|
|
895
895
|
case 0:
|
|
896
896
|
this.m9_1 = 2;
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
897
|
+
this.hof_1 = this.eof_1.uoe_1;
|
|
898
|
+
this.gof_1 = null;
|
|
899
899
|
this.l9_1 = 1;
|
|
900
|
-
suspendResult = this.
|
|
900
|
+
suspendResult = this.hof_1.k2t(this.gof_1, this);
|
|
901
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
902
|
return suspendResult;
|
|
903
903
|
}
|
|
@@ -907,17 +907,17 @@ protoOf(AuthTokenHolder$clearToken$slambda).t9 = function () {
|
|
|
907
907
|
l$ret$1: do {
|
|
908
908
|
var tmp_0;
|
|
909
909
|
try {
|
|
910
|
-
this.
|
|
910
|
+
this.eof_1.soe_1 = null;
|
|
911
911
|
break l$ret$1;
|
|
912
912
|
} catch ($p) {
|
|
913
913
|
var tmp_1;
|
|
914
914
|
var t = $p;
|
|
915
|
-
this.
|
|
915
|
+
this.hof_1.l2t(this.gof_1);
|
|
916
916
|
throw t;
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
while (false);
|
|
920
|
-
this.
|
|
920
|
+
this.hof_1.l2t(this.gof_1);
|
|
921
921
|
return Unit_instance;
|
|
922
922
|
case 2:
|
|
923
923
|
throw this.o9_1;
|
|
@@ -934,8 +934,8 @@ protoOf(AuthTokenHolder$clearToken$slambda).t9 = function () {
|
|
|
934
934
|
while (true);
|
|
935
935
|
};
|
|
936
936
|
protoOf(AuthTokenHolder$clearToken$slambda).e3c = function ($this$launch, completion) {
|
|
937
|
-
var i = new AuthTokenHolder$clearToken$slambda(this.
|
|
938
|
-
i.
|
|
937
|
+
var i = new AuthTokenHolder$clearToken$slambda(this.eof_1, completion);
|
|
938
|
+
i.fof_1 = $this$launch;
|
|
939
939
|
return i;
|
|
940
940
|
};
|
|
941
941
|
function AuthTokenHolder$clearToken$slambda_0(this$0, resultContinuation) {
|
|
@@ -948,7 +948,7 @@ function AuthTokenHolder$clearToken$slambda_0(this$0, resultContinuation) {
|
|
|
948
948
|
}
|
|
949
949
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
950
950
|
CoroutineImpl.call(this, resultContinuation);
|
|
951
|
-
this.
|
|
951
|
+
this.qof_1 = _this__u8e3s4;
|
|
952
952
|
}
|
|
953
953
|
protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
954
954
|
var suspendResult = this.n9_1;
|
|
@@ -958,9 +958,9 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
958
958
|
switch (tmp) {
|
|
959
959
|
case 0:
|
|
960
960
|
this.m9_1 = 14;
|
|
961
|
-
if (!this.
|
|
961
|
+
if (!this.qof_1.roe_1) {
|
|
962
962
|
this.l9_1 = 13;
|
|
963
|
-
suspendResult = this.
|
|
963
|
+
suspendResult = this.qof_1.qoe_1(this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -971,21 +971,21 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
case 1:
|
|
974
|
-
if (!(this.
|
|
975
|
-
return this.
|
|
976
|
-
this.
|
|
974
|
+
if (!(this.qof_1.soe_1 == null))
|
|
975
|
+
return this.qof_1.soe_1;
|
|
976
|
+
this.vof_1 = this.qof_1.soe_1;
|
|
977
977
|
if (!(this.r9().y9(Companion_instance) == null)) {
|
|
978
978
|
this.l9_1 = 11;
|
|
979
|
-
suspendResult = this.
|
|
979
|
+
suspendResult = this.qof_1.qoe_1(this);
|
|
980
980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
981
981
|
return suspendResult;
|
|
982
982
|
}
|
|
983
983
|
continue $sm;
|
|
984
984
|
} else {
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
985
|
+
this.tof_1 = this.qof_1.uoe_1;
|
|
986
|
+
this.sof_1 = null;
|
|
987
987
|
this.l9_1 = 2;
|
|
988
|
-
suspendResult = this.
|
|
988
|
+
suspendResult = this.tof_1.k2t(this.sof_1, this);
|
|
989
989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
990
990
|
return suspendResult;
|
|
991
991
|
}
|
|
@@ -993,19 +993,19 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
case 2:
|
|
996
|
-
this.
|
|
996
|
+
this.uof_1 = Unit_instance;
|
|
997
997
|
this.l9_1 = 3;
|
|
998
998
|
continue $sm;
|
|
999
999
|
case 3:
|
|
1000
1000
|
this.m9_1 = 10;
|
|
1001
|
-
this.
|
|
1001
|
+
this.qof_1.toe_1 = true;
|
|
1002
1002
|
this.l9_1 = 4;
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
case 4:
|
|
1005
1005
|
this.m9_1 = 9;
|
|
1006
|
-
if (equals(this.
|
|
1006
|
+
if (equals(this.vof_1, this.qof_1.soe_1)) {
|
|
1007
1007
|
this.l9_1 = 5;
|
|
1008
|
-
suspendResult = this.
|
|
1008
|
+
suspendResult = this.qof_1.qoe_1(this);
|
|
1009
1009
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1010
1010
|
return suspendResult;
|
|
1011
1011
|
}
|
|
@@ -1017,7 +1017,7 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
1017
1017
|
|
|
1018
1018
|
case 5:
|
|
1019
1019
|
var ARGUMENT = suspendResult;
|
|
1020
|
-
this.
|
|
1020
|
+
this.qof_1.soe_1 = ARGUMENT;
|
|
1021
1021
|
this.l9_1 = 6;
|
|
1022
1022
|
continue $sm;
|
|
1023
1023
|
case 6:
|
|
@@ -1025,36 +1025,36 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
1025
1025
|
continue $sm;
|
|
1026
1026
|
case 7:
|
|
1027
1027
|
this.m9_1 = 10;
|
|
1028
|
-
this.
|
|
1029
|
-
this.
|
|
1028
|
+
this.qof_1.toe_1 = false;
|
|
1029
|
+
this.uof_1 = this.qof_1.soe_1;
|
|
1030
1030
|
this.m9_1 = 14;
|
|
1031
1031
|
this.l9_1 = 8;
|
|
1032
1032
|
continue $sm;
|
|
1033
1033
|
case 8:
|
|
1034
|
-
var tmp_0 = this.
|
|
1034
|
+
var tmp_0 = this.uof_1;
|
|
1035
1035
|
this.m9_1 = 14;
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1036
|
+
this.tof_1.l2t(this.sof_1);
|
|
1037
|
+
this.rof_1 = tmp_0;
|
|
1038
1038
|
this.l9_1 = 12;
|
|
1039
1039
|
continue $sm;
|
|
1040
1040
|
case 9:
|
|
1041
1041
|
this.m9_1 = 10;
|
|
1042
1042
|
var t = this.o9_1;
|
|
1043
|
-
this.
|
|
1043
|
+
this.qof_1.toe_1 = false;
|
|
1044
1044
|
throw t;
|
|
1045
1045
|
case 10:
|
|
1046
1046
|
this.m9_1 = 14;
|
|
1047
1047
|
var t_0 = this.o9_1;
|
|
1048
|
-
this.
|
|
1048
|
+
this.tof_1.l2t(this.sof_1);
|
|
1049
1049
|
throw t_0;
|
|
1050
1050
|
case 11:
|
|
1051
1051
|
var ARGUMENT_0 = suspendResult;
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1052
|
+
this.qof_1.soe_1 = ARGUMENT_0;
|
|
1053
|
+
this.rof_1 = this.qof_1.soe_1;
|
|
1054
1054
|
this.l9_1 = 12;
|
|
1055
1055
|
continue $sm;
|
|
1056
1056
|
case 12:
|
|
1057
|
-
return this.
|
|
1057
|
+
return this.rof_1;
|
|
1058
1058
|
case 13:
|
|
1059
1059
|
return suspendResult;
|
|
1060
1060
|
case 14:
|
|
@@ -1073,74 +1073,74 @@ protoOf($loadTokenCOROUTINE$).t9 = function () {
|
|
|
1073
1073
|
};
|
|
1074
1074
|
function AuthTokenHolder(loadTokens, cacheTokens) {
|
|
1075
1075
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1076
|
+
this.qoe_1 = loadTokens;
|
|
1077
|
+
this.roe_1 = cacheTokens;
|
|
1078
|
+
this.soe_1 = null;
|
|
1079
|
+
this.toe_1 = false;
|
|
1080
|
+
this.uoe_1 = Mutex();
|
|
1081
|
+
this.voe_1 = new SetTokenContext();
|
|
1082
1082
|
}
|
|
1083
|
-
protoOf(AuthTokenHolder).
|
|
1083
|
+
protoOf(AuthTokenHolder).wof = function ($completion) {
|
|
1084
1084
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1085
1085
|
tmp.n9_1 = Unit_instance;
|
|
1086
1086
|
tmp.o9_1 = null;
|
|
1087
1087
|
return tmp.t9();
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(AuthTokenHolder).
|
|
1090
|
-
var prevValue = this.
|
|
1091
|
-
var lockedByLoad = this.
|
|
1089
|
+
protoOf(AuthTokenHolder).xof = function (nonCancellable, block, $completion) {
|
|
1090
|
+
var prevValue = this.soe_1;
|
|
1091
|
+
var lockedByLoad = this.toe_1;
|
|
1092
1092
|
var tmp;
|
|
1093
1093
|
if (nonCancellable) {
|
|
1094
1094
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1095
|
-
tmp = $completion.r9().yj(NonCancellable_getInstance()).yj(this.
|
|
1095
|
+
tmp = $completion.r9().yj(NonCancellable_getInstance()).yj(this.voe_1);
|
|
1096
1096
|
} else {
|
|
1097
1097
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1098
|
-
tmp = $completion.r9().yj(this.
|
|
1098
|
+
tmp = $completion.r9().yj(this.voe_1);
|
|
1099
1099
|
}
|
|
1100
1100
|
var context = tmp;
|
|
1101
1101
|
return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
|
|
1102
1102
|
};
|
|
1103
|
-
protoOf(AuthTokenHolder).
|
|
1104
|
-
if (this.
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1103
|
+
protoOf(AuthTokenHolder).yof = function (coroutineScope) {
|
|
1104
|
+
if (this.uoe_1.j2t()) {
|
|
1105
|
+
this.soe_1 = null;
|
|
1106
|
+
this.uoe_1.m2t();
|
|
1107
1107
|
} else {
|
|
1108
1108
|
launch(coroutineScope, VOID, VOID, AuthTokenHolder$clearToken$slambda_0(this, null));
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
|
-
protoOf(AuthTokenHolder).
|
|
1111
|
+
protoOf(AuthTokenHolder).zof = function (coroutineScope, $super) {
|
|
1112
1112
|
coroutineScope = coroutineScope === VOID ? GlobalScope_instance : coroutineScope;
|
|
1113
1113
|
var tmp;
|
|
1114
1114
|
if ($super === VOID) {
|
|
1115
|
-
this.
|
|
1115
|
+
this.yof(coroutineScope);
|
|
1116
1116
|
tmp = Unit_instance;
|
|
1117
1117
|
} else {
|
|
1118
|
-
tmp = $super.
|
|
1118
|
+
tmp = $super.yof.call(this, coroutineScope);
|
|
1119
1119
|
}
|
|
1120
1120
|
return tmp;
|
|
1121
1121
|
};
|
|
1122
1122
|
function BearerTokens(accessToken, refreshToken) {
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1123
|
+
this.aog_1 = accessToken;
|
|
1124
|
+
this.bog_1 = refreshToken;
|
|
1125
1125
|
}
|
|
1126
1126
|
function bearer(_this__u8e3s4, block) {
|
|
1127
1127
|
// Inline function 'kotlin.apply' call
|
|
1128
1128
|
var this_0 = new BearerAuthConfig();
|
|
1129
1129
|
block(this_0);
|
|
1130
1130
|
// Inline function 'kotlin.with' call
|
|
1131
|
-
_this__u8e3s4.
|
|
1131
|
+
_this__u8e3s4.fob_1.e1(new BearerAuthProvider(this_0.cog_1, this_0.dog_1, this_0.eog_1, this_0.fog_1, this_0.gog_1, this_0.hog_1));
|
|
1132
1132
|
}
|
|
1133
1133
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1134
1134
|
CoroutineImpl.call(this, resultContinuation);
|
|
1135
1135
|
}
|
|
1136
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1137
|
-
var tmp = this.
|
|
1136
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).sog = function (_this__u8e3s4, $completion) {
|
|
1137
|
+
var tmp = this.tog(_this__u8e3s4, $completion);
|
|
1138
1138
|
tmp.n9_1 = Unit_instance;
|
|
1139
1139
|
tmp.o9_1 = null;
|
|
1140
1140
|
return tmp.t9();
|
|
1141
1141
|
};
|
|
1142
1142
|
protoOf(BearerAuthConfig$refreshTokens$slambda).fa = function (p1, $completion) {
|
|
1143
|
-
return this.
|
|
1143
|
+
return this.sog(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1144
1144
|
};
|
|
1145
1145
|
protoOf(BearerAuthConfig$refreshTokens$slambda).t9 = function () {
|
|
1146
1146
|
var suspendResult = this.n9_1;
|
|
@@ -1159,15 +1159,15 @@ protoOf(BearerAuthConfig$refreshTokens$slambda).t9 = function () {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
while (true);
|
|
1161
1161
|
};
|
|
1162
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1162
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).tog = function (_this__u8e3s4, completion) {
|
|
1163
1163
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1164
|
-
i.
|
|
1164
|
+
i.rog_1 = _this__u8e3s4;
|
|
1165
1165
|
return i;
|
|
1166
1166
|
};
|
|
1167
1167
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1168
1168
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1169
1169
|
var l = function (_this__u8e3s4, $completion) {
|
|
1170
|
-
return i.
|
|
1170
|
+
return i.sog(_this__u8e3s4, $completion);
|
|
1171
1171
|
};
|
|
1172
1172
|
l.$arity = 1;
|
|
1173
1173
|
return l;
|
|
@@ -1175,14 +1175,14 @@ function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
|
1175
1175
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1176
1176
|
CoroutineImpl.call(this, resultContinuation);
|
|
1177
1177
|
}
|
|
1178
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1179
|
-
var tmp = this.
|
|
1178
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).coh = function ($completion) {
|
|
1179
|
+
var tmp = this.doh($completion);
|
|
1180
1180
|
tmp.n9_1 = Unit_instance;
|
|
1181
1181
|
tmp.o9_1 = null;
|
|
1182
1182
|
return tmp.t9();
|
|
1183
1183
|
};
|
|
1184
1184
|
protoOf(BearerAuthConfig$loadTokens$slambda).cb = function ($completion) {
|
|
1185
|
-
return this.
|
|
1185
|
+
return this.coh($completion);
|
|
1186
1186
|
};
|
|
1187
1187
|
protoOf(BearerAuthConfig$loadTokens$slambda).t9 = function () {
|
|
1188
1188
|
var suspendResult = this.n9_1;
|
|
@@ -1201,13 +1201,13 @@ protoOf(BearerAuthConfig$loadTokens$slambda).t9 = function () {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
while (true);
|
|
1203
1203
|
};
|
|
1204
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1204
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).doh = function (completion) {
|
|
1205
1205
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1206
1206
|
};
|
|
1207
1207
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1208
1208
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1209
1209
|
var l = function ($completion) {
|
|
1210
|
-
return i.
|
|
1210
|
+
return i.coh($completion);
|
|
1211
1211
|
};
|
|
1212
1212
|
l.$arity = 0;
|
|
1213
1213
|
return l;
|
|
@@ -1217,32 +1217,32 @@ function BearerAuthConfig$sendWithoutRequest$lambda(it) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
function BearerAuthConfig() {
|
|
1219
1219
|
var tmp = this;
|
|
1220
|
-
tmp.
|
|
1220
|
+
tmp.cog_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1221
1221
|
var tmp_0 = this;
|
|
1222
|
-
tmp_0.
|
|
1222
|
+
tmp_0.dog_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1223
1223
|
var tmp_1 = this;
|
|
1224
|
-
tmp_1.
|
|
1225
|
-
this.
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1224
|
+
tmp_1.eog_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1225
|
+
this.fog_1 = null;
|
|
1226
|
+
this.gog_1 = true;
|
|
1227
|
+
this.hog_1 = false;
|
|
1228
1228
|
}
|
|
1229
|
-
protoOf(BearerAuthConfig).
|
|
1230
|
-
this.
|
|
1229
|
+
protoOf(BearerAuthConfig).eoh = function (block) {
|
|
1230
|
+
this.cog_1 = block;
|
|
1231
1231
|
};
|
|
1232
|
-
protoOf(BearerAuthConfig).
|
|
1233
|
-
this.
|
|
1232
|
+
protoOf(BearerAuthConfig).foh = function (block) {
|
|
1233
|
+
this.dog_1 = block;
|
|
1234
1234
|
};
|
|
1235
1235
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1236
|
+
this.goh_1 = client;
|
|
1237
|
+
this.hoh_1 = response;
|
|
1238
|
+
this.ioh_1 = oldTokens;
|
|
1239
1239
|
}
|
|
1240
1240
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1241
1241
|
return true;
|
|
1242
1242
|
}
|
|
1243
1243
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1244
1244
|
return function ($this$headers) {
|
|
1245
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1245
|
+
var tokenValue = 'Bearer ' + $token.aog_1;
|
|
1246
1246
|
var tmp;
|
|
1247
1247
|
if ($this$headers.g3i('Authorization')) {
|
|
1248
1248
|
$this$headers.v3i('Authorization');
|
|
@@ -1257,18 +1257,18 @@ function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
1259
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1260
|
+
this.roh_1 = this$0;
|
|
1261
|
+
this.soh_1 = $response;
|
|
1262
1262
|
CoroutineImpl.call(this, resultContinuation);
|
|
1263
1263
|
}
|
|
1264
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1265
|
-
var tmp = this.
|
|
1264
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).coh = function ($completion) {
|
|
1265
|
+
var tmp = this.doh($completion);
|
|
1266
1266
|
tmp.n9_1 = Unit_instance;
|
|
1267
1267
|
tmp.o9_1 = null;
|
|
1268
1268
|
return tmp.t9();
|
|
1269
1269
|
};
|
|
1270
1270
|
protoOf(BearerAuthProvider$refreshToken$slambda).cb = function ($completion) {
|
|
1271
|
-
return this.
|
|
1271
|
+
return this.coh($completion);
|
|
1272
1272
|
};
|
|
1273
1273
|
protoOf(BearerAuthProvider$refreshToken$slambda).t9 = function () {
|
|
1274
1274
|
var suspendResult = this.n9_1;
|
|
@@ -1278,10 +1278,10 @@ protoOf(BearerAuthProvider$refreshToken$slambda).t9 = function () {
|
|
|
1278
1278
|
switch (tmp) {
|
|
1279
1279
|
case 0:
|
|
1280
1280
|
this.m9_1 = 3;
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1281
|
+
this.toh_1 = this.roh_1.voh_1;
|
|
1282
|
+
this.uoh_1 = this.soh_1.u4n().y4k_1;
|
|
1283
1283
|
this.l9_1 = 1;
|
|
1284
|
-
suspendResult = this.
|
|
1284
|
+
suspendResult = this.roh_1.zoh_1.wof(this);
|
|
1285
1285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1286
1286
|
return suspendResult;
|
|
1287
1287
|
}
|
|
@@ -1289,9 +1289,9 @@ protoOf(BearerAuthProvider$refreshToken$slambda).t9 = function () {
|
|
|
1289
1289
|
continue $sm;
|
|
1290
1290
|
case 1:
|
|
1291
1291
|
var ARGUMENT = suspendResult;
|
|
1292
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1292
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.uoh_1, this.soh_1, ARGUMENT);
|
|
1293
1293
|
this.l9_1 = 2;
|
|
1294
|
-
suspendResult = this.
|
|
1294
|
+
suspendResult = this.toh_1(ARGUMENT_0, this);
|
|
1295
1295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1296
1296
|
return suspendResult;
|
|
1297
1297
|
}
|
|
@@ -1313,22 +1313,22 @@ protoOf(BearerAuthProvider$refreshToken$slambda).t9 = function () {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
while (true);
|
|
1315
1315
|
};
|
|
1316
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1317
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1316
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).doh = function (completion) {
|
|
1317
|
+
return new BearerAuthProvider$refreshToken$slambda(this.roh_1, this.soh_1, completion);
|
|
1318
1318
|
};
|
|
1319
1319
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1320
1320
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1321
1321
|
var l = function ($completion) {
|
|
1322
|
-
return i.
|
|
1322
|
+
return i.coh($completion);
|
|
1323
1323
|
};
|
|
1324
1324
|
l.$arity = 0;
|
|
1325
1325
|
return l;
|
|
1326
1326
|
}
|
|
1327
1327
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1328
1328
|
CoroutineImpl.call(this, resultContinuation);
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1329
|
+
this.ioi_1 = _this__u8e3s4;
|
|
1330
|
+
this.joi_1 = request;
|
|
1331
|
+
this.koi_1 = authHeader;
|
|
1332
1332
|
}
|
|
1333
1333
|
protoOf($addRequestHeadersCOROUTINE$).t9 = function () {
|
|
1334
1334
|
var suspendResult = this.n9_1;
|
|
@@ -1339,7 +1339,7 @@ protoOf($addRequestHeadersCOROUTINE$).t9 = function () {
|
|
|
1339
1339
|
case 0:
|
|
1340
1340
|
this.m9_1 = 2;
|
|
1341
1341
|
this.l9_1 = 1;
|
|
1342
|
-
suspendResult = this.
|
|
1342
|
+
suspendResult = this.ioi_1.zoh_1.wof(this);
|
|
1343
1343
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1344
1344
|
return suspendResult;
|
|
1345
1345
|
}
|
|
@@ -1355,7 +1355,7 @@ protoOf($addRequestHeadersCOROUTINE$).t9 = function () {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
var token = tmp_0;
|
|
1358
|
-
headers(this.
|
|
1358
|
+
headers(this.joi_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.joi_1));
|
|
1359
1359
|
return Unit_instance;
|
|
1360
1360
|
case 2:
|
|
1361
1361
|
throw this.o9_1;
|
|
@@ -1373,8 +1373,8 @@ protoOf($addRequestHeadersCOROUTINE$).t9 = function () {
|
|
|
1373
1373
|
};
|
|
1374
1374
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1375
1375
|
CoroutineImpl.call(this, resultContinuation);
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1376
|
+
this.toi_1 = _this__u8e3s4;
|
|
1377
|
+
this.uoi_1 = response;
|
|
1378
1378
|
}
|
|
1379
1379
|
protoOf($refreshTokenCOROUTINE$).t9 = function () {
|
|
1380
1380
|
var suspendResult = this.n9_1;
|
|
@@ -1385,7 +1385,7 @@ protoOf($refreshTokenCOROUTINE$).t9 = function () {
|
|
|
1385
1385
|
case 0:
|
|
1386
1386
|
this.m9_1 = 2;
|
|
1387
1387
|
this.l9_1 = 1;
|
|
1388
|
-
suspendResult = this.
|
|
1388
|
+
suspendResult = this.toi_1.zoh_1.xof(this.toi_1.yoh_1, BearerAuthProvider$refreshToken$slambda_0(this.toi_1, this.uoi_1, null), this);
|
|
1389
1389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1390
1390
|
return suspendResult;
|
|
1391
1391
|
}
|
|
@@ -1418,32 +1418,32 @@ function BearerAuthProvider(refreshTokens, loadTokens, sendWithoutRequestCallbac
|
|
|
1418
1418
|
sendWithoutRequestCallback = tmp;
|
|
1419
1419
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1420
1420
|
nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1421
|
+
this.voh_1 = refreshTokens;
|
|
1422
|
+
this.woh_1 = sendWithoutRequestCallback;
|
|
1423
|
+
this.xoh_1 = realm;
|
|
1424
|
+
this.yoh_1 = nonCancellableRefresh;
|
|
1425
|
+
this.zoh_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1426
1426
|
}
|
|
1427
|
-
protoOf(BearerAuthProvider).
|
|
1427
|
+
protoOf(BearerAuthProvider).yod = function () {
|
|
1428
1428
|
var message = 'Deprecated';
|
|
1429
1429
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1430
1430
|
};
|
|
1431
|
-
protoOf(BearerAuthProvider).
|
|
1432
|
-
return this.
|
|
1431
|
+
protoOf(BearerAuthProvider).bod = function (request) {
|
|
1432
|
+
return this.woh_1(request);
|
|
1433
1433
|
};
|
|
1434
|
-
protoOf(BearerAuthProvider).
|
|
1434
|
+
protoOf(BearerAuthProvider).iob = function (auth) {
|
|
1435
1435
|
if (!(auth.j41_1 === 'Bearer')) {
|
|
1436
1436
|
get_LOGGER().x3n('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1437
1437
|
return false;
|
|
1438
1438
|
}
|
|
1439
1439
|
var tmp;
|
|
1440
|
-
if (this.
|
|
1440
|
+
if (this.xoh_1 == null) {
|
|
1441
1441
|
tmp = true;
|
|
1442
1442
|
} else {
|
|
1443
1443
|
if (!(auth instanceof Parameterized)) {
|
|
1444
1444
|
tmp = false;
|
|
1445
1445
|
} else {
|
|
1446
|
-
tmp = auth.k3q('realm') == this.
|
|
1446
|
+
tmp = auth.k3q('realm') == this.xoh_1;
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
var isSameRealm = tmp;
|
|
@@ -1452,27 +1452,27 @@ protoOf(BearerAuthProvider).kob = function (auth) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
return isSameRealm;
|
|
1454
1454
|
};
|
|
1455
|
-
protoOf(BearerAuthProvider).
|
|
1455
|
+
protoOf(BearerAuthProvider).xod = function (request, authHeader, $completion) {
|
|
1456
1456
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1457
1457
|
tmp.n9_1 = Unit_instance;
|
|
1458
1458
|
tmp.o9_1 = null;
|
|
1459
1459
|
return tmp.t9();
|
|
1460
1460
|
};
|
|
1461
|
-
protoOf(BearerAuthProvider).
|
|
1461
|
+
protoOf(BearerAuthProvider).wod = function (response, $completion) {
|
|
1462
1462
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1463
1463
|
tmp.n9_1 = Unit_instance;
|
|
1464
1464
|
tmp.o9_1 = null;
|
|
1465
1465
|
return tmp.t9();
|
|
1466
1466
|
};
|
|
1467
|
-
protoOf(BearerAuthProvider).
|
|
1468
|
-
this.
|
|
1467
|
+
protoOf(BearerAuthProvider).voi = function () {
|
|
1468
|
+
this.zoh_1.zof();
|
|
1469
1469
|
};
|
|
1470
1470
|
//region block: post-declaration
|
|
1471
1471
|
protoOf(SetTokenContext).y9 = get;
|
|
1472
1472
|
protoOf(SetTokenContext).xj = fold;
|
|
1473
1473
|
protoOf(SetTokenContext).wj = minusKey;
|
|
1474
1474
|
protoOf(SetTokenContext).yj = plus;
|
|
1475
|
-
protoOf(BearerAuthProvider).
|
|
1475
|
+
protoOf(BearerAuthProvider).cod = addRequestHeaders$default;
|
|
1476
1476
|
//endregion
|
|
1477
1477
|
//region block: init
|
|
1478
1478
|
Companion_instance = new Companion();
|