@solibo/solibo-sdk 1.0.34 → 1.0.35
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.js +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1426 -1426
- package/KotlinBigInteger-bignum.js +1115 -1115
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/kotlin-kotlin-stdlib.js +20 -20
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +1819 -1819
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +451 -451
- package/kotlinx-serialization-kotlinx-serialization-json.js +1095 -1111
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +258 -258
- package/ktor-ktor-client-content-negotiation.js +45 -45
- package/ktor-ktor-client-core.js +2687 -2687
- package/ktor-ktor-client-logging.js +621 -621
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +320 -320
- package/ktor-ktor-http.js +901 -901
- package/ktor-ktor-io.js +632 -632
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +36 -36
- package/ktor-ktor-serialization.js +57 -57
- package/ktor-ktor-utils.js +671 -671
- package/ktor-ktor-websockets.js +383 -383
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +11791 -11474
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +18 -0
- package/solibo-sdk-sdk.js +1471 -1471
package/ktor-ktor-client-auth.js
CHANGED
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
98
98
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
99
99
|
function sendWithoutRequest(request) {
|
|
100
|
-
return this.
|
|
100
|
+
return this.on2();
|
|
101
101
|
}
|
|
102
102
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
103
103
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
104
|
-
return $super === VOID ? this.
|
|
104
|
+
return $super === VOID ? this.nn2(request, authHeader, $completion) : $super.nn2.call(this, request, authHeader, $completion);
|
|
105
105
|
}
|
|
106
106
|
function refreshToken(response, $completion) {
|
|
107
107
|
return true;
|
|
@@ -146,14 +146,14 @@
|
|
|
146
146
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
147
147
|
CoroutineImpl.call(this, resultContinuation);
|
|
148
148
|
}
|
|
149
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
150
|
-
var tmp = this.
|
|
149
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).umz = function (it, $completion) {
|
|
150
|
+
var tmp = this.v4j(it, $completion);
|
|
151
151
|
tmp.k9_1 = Unit_instance;
|
|
152
152
|
tmp.l9_1 = null;
|
|
153
153
|
return tmp.q9();
|
|
154
154
|
};
|
|
155
155
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).ca = function (p1, $completion) {
|
|
156
|
-
return this.
|
|
156
|
+
return this.umz(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
157
157
|
};
|
|
158
158
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).q9 = function () {
|
|
159
159
|
var suspendResult = this.k9_1;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
var tmp = this.i9_1;
|
|
163
163
|
if (tmp === 0) {
|
|
164
164
|
this.j9_1 = 1;
|
|
165
|
-
return this.
|
|
165
|
+
return this.tmz_1.v3p().equals(Companion_getInstance().l3l_1);
|
|
166
166
|
} else if (tmp === 1) {
|
|
167
167
|
throw this.l9_1;
|
|
168
168
|
}
|
|
@@ -172,15 +172,15 @@
|
|
|
172
172
|
}
|
|
173
173
|
while (true);
|
|
174
174
|
};
|
|
175
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
175
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).v4j = function (it, completion) {
|
|
176
176
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
177
|
-
i.
|
|
177
|
+
i.tmz_1 = it;
|
|
178
178
|
return i;
|
|
179
179
|
};
|
|
180
180
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
181
181
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
182
182
|
var l = function (it, $completion) {
|
|
183
|
-
return i.
|
|
183
|
+
return i.umz(it, $completion);
|
|
184
184
|
};
|
|
185
185
|
l.$arity = 1;
|
|
186
186
|
return l;
|
|
@@ -188,16 +188,16 @@
|
|
|
188
188
|
function AuthConfig() {
|
|
189
189
|
var tmp = this;
|
|
190
190
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
191
|
-
tmp.
|
|
191
|
+
tmp.vmz_1 = ArrayList_init_$Create$();
|
|
192
192
|
var tmp_0 = this;
|
|
193
|
-
tmp_0.
|
|
193
|
+
tmp_0.wmz_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
194
194
|
}
|
|
195
195
|
function AtomicCounter() {
|
|
196
|
-
this.
|
|
196
|
+
this.xmz_1 = atomic$int$1(0);
|
|
197
197
|
}
|
|
198
198
|
function get_authProviders(_this__u8e3s4) {
|
|
199
199
|
_init_properties_Auth_kt__9ob1dk();
|
|
200
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
200
|
+
var tmp0_elvis_lhs = _this__u8e3s4.j48_1.j32(get_AuthProvidersKey());
|
|
201
201
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
202
202
|
}
|
|
203
203
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
}
|
|
210
210
|
function Auth$lambda($this$createClientPlugin) {
|
|
211
211
|
_init_properties_Auth_kt__9ob1dk();
|
|
212
|
-
var providers = toList($this$createClientPlugin.
|
|
213
|
-
$this$createClientPlugin.
|
|
212
|
+
var providers = toList($this$createClientPlugin.v4i_1.vmz_1);
|
|
213
|
+
$this$createClientPlugin.u4i_1.j48_1.l32(get_AuthProvidersKey(), providers);
|
|
214
214
|
var tokenVersions = new ConcurrentMap();
|
|
215
215
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
216
216
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -233,9 +233,9 @@
|
|
|
233
233
|
var tmp$ret$0 = tmp_0;
|
|
234
234
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
235
235
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
236
|
-
$this$createClientPlugin.
|
|
236
|
+
$this$createClientPlugin.v4x(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
237
237
|
var tmp_2 = Send_instance;
|
|
238
|
-
$this$createClientPlugin.
|
|
238
|
+
$this$createClientPlugin.y4i(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
239
239
|
return Unit_instance;
|
|
240
240
|
}
|
|
241
241
|
function Auth$lambda$refreshTokenIfNeeded$lambda() {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
return LinkedHashMap_init_$Create$();
|
|
249
249
|
}
|
|
250
250
|
function invoke$findProvider(call, candidateProviders) {
|
|
251
|
-
var headerValues = call.
|
|
251
|
+
var headerValues = call.f49().v3j().n36('WWW-Authenticate');
|
|
252
252
|
var tmp;
|
|
253
253
|
if (headerValues == null) {
|
|
254
254
|
tmp = null;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
var _iterator__ex2g4s_0 = authHeaders.t();
|
|
277
277
|
while (_iterator__ex2g4s_0.u()) {
|
|
278
278
|
var element = _iterator__ex2g4s_0.v();
|
|
279
|
-
if (provider.
|
|
279
|
+
if (provider.ymz(element)) {
|
|
280
280
|
tmp$ret$4 = element;
|
|
281
281
|
break $l$block;
|
|
282
282
|
}
|
|
@@ -289,8 +289,8 @@
|
|
|
289
289
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
290
290
|
var this_0 = get_LOGGER();
|
|
291
291
|
if (get_isTraceEnabled(this_0)) {
|
|
292
|
-
var tmp$ret$5 = 'Unauthorized response ' + call.
|
|
293
|
-
this_0.
|
|
292
|
+
var tmp$ret$5 = 'Unauthorized response ' + call.o4b().y4b().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
293
|
+
this_0.z3b(tmp$ret$5);
|
|
294
294
|
}
|
|
295
295
|
tmp_0 = null;
|
|
296
296
|
} else {
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
var _iterator__ex2g4s_2 = candidateProviders.t();
|
|
308
308
|
while (_iterator__ex2g4s_2.u()) {
|
|
309
309
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
310
|
-
if (element_1.
|
|
310
|
+
if (element_1.ymz(element_0)) {
|
|
311
311
|
tmp$ret$8 = element_1;
|
|
312
312
|
break $l$block_0;
|
|
313
313
|
}
|
|
@@ -354,21 +354,21 @@
|
|
|
354
354
|
return LinkedHashMap_init_$Create$();
|
|
355
355
|
}
|
|
356
356
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
357
|
+
this.kn1_1 = $providers;
|
|
358
|
+
this.ln1_1 = $tokenVersions;
|
|
359
|
+
this.mn1_1 = $tokenVersionsAttributeKey;
|
|
360
360
|
CoroutineImpl.call(this, resultContinuation);
|
|
361
361
|
}
|
|
362
|
-
protoOf(Auth$lambda$slambda).
|
|
363
|
-
var tmp = this.
|
|
362
|
+
protoOf(Auth$lambda$slambda).j4y = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
363
|
+
var tmp = this.k4y($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
364
364
|
tmp.k9_1 = Unit_instance;
|
|
365
365
|
tmp.l9_1 = null;
|
|
366
366
|
return tmp.q9();
|
|
367
367
|
};
|
|
368
|
-
protoOf(Auth$lambda$slambda).
|
|
368
|
+
protoOf(Auth$lambda$slambda).l4y = function (p1, p2, p3, $completion) {
|
|
369
369
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
370
370
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
371
|
-
return this.
|
|
371
|
+
return this.j4y(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
372
372
|
};
|
|
373
373
|
protoOf(Auth$lambda$slambda).q9 = function () {
|
|
374
374
|
var suspendResult = this.k9_1;
|
|
@@ -378,37 +378,37 @@
|
|
|
378
378
|
switch (tmp) {
|
|
379
379
|
case 0:
|
|
380
380
|
this.j9_1 = 4;
|
|
381
|
-
var tmp0 = this.
|
|
381
|
+
var tmp0 = this.kn1_1;
|
|
382
382
|
var destination = ArrayList_init_$Create$();
|
|
383
383
|
var _iterator__ex2g4s = tmp0.t();
|
|
384
384
|
while (_iterator__ex2g4s.u()) {
|
|
385
385
|
var element = _iterator__ex2g4s.v();
|
|
386
|
-
if (element.
|
|
386
|
+
if (element.rn1(this.on1_1)) {
|
|
387
387
|
destination.e1(element);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
this.
|
|
391
|
+
this.qn1_1 = destination.t();
|
|
392
392
|
this.i9_1 = 1;
|
|
393
393
|
continue $sm;
|
|
394
394
|
case 1:
|
|
395
|
-
if (!this.
|
|
395
|
+
if (!this.qn1_1.u()) {
|
|
396
396
|
this.i9_1 = 3;
|
|
397
397
|
continue $sm;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
var element_0 = this.
|
|
400
|
+
var element_0 = this.qn1_1.v();
|
|
401
401
|
var this_0 = get_LOGGER();
|
|
402
402
|
if (get_isTraceEnabled(this_0)) {
|
|
403
|
-
this_0.
|
|
403
|
+
this_0.z3b('Adding auth headers for ' + this.on1_1.f4a_1.toString() + ' from provider ' + toString(element_0));
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
var tokenVersion = this.
|
|
407
|
-
var requestTokenVersions = this.
|
|
408
|
-
var value = tokenVersion.
|
|
406
|
+
var tokenVersion = this.ln1_1.q3b(element_0, Auth$lambda$slambda$lambda);
|
|
407
|
+
var requestTokenVersions = this.on1_1.k4a_1.o32(this.mn1_1, Auth$lambda$slambda$lambda_0);
|
|
408
|
+
var value = tokenVersion.xmz_1.kotlinx$atomicfu$value;
|
|
409
409
|
requestTokenVersions.c3(element_0, value);
|
|
410
410
|
this.i9_1 = 2;
|
|
411
|
-
suspendResult = element_0.
|
|
411
|
+
suspendResult = element_0.sn1(this.on1_1, VOID, this);
|
|
412
412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
413
413
|
return suspendResult;
|
|
414
414
|
}
|
|
@@ -433,37 +433,37 @@
|
|
|
433
433
|
}
|
|
434
434
|
while (true);
|
|
435
435
|
};
|
|
436
|
-
protoOf(Auth$lambda$slambda).
|
|
437
|
-
var i = new Auth$lambda$slambda(this.
|
|
438
|
-
i.
|
|
439
|
-
i.
|
|
440
|
-
i.
|
|
436
|
+
protoOf(Auth$lambda$slambda).k4y = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
437
|
+
var i = new Auth$lambda$slambda(this.kn1_1, this.ln1_1, this.mn1_1, completion);
|
|
438
|
+
i.nn1_1 = $this$onRequest;
|
|
439
|
+
i.on1_1 = request;
|
|
440
|
+
i.pn1_1 = _unused_var__etf5q3;
|
|
441
441
|
return i;
|
|
442
442
|
};
|
|
443
443
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
444
444
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
445
445
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
446
|
-
return i.
|
|
446
|
+
return i.j4y($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
447
447
|
};
|
|
448
448
|
l.$arity = 3;
|
|
449
449
|
return l;
|
|
450
450
|
}
|
|
451
451
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
452
|
+
this.bn2_1 = $this_createClientPlugin;
|
|
453
|
+
this.cn2_1 = $providers;
|
|
454
|
+
this.dn2_1 = $tokenVersions;
|
|
455
|
+
this.en2_1 = $tokenVersionsAttributeKey;
|
|
456
456
|
CoroutineImpl.call(this, resultContinuation);
|
|
457
457
|
}
|
|
458
|
-
protoOf(Auth$lambda$slambda_1).
|
|
459
|
-
var tmp = this.
|
|
458
|
+
protoOf(Auth$lambda$slambda_1).x4p = function ($this$on, originalRequest, $completion) {
|
|
459
|
+
var tmp = this.y4p($this$on, originalRequest, $completion);
|
|
460
460
|
tmp.k9_1 = Unit_instance;
|
|
461
461
|
tmp.l9_1 = null;
|
|
462
462
|
return tmp.q9();
|
|
463
463
|
};
|
|
464
464
|
protoOf(Auth$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
465
465
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
466
|
-
return this.
|
|
466
|
+
return this.x4p(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
467
467
|
};
|
|
468
468
|
protoOf(Auth$lambda$slambda_1).q9 = function () {
|
|
469
469
|
var suspendResult = this.k9_1;
|
|
@@ -474,16 +474,16 @@
|
|
|
474
474
|
case 0:
|
|
475
475
|
this.j9_1 = 10;
|
|
476
476
|
this.i9_1 = 1;
|
|
477
|
-
suspendResult = this.
|
|
477
|
+
suspendResult = this.fn2_1.b4q(this.gn2_1, this);
|
|
478
478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
479
479
|
return suspendResult;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
continue $sm;
|
|
483
483
|
case 1:
|
|
484
|
-
this.
|
|
484
|
+
this.ln2_1 = suspendResult;
|
|
485
485
|
this.i9_1 = 2;
|
|
486
|
-
suspendResult = this.
|
|
486
|
+
suspendResult = this.bn2_1.v4i_1.wmz_1(this.ln2_1.f49(), this);
|
|
487
487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
488
488
|
return suspendResult;
|
|
489
489
|
}
|
|
@@ -491,22 +491,22 @@
|
|
|
491
491
|
continue $sm;
|
|
492
492
|
case 2:
|
|
493
493
|
if (!suspendResult) {
|
|
494
|
-
return this.
|
|
494
|
+
return this.ln2_1;
|
|
495
495
|
} else {
|
|
496
496
|
this.i9_1 = 3;
|
|
497
497
|
continue $sm;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
case 3:
|
|
501
|
-
if (this.
|
|
502
|
-
return this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
501
|
+
if (this.ln2_1.o4b().p4b().k32(get_AuthCircuitBreaker()))
|
|
502
|
+
return this.ln2_1;
|
|
503
|
+
this.hn2_1 = this.ln2_1;
|
|
504
|
+
this.kn2_1 = HashSet_init_$Create$(this.cn2_1);
|
|
505
505
|
this.i9_1 = 4;
|
|
506
506
|
continue $sm;
|
|
507
507
|
case 4:
|
|
508
508
|
this.i9_1 = 5;
|
|
509
|
-
suspendResult = this.
|
|
509
|
+
suspendResult = this.bn2_1.v4i_1.wmz_1(this.hn2_1.f49(), this);
|
|
510
510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
511
511
|
return suspendResult;
|
|
512
512
|
}
|
|
@@ -520,33 +520,33 @@
|
|
|
520
520
|
|
|
521
521
|
var this_0 = get_LOGGER();
|
|
522
522
|
if (get_isTraceEnabled(this_0)) {
|
|
523
|
-
this_0.
|
|
523
|
+
this_0.z3b('Unauthorized response for ' + this.hn2_1.o4b().y4b().toString());
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
526
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.hn2_1, this.kn2_1);
|
|
527
527
|
var tmp_0;
|
|
528
528
|
if (tmp0_elvis_lhs == null) {
|
|
529
|
-
this.
|
|
529
|
+
this.fn2_1;
|
|
530
530
|
var this_1 = get_LOGGER();
|
|
531
531
|
if (get_isTraceEnabled(this_1)) {
|
|
532
|
-
this_1.
|
|
532
|
+
this_1.z3b('Can not find auth provider for ' + this.hn2_1.o4b().y4b().toString());
|
|
533
533
|
}
|
|
534
|
-
return this.
|
|
534
|
+
return this.hn2_1;
|
|
535
535
|
} else {
|
|
536
536
|
tmp_0 = tmp0_elvis_lhs;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
var _destruct__k2r9zo = tmp_0;
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
540
|
+
this.jn2_1 = _destruct__k2r9zo.xg();
|
|
541
|
+
this.in2_1 = _destruct__k2r9zo.yg();
|
|
542
542
|
var this_2 = get_LOGGER();
|
|
543
543
|
if (get_isTraceEnabled(this_2)) {
|
|
544
|
-
this_2.
|
|
544
|
+
this_2.z3b('Using provider ' + toString(this.jn2_1) + ' for ' + this.hn2_1.o4b().y4b().toString());
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
this.
|
|
547
|
+
this.kn2_1.j3(this.jn2_1);
|
|
548
548
|
this.i9_1 = 6;
|
|
549
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
549
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.dn2_1, this.en2_1, this.hn2_1, this.jn2_1, this.gn2_1, this);
|
|
550
550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
551
551
|
return suspendResult;
|
|
552
552
|
}
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
continue $sm;
|
|
555
555
|
case 6:
|
|
556
556
|
if (!suspendResult) {
|
|
557
|
-
return this.
|
|
557
|
+
return this.hn2_1;
|
|
558
558
|
} else {
|
|
559
559
|
this.i9_1 = 7;
|
|
560
560
|
continue $sm;
|
|
@@ -562,18 +562,18 @@
|
|
|
562
562
|
|
|
563
563
|
case 7:
|
|
564
564
|
this.i9_1 = 8;
|
|
565
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
565
|
+
suspendResult = invoke$executeWithNewToken(this.fn2_1, this.hn2_1, this.jn2_1, this.gn2_1, this.in2_1, this);
|
|
566
566
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
567
567
|
return suspendResult;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
continue $sm;
|
|
571
571
|
case 8:
|
|
572
|
-
this.
|
|
572
|
+
this.hn2_1 = suspendResult;
|
|
573
573
|
this.i9_1 = 4;
|
|
574
574
|
continue $sm;
|
|
575
575
|
case 9:
|
|
576
|
-
return this.
|
|
576
|
+
return this.hn2_1;
|
|
577
577
|
case 10:
|
|
578
578
|
throw this.l9_1;
|
|
579
579
|
}
|
|
@@ -588,27 +588,27 @@
|
|
|
588
588
|
}
|
|
589
589
|
while (true);
|
|
590
590
|
};
|
|
591
|
-
protoOf(Auth$lambda$slambda_1).
|
|
592
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
593
|
-
i.
|
|
594
|
-
i.
|
|
591
|
+
protoOf(Auth$lambda$slambda_1).y4p = function ($this$on, originalRequest, completion) {
|
|
592
|
+
var i = new Auth$lambda$slambda_1(this.bn2_1, this.cn2_1, this.dn2_1, this.en2_1, completion);
|
|
593
|
+
i.fn2_1 = $this$on;
|
|
594
|
+
i.gn2_1 = originalRequest;
|
|
595
595
|
return i;
|
|
596
596
|
};
|
|
597
597
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
598
598
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
599
599
|
var l = function ($this$on, originalRequest, $completion) {
|
|
600
|
-
return i.
|
|
600
|
+
return i.x4p($this$on, originalRequest, $completion);
|
|
601
601
|
};
|
|
602
602
|
l.$arity = 2;
|
|
603
603
|
return l;
|
|
604
604
|
}
|
|
605
605
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
606
606
|
CoroutineImpl.call(this, resultContinuation);
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
607
|
+
this.hn0_1 = tokenVersions;
|
|
608
|
+
this.in0_1 = tokenVersionsAttributeKey;
|
|
609
|
+
this.jn0_1 = call;
|
|
610
|
+
this.kn0_1 = provider;
|
|
611
|
+
this.ln0_1 = request;
|
|
612
612
|
}
|
|
613
613
|
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).q9 = function () {
|
|
614
614
|
var suspendResult = this.k9_1;
|
|
@@ -619,17 +619,17 @@
|
|
|
619
619
|
case 0:
|
|
620
620
|
this.j9_1 = 4;
|
|
621
621
|
var tmp_0 = this;
|
|
622
|
-
tmp_0.
|
|
622
|
+
tmp_0.mn0_1 = this.hn0_1.q3b(this.kn0_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
623
623
|
var tmp_1 = this;
|
|
624
|
-
tmp_1.
|
|
625
|
-
var requestTokenVersion = this.
|
|
626
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
624
|
+
tmp_1.nn0_1 = this.ln0_1.k4a_1.o32(this.in0_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
625
|
+
var requestTokenVersion = this.nn0_1.z2(this.kn0_1);
|
|
626
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.mn0_1.xmz_1.kotlinx$atomicfu$value) {
|
|
627
627
|
var this_0 = get_LOGGER();
|
|
628
628
|
if (get_isTraceEnabled(this_0)) {
|
|
629
|
-
this_0.
|
|
629
|
+
this_0.z3b('Refreshing token for ' + this.jn0_1.o4b().y4b().toString());
|
|
630
630
|
}
|
|
631
631
|
this.i9_1 = 1;
|
|
632
|
-
suspendResult = this.
|
|
632
|
+
suspendResult = this.kn0_1.mn2(this.jn0_1.f49(), this);
|
|
633
633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
634
634
|
return suspendResult;
|
|
635
635
|
}
|
|
@@ -643,13 +643,13 @@
|
|
|
643
643
|
if (!suspendResult) {
|
|
644
644
|
var this_1 = get_LOGGER();
|
|
645
645
|
if (get_isTraceEnabled(this_1)) {
|
|
646
|
-
this_1.
|
|
646
|
+
this_1.z3b('Refreshing token failed for ' + this.jn0_1.o4b().y4b().toString());
|
|
647
647
|
}
|
|
648
648
|
return false;
|
|
649
649
|
} else {
|
|
650
|
-
var tmp0 = this.
|
|
651
|
-
var tmp2 = this.
|
|
652
|
-
var value = this.
|
|
650
|
+
var tmp0 = this.nn0_1;
|
|
651
|
+
var tmp2 = this.kn0_1;
|
|
652
|
+
var value = this.mn0_1.xmz_1.atomicfu$incrementAndGet();
|
|
653
653
|
tmp0.c3(tmp2, value);
|
|
654
654
|
this.i9_1 = 2;
|
|
655
655
|
continue $sm;
|
|
@@ -676,11 +676,11 @@
|
|
|
676
676
|
};
|
|
677
677
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
678
678
|
CoroutineImpl.call(this, resultContinuation);
|
|
679
|
-
this.
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
679
|
+
this.wn0_1 = _this__u8e3s4;
|
|
680
|
+
this.xn0_1 = call;
|
|
681
|
+
this.yn0_1 = provider;
|
|
682
|
+
this.zn0_1 = oldRequest;
|
|
683
|
+
this.an1_1 = authHeader;
|
|
684
684
|
}
|
|
685
685
|
protoOf($invoke$executeWithNewTokenCOROUTINE$).q9 = function () {
|
|
686
686
|
var suspendResult = this.k9_1;
|
|
@@ -690,24 +690,24 @@
|
|
|
690
690
|
switch (tmp) {
|
|
691
691
|
case 0:
|
|
692
692
|
this.j9_1 = 3;
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
693
|
+
this.bn1_1 = new HttpRequestBuilder();
|
|
694
|
+
this.bn1_1.k4g(this.zn0_1);
|
|
695
695
|
this.i9_1 = 1;
|
|
696
|
-
suspendResult = this.
|
|
696
|
+
suspendResult = this.yn0_1.nn2(this.bn1_1, this.an1_1, this);
|
|
697
697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
698
698
|
return suspendResult;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
continue $sm;
|
|
702
702
|
case 1:
|
|
703
|
-
this.
|
|
703
|
+
this.bn1_1.k4a_1.l32(get_AuthCircuitBreaker(), Unit_instance);
|
|
704
704
|
var this_0 = get_LOGGER();
|
|
705
705
|
if (get_isTraceEnabled(this_0)) {
|
|
706
|
-
this_0.
|
|
706
|
+
this_0.z3b('Sending new request to ' + this.xn0_1.o4b().y4b().toString());
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
this.i9_1 = 2;
|
|
710
|
-
suspendResult = this.
|
|
710
|
+
suspendResult = this.wn0_1.b4q(this.bn1_1, this);
|
|
711
711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
712
712
|
return suspendResult;
|
|
713
713
|
}
|
|
@@ -794,20 +794,20 @@
|
|
|
794
794
|
return Companion_instance;
|
|
795
795
|
};
|
|
796
796
|
function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
797
|
+
this.xn2_1 = this$0;
|
|
798
|
+
this.yn2_1 = $prevValue;
|
|
799
|
+
this.zn2_1 = $lockedByLoad;
|
|
800
|
+
this.an3_1 = $block;
|
|
801
801
|
CoroutineImpl.call(this, resultContinuation);
|
|
802
802
|
}
|
|
803
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
804
|
-
var tmp = this.
|
|
803
|
+
protoOf(AuthTokenHolder$setToken$slambda).fn3 = function ($this$withContext, $completion) {
|
|
804
|
+
var tmp = this.e30($this$withContext, $completion);
|
|
805
805
|
tmp.k9_1 = Unit_instance;
|
|
806
806
|
tmp.l9_1 = null;
|
|
807
807
|
return tmp.q9();
|
|
808
808
|
};
|
|
809
809
|
protoOf(AuthTokenHolder$setToken$slambda).ca = function (p1, $completion) {
|
|
810
|
-
return this.
|
|
810
|
+
return this.fn3((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
811
811
|
};
|
|
812
812
|
protoOf(AuthTokenHolder$setToken$slambda).q9 = function () {
|
|
813
813
|
var suspendResult = this.k9_1;
|
|
@@ -817,24 +817,24 @@
|
|
|
817
817
|
switch (tmp) {
|
|
818
818
|
case 0:
|
|
819
819
|
this.j9_1 = 7;
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
820
|
+
this.dn3_1 = this.xn2_1.kn3_1;
|
|
821
|
+
this.cn3_1 = null;
|
|
822
822
|
this.i9_1 = 1;
|
|
823
|
-
suspendResult = this.
|
|
823
|
+
suspendResult = this.dn3_1.m2h(this.cn3_1, this);
|
|
824
824
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
825
825
|
return suspendResult;
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
continue $sm;
|
|
829
829
|
case 1:
|
|
830
|
-
this.
|
|
830
|
+
this.en3_1 = Unit_instance;
|
|
831
831
|
this.i9_1 = 2;
|
|
832
832
|
continue $sm;
|
|
833
833
|
case 2:
|
|
834
834
|
this.j9_1 = 6;
|
|
835
|
-
if (equals(this.
|
|
835
|
+
if (equals(this.yn2_1, this.xn2_1.in3_1) || this.zn2_1) {
|
|
836
836
|
this.i9_1 = 3;
|
|
837
|
-
suspendResult = this.
|
|
837
|
+
suspendResult = this.an3_1(this);
|
|
838
838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
839
839
|
return suspendResult;
|
|
840
840
|
}
|
|
@@ -846,23 +846,23 @@
|
|
|
846
846
|
|
|
847
847
|
case 3:
|
|
848
848
|
var ARGUMENT = suspendResult;
|
|
849
|
-
this.
|
|
849
|
+
this.xn2_1.in3_1 = ARGUMENT;
|
|
850
850
|
this.i9_1 = 4;
|
|
851
851
|
continue $sm;
|
|
852
852
|
case 4:
|
|
853
|
-
this.
|
|
853
|
+
this.en3_1 = this.xn2_1.in3_1;
|
|
854
854
|
this.j9_1 = 7;
|
|
855
855
|
this.i9_1 = 5;
|
|
856
856
|
continue $sm;
|
|
857
857
|
case 5:
|
|
858
|
-
var tmp_0 = this.
|
|
858
|
+
var tmp_0 = this.en3_1;
|
|
859
859
|
this.j9_1 = 7;
|
|
860
|
-
this.
|
|
860
|
+
this.dn3_1.n2h(this.cn3_1);
|
|
861
861
|
return tmp_0;
|
|
862
862
|
case 6:
|
|
863
863
|
this.j9_1 = 7;
|
|
864
864
|
var t = this.l9_1;
|
|
865
|
-
this.
|
|
865
|
+
this.dn3_1.n2h(this.cn3_1);
|
|
866
866
|
throw t;
|
|
867
867
|
case 7:
|
|
868
868
|
throw this.l9_1;
|
|
@@ -878,31 +878,31 @@
|
|
|
878
878
|
}
|
|
879
879
|
while (true);
|
|
880
880
|
};
|
|
881
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
882
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
883
|
-
i.
|
|
881
|
+
protoOf(AuthTokenHolder$setToken$slambda).e30 = function ($this$withContext, completion) {
|
|
882
|
+
var i = new AuthTokenHolder$setToken$slambda(this.xn2_1, this.yn2_1, this.zn2_1, this.an3_1, completion);
|
|
883
|
+
i.bn3_1 = $this$withContext;
|
|
884
884
|
return i;
|
|
885
885
|
};
|
|
886
886
|
function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
887
887
|
var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
|
|
888
888
|
var l = function ($this$withContext, $completion) {
|
|
889
|
-
return i.
|
|
889
|
+
return i.fn3($this$withContext, $completion);
|
|
890
890
|
};
|
|
891
891
|
l.$arity = 1;
|
|
892
892
|
return l;
|
|
893
893
|
}
|
|
894
894
|
function AuthTokenHolder$clearToken$slambda(this$0, resultContinuation) {
|
|
895
|
-
this.
|
|
895
|
+
this.un3_1 = this$0;
|
|
896
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
897
|
}
|
|
898
|
-
protoOf(AuthTokenHolder$clearToken$slambda).
|
|
899
|
-
var tmp = this.
|
|
898
|
+
protoOf(AuthTokenHolder$clearToken$slambda).d30 = function ($this$launch, $completion) {
|
|
899
|
+
var tmp = this.e30($this$launch, $completion);
|
|
900
900
|
tmp.k9_1 = Unit_instance;
|
|
901
901
|
tmp.l9_1 = null;
|
|
902
902
|
return tmp.q9();
|
|
903
903
|
};
|
|
904
904
|
protoOf(AuthTokenHolder$clearToken$slambda).ca = function (p1, $completion) {
|
|
905
|
-
return this.
|
|
905
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
906
|
};
|
|
907
907
|
protoOf(AuthTokenHolder$clearToken$slambda).q9 = function () {
|
|
908
908
|
var suspendResult = this.k9_1;
|
|
@@ -912,10 +912,10 @@
|
|
|
912
912
|
switch (tmp) {
|
|
913
913
|
case 0:
|
|
914
914
|
this.j9_1 = 2;
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
915
|
+
this.xn3_1 = this.un3_1.kn3_1;
|
|
916
|
+
this.wn3_1 = null;
|
|
917
917
|
this.i9_1 = 1;
|
|
918
|
-
suspendResult = this.
|
|
918
|
+
suspendResult = this.xn3_1.m2h(this.wn3_1, this);
|
|
919
919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
920
920
|
return suspendResult;
|
|
921
921
|
}
|
|
@@ -925,17 +925,17 @@
|
|
|
925
925
|
l$ret$1: do {
|
|
926
926
|
var tmp_0;
|
|
927
927
|
try {
|
|
928
|
-
this.
|
|
928
|
+
this.un3_1.in3_1 = null;
|
|
929
929
|
break l$ret$1;
|
|
930
930
|
} catch ($p) {
|
|
931
931
|
var tmp_1;
|
|
932
932
|
var t = $p;
|
|
933
|
-
this.
|
|
933
|
+
this.xn3_1.n2h(this.wn3_1);
|
|
934
934
|
throw t;
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
while (false);
|
|
938
|
-
this.
|
|
938
|
+
this.xn3_1.n2h(this.wn3_1);
|
|
939
939
|
return Unit_instance;
|
|
940
940
|
case 2:
|
|
941
941
|
throw this.l9_1;
|
|
@@ -951,22 +951,22 @@
|
|
|
951
951
|
}
|
|
952
952
|
while (true);
|
|
953
953
|
};
|
|
954
|
-
protoOf(AuthTokenHolder$clearToken$slambda).
|
|
955
|
-
var i = new AuthTokenHolder$clearToken$slambda(this.
|
|
956
|
-
i.
|
|
954
|
+
protoOf(AuthTokenHolder$clearToken$slambda).e30 = function ($this$launch, completion) {
|
|
955
|
+
var i = new AuthTokenHolder$clearToken$slambda(this.un3_1, completion);
|
|
956
|
+
i.vn3_1 = $this$launch;
|
|
957
957
|
return i;
|
|
958
958
|
};
|
|
959
959
|
function AuthTokenHolder$clearToken$slambda_0(this$0, resultContinuation) {
|
|
960
960
|
var i = new AuthTokenHolder$clearToken$slambda(this$0, resultContinuation);
|
|
961
961
|
var l = function ($this$launch, $completion) {
|
|
962
|
-
return i.
|
|
962
|
+
return i.d30($this$launch, $completion);
|
|
963
963
|
};
|
|
964
964
|
l.$arity = 1;
|
|
965
965
|
return l;
|
|
966
966
|
}
|
|
967
967
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
968
968
|
CoroutineImpl.call(this, resultContinuation);
|
|
969
|
-
this.
|
|
969
|
+
this.gn4_1 = _this__u8e3s4;
|
|
970
970
|
}
|
|
971
971
|
protoOf($loadTokenCOROUTINE$).q9 = function () {
|
|
972
972
|
var suspendResult = this.k9_1;
|
|
@@ -976,9 +976,9 @@
|
|
|
976
976
|
switch (tmp) {
|
|
977
977
|
case 0:
|
|
978
978
|
this.j9_1 = 14;
|
|
979
|
-
if (!this.
|
|
979
|
+
if (!this.gn4_1.hn3_1) {
|
|
980
980
|
this.i9_1 = 13;
|
|
981
|
-
suspendResult = this.
|
|
981
|
+
suspendResult = this.gn4_1.gn3_1(this);
|
|
982
982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
983
983
|
return suspendResult;
|
|
984
984
|
}
|
|
@@ -989,21 +989,21 @@
|
|
|
989
989
|
}
|
|
990
990
|
|
|
991
991
|
case 1:
|
|
992
|
-
if (!(this.
|
|
993
|
-
return this.
|
|
994
|
-
this.
|
|
992
|
+
if (!(this.gn4_1.in3_1 == null))
|
|
993
|
+
return this.gn4_1.in3_1;
|
|
994
|
+
this.ln4_1 = this.gn4_1.in3_1;
|
|
995
995
|
if (!(this.o9().v9(Companion_instance) == null)) {
|
|
996
996
|
this.i9_1 = 11;
|
|
997
|
-
suspendResult = this.
|
|
997
|
+
suspendResult = this.gn4_1.gn3_1(this);
|
|
998
998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
999
999
|
return suspendResult;
|
|
1000
1000
|
}
|
|
1001
1001
|
continue $sm;
|
|
1002
1002
|
} else {
|
|
1003
|
-
this.
|
|
1004
|
-
this.
|
|
1003
|
+
this.jn4_1 = this.gn4_1.kn3_1;
|
|
1004
|
+
this.in4_1 = null;
|
|
1005
1005
|
this.i9_1 = 2;
|
|
1006
|
-
suspendResult = this.
|
|
1006
|
+
suspendResult = this.jn4_1.m2h(this.in4_1, this);
|
|
1007
1007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1008
1008
|
return suspendResult;
|
|
1009
1009
|
}
|
|
@@ -1011,19 +1011,19 @@
|
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
case 2:
|
|
1014
|
-
this.
|
|
1014
|
+
this.kn4_1 = Unit_instance;
|
|
1015
1015
|
this.i9_1 = 3;
|
|
1016
1016
|
continue $sm;
|
|
1017
1017
|
case 3:
|
|
1018
1018
|
this.j9_1 = 10;
|
|
1019
|
-
this.
|
|
1019
|
+
this.gn4_1.jn3_1 = true;
|
|
1020
1020
|
this.i9_1 = 4;
|
|
1021
1021
|
continue $sm;
|
|
1022
1022
|
case 4:
|
|
1023
1023
|
this.j9_1 = 9;
|
|
1024
|
-
if (equals(this.
|
|
1024
|
+
if (equals(this.ln4_1, this.gn4_1.in3_1)) {
|
|
1025
1025
|
this.i9_1 = 5;
|
|
1026
|
-
suspendResult = this.
|
|
1026
|
+
suspendResult = this.gn4_1.gn3_1(this);
|
|
1027
1027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1028
|
return suspendResult;
|
|
1029
1029
|
}
|
|
@@ -1035,7 +1035,7 @@
|
|
|
1035
1035
|
|
|
1036
1036
|
case 5:
|
|
1037
1037
|
var ARGUMENT = suspendResult;
|
|
1038
|
-
this.
|
|
1038
|
+
this.gn4_1.in3_1 = ARGUMENT;
|
|
1039
1039
|
this.i9_1 = 6;
|
|
1040
1040
|
continue $sm;
|
|
1041
1041
|
case 6:
|
|
@@ -1043,36 +1043,36 @@
|
|
|
1043
1043
|
continue $sm;
|
|
1044
1044
|
case 7:
|
|
1045
1045
|
this.j9_1 = 10;
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1046
|
+
this.gn4_1.jn3_1 = false;
|
|
1047
|
+
this.kn4_1 = this.gn4_1.in3_1;
|
|
1048
1048
|
this.j9_1 = 14;
|
|
1049
1049
|
this.i9_1 = 8;
|
|
1050
1050
|
continue $sm;
|
|
1051
1051
|
case 8:
|
|
1052
|
-
var tmp_0 = this.
|
|
1052
|
+
var tmp_0 = this.kn4_1;
|
|
1053
1053
|
this.j9_1 = 14;
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1054
|
+
this.jn4_1.n2h(this.in4_1);
|
|
1055
|
+
this.hn4_1 = tmp_0;
|
|
1056
1056
|
this.i9_1 = 12;
|
|
1057
1057
|
continue $sm;
|
|
1058
1058
|
case 9:
|
|
1059
1059
|
this.j9_1 = 10;
|
|
1060
1060
|
var t = this.l9_1;
|
|
1061
|
-
this.
|
|
1061
|
+
this.gn4_1.jn3_1 = false;
|
|
1062
1062
|
throw t;
|
|
1063
1063
|
case 10:
|
|
1064
1064
|
this.j9_1 = 14;
|
|
1065
1065
|
var t_0 = this.l9_1;
|
|
1066
|
-
this.
|
|
1066
|
+
this.jn4_1.n2h(this.in4_1);
|
|
1067
1067
|
throw t_0;
|
|
1068
1068
|
case 11:
|
|
1069
1069
|
var ARGUMENT_0 = suspendResult;
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1070
|
+
this.gn4_1.in3_1 = ARGUMENT_0;
|
|
1071
|
+
this.hn4_1 = this.gn4_1.in3_1;
|
|
1072
1072
|
this.i9_1 = 12;
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
case 12:
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.hn4_1;
|
|
1076
1076
|
case 13:
|
|
1077
1077
|
return suspendResult;
|
|
1078
1078
|
case 14:
|
|
@@ -1091,49 +1091,49 @@
|
|
|
1091
1091
|
};
|
|
1092
1092
|
function AuthTokenHolder(loadTokens, cacheTokens) {
|
|
1093
1093
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1094
|
-
this.
|
|
1095
|
-
this.
|
|
1096
|
-
this.
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1094
|
+
this.gn3_1 = loadTokens;
|
|
1095
|
+
this.hn3_1 = cacheTokens;
|
|
1096
|
+
this.in3_1 = null;
|
|
1097
|
+
this.jn3_1 = false;
|
|
1098
|
+
this.kn3_1 = Mutex();
|
|
1099
|
+
this.ln3_1 = new SetTokenContext();
|
|
1100
1100
|
}
|
|
1101
|
-
protoOf(AuthTokenHolder).
|
|
1101
|
+
protoOf(AuthTokenHolder).mn4 = function ($completion) {
|
|
1102
1102
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1103
1103
|
tmp.k9_1 = Unit_instance;
|
|
1104
1104
|
tmp.l9_1 = null;
|
|
1105
1105
|
return tmp.q9();
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(AuthTokenHolder).
|
|
1108
|
-
var prevValue = this.
|
|
1109
|
-
var lockedByLoad = this.
|
|
1107
|
+
protoOf(AuthTokenHolder).nn4 = function (nonCancellable, block, $completion) {
|
|
1108
|
+
var prevValue = this.in3_1;
|
|
1109
|
+
var lockedByLoad = this.jn3_1;
|
|
1110
1110
|
var tmp;
|
|
1111
1111
|
if (nonCancellable) {
|
|
1112
1112
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1113
|
-
tmp = $completion.o9().qj(NonCancellable_getInstance()).qj(this.
|
|
1113
|
+
tmp = $completion.o9().qj(NonCancellable_getInstance()).qj(this.ln3_1);
|
|
1114
1114
|
} else {
|
|
1115
1115
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1116
|
-
tmp = $completion.o9().qj(this.
|
|
1116
|
+
tmp = $completion.o9().qj(this.ln3_1);
|
|
1117
1117
|
}
|
|
1118
1118
|
var context = tmp;
|
|
1119
1119
|
return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(AuthTokenHolder).
|
|
1122
|
-
if (this.
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1121
|
+
protoOf(AuthTokenHolder).on4 = function (coroutineScope) {
|
|
1122
|
+
if (this.kn3_1.l2h()) {
|
|
1123
|
+
this.in3_1 = null;
|
|
1124
|
+
this.kn3_1.o2h();
|
|
1125
1125
|
} else {
|
|
1126
1126
|
launch(coroutineScope, VOID, VOID, AuthTokenHolder$clearToken$slambda_0(this, null));
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
protoOf(AuthTokenHolder).
|
|
1129
|
+
protoOf(AuthTokenHolder).pn4 = function (coroutineScope, $super) {
|
|
1130
1130
|
coroutineScope = coroutineScope === VOID ? GlobalScope_instance : coroutineScope;
|
|
1131
1131
|
var tmp;
|
|
1132
1132
|
if ($super === VOID) {
|
|
1133
|
-
this.
|
|
1133
|
+
this.on4(coroutineScope);
|
|
1134
1134
|
tmp = Unit_instance;
|
|
1135
1135
|
} else {
|
|
1136
|
-
tmp = $super.
|
|
1136
|
+
tmp = $super.on4.call(this, coroutineScope);
|
|
1137
1137
|
}
|
|
1138
1138
|
return tmp;
|
|
1139
1139
|
};
|
|
@@ -1142,19 +1142,19 @@
|
|
|
1142
1142
|
var this_0 = new BearerAuthConfig();
|
|
1143
1143
|
block(this_0);
|
|
1144
1144
|
// Inline function 'kotlin.with' call
|
|
1145
|
-
_this__u8e3s4.
|
|
1145
|
+
_this__u8e3s4.vmz_1.e1(new BearerAuthProvider(this_0.qn4_1, this_0.rn4_1, this_0.sn4_1, this_0.tn4_1, this_0.un4_1, this_0.vn4_1));
|
|
1146
1146
|
}
|
|
1147
1147
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1148
1148
|
CoroutineImpl.call(this, resultContinuation);
|
|
1149
1149
|
}
|
|
1150
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1151
|
-
var tmp = this.
|
|
1150
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).fn5 = function (_this__u8e3s4, $completion) {
|
|
1151
|
+
var tmp = this.gn5(_this__u8e3s4, $completion);
|
|
1152
1152
|
tmp.k9_1 = Unit_instance;
|
|
1153
1153
|
tmp.l9_1 = null;
|
|
1154
1154
|
return tmp.q9();
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf(BearerAuthConfig$refreshTokens$slambda).ca = function (p1, $completion) {
|
|
1157
|
-
return this.
|
|
1157
|
+
return this.fn5(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1158
1158
|
};
|
|
1159
1159
|
protoOf(BearerAuthConfig$refreshTokens$slambda).q9 = function () {
|
|
1160
1160
|
var suspendResult = this.k9_1;
|
|
@@ -1173,15 +1173,15 @@
|
|
|
1173
1173
|
}
|
|
1174
1174
|
while (true);
|
|
1175
1175
|
};
|
|
1176
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1176
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).gn5 = function (_this__u8e3s4, completion) {
|
|
1177
1177
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1178
|
-
i.
|
|
1178
|
+
i.en5_1 = _this__u8e3s4;
|
|
1179
1179
|
return i;
|
|
1180
1180
|
};
|
|
1181
1181
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1182
1182
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1183
1183
|
var l = function (_this__u8e3s4, $completion) {
|
|
1184
|
-
return i.
|
|
1184
|
+
return i.fn5(_this__u8e3s4, $completion);
|
|
1185
1185
|
};
|
|
1186
1186
|
l.$arity = 1;
|
|
1187
1187
|
return l;
|
|
@@ -1189,14 +1189,14 @@
|
|
|
1189
1189
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1190
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1191
1191
|
}
|
|
1192
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1193
|
-
var tmp = this.
|
|
1192
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).pn5 = function ($completion) {
|
|
1193
|
+
var tmp = this.qn5($completion);
|
|
1194
1194
|
tmp.k9_1 = Unit_instance;
|
|
1195
1195
|
tmp.l9_1 = null;
|
|
1196
1196
|
return tmp.q9();
|
|
1197
1197
|
};
|
|
1198
1198
|
protoOf(BearerAuthConfig$loadTokens$slambda).za = function ($completion) {
|
|
1199
|
-
return this.
|
|
1199
|
+
return this.pn5($completion);
|
|
1200
1200
|
};
|
|
1201
1201
|
protoOf(BearerAuthConfig$loadTokens$slambda).q9 = function () {
|
|
1202
1202
|
var suspendResult = this.k9_1;
|
|
@@ -1215,13 +1215,13 @@
|
|
|
1215
1215
|
}
|
|
1216
1216
|
while (true);
|
|
1217
1217
|
};
|
|
1218
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1218
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).qn5 = function (completion) {
|
|
1219
1219
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1220
1220
|
};
|
|
1221
1221
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1222
1222
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1223
1223
|
var l = function ($completion) {
|
|
1224
|
-
return i.
|
|
1224
|
+
return i.pn5($completion);
|
|
1225
1225
|
};
|
|
1226
1226
|
l.$arity = 0;
|
|
1227
1227
|
return l;
|
|
@@ -1231,62 +1231,62 @@
|
|
|
1231
1231
|
}
|
|
1232
1232
|
function BearerAuthConfig() {
|
|
1233
1233
|
var tmp = this;
|
|
1234
|
-
tmp.
|
|
1234
|
+
tmp.qn4_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1235
1235
|
var tmp_0 = this;
|
|
1236
|
-
tmp_0.
|
|
1236
|
+
tmp_0.rn4_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1237
1237
|
var tmp_1 = this;
|
|
1238
|
-
tmp_1.
|
|
1239
|
-
this.
|
|
1240
|
-
this.
|
|
1241
|
-
this.
|
|
1238
|
+
tmp_1.sn4_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1239
|
+
this.tn4_1 = null;
|
|
1240
|
+
this.un4_1 = true;
|
|
1241
|
+
this.vn4_1 = false;
|
|
1242
1242
|
}
|
|
1243
|
-
protoOf(BearerAuthConfig).
|
|
1244
|
-
this.
|
|
1243
|
+
protoOf(BearerAuthConfig).rn5 = function (block) {
|
|
1244
|
+
this.qn4_1 = block;
|
|
1245
1245
|
};
|
|
1246
|
-
protoOf(BearerAuthConfig).
|
|
1247
|
-
this.
|
|
1246
|
+
protoOf(BearerAuthConfig).sn5 = function (block) {
|
|
1247
|
+
this.rn4_1 = block;
|
|
1248
1248
|
};
|
|
1249
1249
|
function BearerTokens(accessToken, refreshToken) {
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1250
|
+
this.tn5_1 = accessToken;
|
|
1251
|
+
this.un5_1 = refreshToken;
|
|
1252
1252
|
}
|
|
1253
1253
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1254
|
+
this.vn5_1 = client;
|
|
1255
|
+
this.wn5_1 = response;
|
|
1256
|
+
this.xn5_1 = oldTokens;
|
|
1257
1257
|
}
|
|
1258
1258
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1259
1259
|
return true;
|
|
1260
1260
|
}
|
|
1261
1261
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1262
1262
|
return function ($this$headers) {
|
|
1263
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1263
|
+
var tokenValue = 'Bearer ' + $token.tn5_1;
|
|
1264
1264
|
var tmp;
|
|
1265
|
-
if ($this$headers.
|
|
1266
|
-
$this$headers.
|
|
1265
|
+
if ($this$headers.i36('Authorization')) {
|
|
1266
|
+
$this$headers.x36('Authorization');
|
|
1267
1267
|
tmp = Unit_instance;
|
|
1268
1268
|
}
|
|
1269
1269
|
var tmp_0;
|
|
1270
|
-
if (!$request.
|
|
1271
|
-
$this$headers.
|
|
1270
|
+
if (!$request.k4a_1.k32(get_AuthCircuitBreaker())) {
|
|
1271
|
+
$this$headers.j36('Authorization', tokenValue);
|
|
1272
1272
|
tmp_0 = Unit_instance;
|
|
1273
1273
|
}
|
|
1274
1274
|
return Unit_instance;
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
1277
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1278
|
+
this.gn6_1 = this$0;
|
|
1279
|
+
this.hn6_1 = $response;
|
|
1280
1280
|
CoroutineImpl.call(this, resultContinuation);
|
|
1281
1281
|
}
|
|
1282
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1283
|
-
var tmp = this.
|
|
1282
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).pn5 = function ($completion) {
|
|
1283
|
+
var tmp = this.qn5($completion);
|
|
1284
1284
|
tmp.k9_1 = Unit_instance;
|
|
1285
1285
|
tmp.l9_1 = null;
|
|
1286
1286
|
return tmp.q9();
|
|
1287
1287
|
};
|
|
1288
1288
|
protoOf(BearerAuthProvider$refreshToken$slambda).za = function ($completion) {
|
|
1289
|
-
return this.
|
|
1289
|
+
return this.pn5($completion);
|
|
1290
1290
|
};
|
|
1291
1291
|
protoOf(BearerAuthProvider$refreshToken$slambda).q9 = function () {
|
|
1292
1292
|
var suspendResult = this.k9_1;
|
|
@@ -1296,10 +1296,10 @@
|
|
|
1296
1296
|
switch (tmp) {
|
|
1297
1297
|
case 0:
|
|
1298
1298
|
this.j9_1 = 3;
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1299
|
+
this.in6_1 = this.gn6_1.kn6_1;
|
|
1300
|
+
this.jn6_1 = this.hn6_1.w4b().a49_1;
|
|
1301
1301
|
this.i9_1 = 1;
|
|
1302
|
-
suspendResult = this.
|
|
1302
|
+
suspendResult = this.gn6_1.on6_1.mn4(this);
|
|
1303
1303
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1304
1304
|
return suspendResult;
|
|
1305
1305
|
}
|
|
@@ -1307,9 +1307,9 @@
|
|
|
1307
1307
|
continue $sm;
|
|
1308
1308
|
case 1:
|
|
1309
1309
|
var ARGUMENT = suspendResult;
|
|
1310
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1310
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.jn6_1, this.hn6_1, ARGUMENT);
|
|
1311
1311
|
this.i9_1 = 2;
|
|
1312
|
-
suspendResult = this.
|
|
1312
|
+
suspendResult = this.in6_1(ARGUMENT_0, this);
|
|
1313
1313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1314
1314
|
return suspendResult;
|
|
1315
1315
|
}
|
|
@@ -1331,22 +1331,22 @@
|
|
|
1331
1331
|
}
|
|
1332
1332
|
while (true);
|
|
1333
1333
|
};
|
|
1334
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1335
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1334
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).qn5 = function (completion) {
|
|
1335
|
+
return new BearerAuthProvider$refreshToken$slambda(this.gn6_1, this.hn6_1, completion);
|
|
1336
1336
|
};
|
|
1337
1337
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1338
1338
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1339
1339
|
var l = function ($completion) {
|
|
1340
|
-
return i.
|
|
1340
|
+
return i.pn5($completion);
|
|
1341
1341
|
};
|
|
1342
1342
|
l.$arity = 0;
|
|
1343
1343
|
return l;
|
|
1344
1344
|
}
|
|
1345
1345
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1346
1346
|
CoroutineImpl.call(this, resultContinuation);
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1347
|
+
this.xn6_1 = _this__u8e3s4;
|
|
1348
|
+
this.yn6_1 = request;
|
|
1349
|
+
this.zn6_1 = authHeader;
|
|
1350
1350
|
}
|
|
1351
1351
|
protoOf($addRequestHeadersCOROUTINE$).q9 = function () {
|
|
1352
1352
|
var suspendResult = this.k9_1;
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
case 0:
|
|
1358
1358
|
this.j9_1 = 2;
|
|
1359
1359
|
this.i9_1 = 1;
|
|
1360
|
-
suspendResult = this.
|
|
1360
|
+
suspendResult = this.xn6_1.on6_1.mn4(this);
|
|
1361
1361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1362
1362
|
return suspendResult;
|
|
1363
1363
|
}
|
|
@@ -1373,7 +1373,7 @@
|
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
var token = tmp_0;
|
|
1376
|
-
headers(this.
|
|
1376
|
+
headers(this.yn6_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.yn6_1));
|
|
1377
1377
|
return Unit_instance;
|
|
1378
1378
|
case 2:
|
|
1379
1379
|
throw this.l9_1;
|
|
@@ -1391,8 +1391,8 @@
|
|
|
1391
1391
|
};
|
|
1392
1392
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1393
1393
|
CoroutineImpl.call(this, resultContinuation);
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1394
|
+
this.in7_1 = _this__u8e3s4;
|
|
1395
|
+
this.jn7_1 = response;
|
|
1396
1396
|
}
|
|
1397
1397
|
protoOf($refreshTokenCOROUTINE$).q9 = function () {
|
|
1398
1398
|
var suspendResult = this.k9_1;
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
case 0:
|
|
1404
1404
|
this.j9_1 = 2;
|
|
1405
1405
|
this.i9_1 = 1;
|
|
1406
|
-
suspendResult = this.
|
|
1406
|
+
suspendResult = this.in7_1.on6_1.nn4(this.in7_1.nn6_1, BearerAuthProvider$refreshToken$slambda_0(this.in7_1, this.jn7_1, null), this);
|
|
1407
1407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
1408
|
return suspendResult;
|
|
1409
1409
|
}
|
|
@@ -1436,61 +1436,61 @@
|
|
|
1436
1436
|
sendWithoutRequestCallback = tmp;
|
|
1437
1437
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1438
1438
|
nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1439
|
+
this.kn6_1 = refreshTokens;
|
|
1440
|
+
this.ln6_1 = sendWithoutRequestCallback;
|
|
1441
|
+
this.mn6_1 = realm;
|
|
1442
|
+
this.nn6_1 = nonCancellableRefresh;
|
|
1443
|
+
this.on6_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1444
1444
|
}
|
|
1445
|
-
protoOf(BearerAuthProvider).
|
|
1445
|
+
protoOf(BearerAuthProvider).on2 = function () {
|
|
1446
1446
|
var message = 'Deprecated';
|
|
1447
1447
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1448
1448
|
};
|
|
1449
|
-
protoOf(BearerAuthProvider).
|
|
1450
|
-
return this.
|
|
1449
|
+
protoOf(BearerAuthProvider).rn1 = function (request) {
|
|
1450
|
+
return this.ln6_1(request);
|
|
1451
1451
|
};
|
|
1452
|
-
protoOf(BearerAuthProvider).
|
|
1453
|
-
if (!(auth.
|
|
1454
|
-
get_LOGGER().
|
|
1452
|
+
protoOf(BearerAuthProvider).ymz = function (auth) {
|
|
1453
|
+
if (!(auth.l3p_1 === 'Bearer')) {
|
|
1454
|
+
get_LOGGER().z3b('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1455
1455
|
return false;
|
|
1456
1456
|
}
|
|
1457
1457
|
var tmp;
|
|
1458
|
-
if (this.
|
|
1458
|
+
if (this.mn6_1 == null) {
|
|
1459
1459
|
tmp = true;
|
|
1460
1460
|
} else {
|
|
1461
1461
|
if (!(auth instanceof Parameterized)) {
|
|
1462
1462
|
tmp = false;
|
|
1463
1463
|
} else {
|
|
1464
|
-
tmp = auth.
|
|
1464
|
+
tmp = auth.m3e('realm') == this.mn6_1;
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
var isSameRealm = tmp;
|
|
1468
1468
|
if (!isSameRealm) {
|
|
1469
|
-
get_LOGGER().
|
|
1469
|
+
get_LOGGER().z3b('Bearer Auth Provider is not applicable for this realm');
|
|
1470
1470
|
}
|
|
1471
1471
|
return isSameRealm;
|
|
1472
1472
|
};
|
|
1473
|
-
protoOf(BearerAuthProvider).
|
|
1473
|
+
protoOf(BearerAuthProvider).nn2 = function (request, authHeader, $completion) {
|
|
1474
1474
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1475
1475
|
tmp.k9_1 = Unit_instance;
|
|
1476
1476
|
tmp.l9_1 = null;
|
|
1477
1477
|
return tmp.q9();
|
|
1478
1478
|
};
|
|
1479
|
-
protoOf(BearerAuthProvider).
|
|
1479
|
+
protoOf(BearerAuthProvider).mn2 = function (response, $completion) {
|
|
1480
1480
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1481
1481
|
tmp.k9_1 = Unit_instance;
|
|
1482
1482
|
tmp.l9_1 = null;
|
|
1483
1483
|
return tmp.q9();
|
|
1484
1484
|
};
|
|
1485
|
-
protoOf(BearerAuthProvider).
|
|
1486
|
-
this.
|
|
1485
|
+
protoOf(BearerAuthProvider).kn7 = function () {
|
|
1486
|
+
this.on6_1.pn4();
|
|
1487
1487
|
};
|
|
1488
1488
|
//region block: post-declaration
|
|
1489
1489
|
protoOf(SetTokenContext).v9 = get;
|
|
1490
1490
|
protoOf(SetTokenContext).pj = fold;
|
|
1491
1491
|
protoOf(SetTokenContext).oj = minusKey;
|
|
1492
1492
|
protoOf(SetTokenContext).qj = plus;
|
|
1493
|
-
protoOf(BearerAuthProvider).
|
|
1493
|
+
protoOf(BearerAuthProvider).sn1 = addRequestHeaders$default;
|
|
1494
1494
|
//endregion
|
|
1495
1495
|
//region block: init
|
|
1496
1496
|
Companion_instance = new Companion();
|