@solibo/solibo-sdk 1.0.25 → 1.0.27-SNAPSHOT
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 +88 -88
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1539 -1539
- package/KotlinBigInteger-bignum.js +1164 -1164
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +31 -31
- package/cryptography-kotlin-cryptography-core.js +52 -52
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +175 -175
- package/cryptography-kotlin-cryptography-random.js +26 -26
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.js +331 -331
- package/cryptography-kotlin-cryptography-serialization-pem.js +16 -16
- package/kotlin-kotlin-stdlib.js +2014 -2008
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2085 -2085
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +446 -446
- package/kotlinx-serialization-kotlinx-serialization-core.js +1707 -1707
- package/kotlinx-serialization-kotlinx-serialization-json.js +1351 -1351
- package/ktor-ktor-client-auth.js +465 -465
- package/ktor-ktor-client-auth.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +184 -184
- package/ktor-ktor-client-core.js +4088 -4088
- package/ktor-ktor-client-logging.js +1078 -1078
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +473 -473
- package/ktor-ktor-http.js +963 -963
- package/ktor-ktor-io.js +1043 -1043
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +234 -234
- package/ktor-ktor-serialization.js +108 -108
- package/ktor-ktor-utils.js +850 -850
- package/ktor-ktor-websockets.js +740 -740
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +1483 -1483
- package/solibo-sdk-sdk.d.ts +221 -6
- package/solibo-sdk-sdk.js +3279 -2541
- package/solibo-sdk-sdk.js.map +1 -1
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.e6h();
|
|
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.d6h(request, authHeader, $completion) : $super.d6h.call(this, request, authHeader, $completion);
|
|
105
105
|
}
|
|
106
106
|
function refreshToken(response, $completion) {
|
|
107
107
|
return true;
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
initMetadataForLambda(AuthTokenHolder$clearToken$slambda, CoroutineImpl, VOID, [1]);
|
|
114
114
|
initMetadataForCoroutine($loadTokenCOROUTINE$, CoroutineImpl);
|
|
115
115
|
initMetadataForClass(AuthTokenHolder, 'AuthTokenHolder', VOID, VOID, VOID, [0, 2]);
|
|
116
|
-
initMetadataForClass(BearerTokens, 'BearerTokens');
|
|
117
116
|
initMetadataForLambda(BearerAuthConfig$refreshTokens$slambda, CoroutineImpl, VOID, [1]);
|
|
118
117
|
initMetadataForLambda(BearerAuthConfig$loadTokens$slambda, CoroutineImpl, VOID, [0]);
|
|
119
118
|
initMetadataForClass(BearerAuthConfig, 'BearerAuthConfig', BearerAuthConfig);
|
|
119
|
+
initMetadataForClass(BearerTokens, 'BearerTokens');
|
|
120
120
|
initMetadataForClass(RefreshTokensParams, 'RefreshTokensParams');
|
|
121
121
|
initMetadataForLambda(BearerAuthProvider$refreshToken$slambda, CoroutineImpl, VOID, [0]);
|
|
122
122
|
initMetadataForCoroutine($addRequestHeadersCOROUTINE$, CoroutineImpl);
|
|
@@ -146,25 +146,25 @@
|
|
|
146
146
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
147
147
|
CoroutineImpl.call(this, resultContinuation);
|
|
148
148
|
}
|
|
149
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
150
|
-
var tmp = this.
|
|
151
|
-
tmp.
|
|
152
|
-
tmp.
|
|
153
|
-
return tmp.
|
|
149
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).k6e = function (it, $completion) {
|
|
150
|
+
var tmp = this.b41(it, $completion);
|
|
151
|
+
tmp.b9_1 = Unit_instance;
|
|
152
|
+
tmp.c9_1 = null;
|
|
153
|
+
return tmp.h9();
|
|
154
154
|
};
|
|
155
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
156
|
-
return this.
|
|
155
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).t9 = function (p1, $completion) {
|
|
156
|
+
return this.k6e(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
157
157
|
};
|
|
158
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
159
|
-
var suspendResult = this.
|
|
158
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).h9 = function () {
|
|
159
|
+
var suspendResult = this.b9_1;
|
|
160
160
|
$sm: do
|
|
161
161
|
try {
|
|
162
|
-
var tmp = this.
|
|
162
|
+
var tmp = this.z8_1;
|
|
163
163
|
if (tmp === 0) {
|
|
164
|
-
this.
|
|
165
|
-
return this.
|
|
164
|
+
this.a9_1 = 1;
|
|
165
|
+
return this.j6e_1.b37().equals(Companion_getInstance().r32_1);
|
|
166
166
|
} else if (tmp === 1) {
|
|
167
|
-
throw this.
|
|
167
|
+
throw this.c9_1;
|
|
168
168
|
}
|
|
169
169
|
} catch ($p) {
|
|
170
170
|
var e = $p;
|
|
@@ -172,15 +172,15 @@
|
|
|
172
172
|
}
|
|
173
173
|
while (true);
|
|
174
174
|
};
|
|
175
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
175
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).b41 = function (it, completion) {
|
|
176
176
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
177
|
-
i.
|
|
177
|
+
i.j6e_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.k6e(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.l6e_1 = ArrayList_init_$Create$();
|
|
192
192
|
var tmp_0 = this;
|
|
193
|
-
tmp_0.
|
|
193
|
+
tmp_0.m6e_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
194
194
|
}
|
|
195
195
|
function AtomicCounter() {
|
|
196
|
-
this.
|
|
196
|
+
this.n6e_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.p3p_1.p2j(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.b40_1.l6e_1);
|
|
213
|
+
$this$createClientPlugin.a40_1.p3p_1.r2j(get_AuthProvidersKey(), providers);
|
|
214
214
|
var tokenVersions = new ConcurrentMap();
|
|
215
215
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
216
216
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
220
220
|
var tmp_0;
|
|
221
221
|
try {
|
|
222
|
-
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().
|
|
222
|
+
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().yb(), arrayOf([]), false))]), false);
|
|
223
223
|
} catch ($p) {
|
|
224
224
|
var tmp_1;
|
|
225
225
|
if ($p instanceof Error) {
|
|
@@ -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.b4f(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
237
237
|
var tmp_2 = Send_instance;
|
|
238
|
-
$this$createClientPlugin.
|
|
238
|
+
$this$createClientPlugin.e40(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.l3q().b31().s2n('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.o6e(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.u3s().e3t().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
293
|
+
this_0.f2t(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.o6e(element_0)) {
|
|
311
311
|
tmp$ret$8 = element_1;
|
|
312
312
|
break $l$block_0;
|
|
313
313
|
}
|
|
@@ -336,15 +336,15 @@
|
|
|
336
336
|
}
|
|
337
337
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
338
338
|
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
339
|
-
tmp.
|
|
340
|
-
tmp.
|
|
341
|
-
return tmp.
|
|
339
|
+
tmp.b9_1 = Unit_instance;
|
|
340
|
+
tmp.c9_1 = null;
|
|
341
|
+
return tmp.h9();
|
|
342
342
|
}
|
|
343
343
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
344
344
|
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
345
|
-
tmp.
|
|
346
|
-
tmp.
|
|
347
|
-
return tmp.
|
|
345
|
+
tmp.b9_1 = Unit_instance;
|
|
346
|
+
tmp.c9_1 = null;
|
|
347
|
+
return tmp.h9();
|
|
348
348
|
}
|
|
349
349
|
function Auth$lambda$slambda$lambda() {
|
|
350
350
|
return new AtomicCounter();
|
|
@@ -354,136 +354,136 @@
|
|
|
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.a6g_1 = $providers;
|
|
358
|
+
this.b6g_1 = $tokenVersions;
|
|
359
|
+
this.c6g_1 = $tokenVersionsAttributeKey;
|
|
360
360
|
CoroutineImpl.call(this, resultContinuation);
|
|
361
361
|
}
|
|
362
|
-
protoOf(Auth$lambda$slambda).
|
|
363
|
-
var tmp = this.
|
|
364
|
-
tmp.
|
|
365
|
-
tmp.
|
|
366
|
-
return tmp.
|
|
362
|
+
protoOf(Auth$lambda$slambda).p4f = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
363
|
+
var tmp = this.q4f($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
364
|
+
tmp.b9_1 = Unit_instance;
|
|
365
|
+
tmp.c9_1 = null;
|
|
366
|
+
return tmp.h9();
|
|
367
367
|
};
|
|
368
|
-
protoOf(Auth$lambda$slambda).
|
|
368
|
+
protoOf(Auth$lambda$slambda).r4f = 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.p4f(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
372
372
|
};
|
|
373
|
-
protoOf(Auth$lambda$slambda).
|
|
374
|
-
var suspendResult = this.
|
|
373
|
+
protoOf(Auth$lambda$slambda).h9 = function () {
|
|
374
|
+
var suspendResult = this.b9_1;
|
|
375
375
|
$sm: do
|
|
376
376
|
try {
|
|
377
|
-
var tmp = this.
|
|
377
|
+
var tmp = this.z8_1;
|
|
378
378
|
switch (tmp) {
|
|
379
379
|
case 0:
|
|
380
|
-
this.
|
|
381
|
-
var tmp0 = this.
|
|
380
|
+
this.a9_1 = 4;
|
|
381
|
+
var tmp0 = this.a6g_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.h6g(this.e6g_1)) {
|
|
387
387
|
destination.e1(element);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
391
|
+
this.g6g_1 = destination.t();
|
|
392
|
+
this.z8_1 = 1;
|
|
393
393
|
continue $sm;
|
|
394
394
|
case 1:
|
|
395
|
-
if (!this.
|
|
396
|
-
this.
|
|
395
|
+
if (!this.g6g_1.u()) {
|
|
396
|
+
this.z8_1 = 3;
|
|
397
397
|
continue $sm;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
var element_0 = this.
|
|
400
|
+
var element_0 = this.g6g_1.v();
|
|
401
401
|
var this_0 = get_LOGGER();
|
|
402
402
|
if (get_isTraceEnabled(this_0)) {
|
|
403
|
-
this_0.
|
|
403
|
+
this_0.f2t('Adding auth headers for ' + this.e6g_1.l3r_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.b6g_1.x2s(element_0, Auth$lambda$slambda$lambda);
|
|
407
|
+
var requestTokenVersions = this.e6g_1.q3r_1.u2j(this.c6g_1, Auth$lambda$slambda$lambda_0);
|
|
408
|
+
var value = tokenVersion.n6e_1.kotlinx$atomicfu$value;
|
|
409
409
|
requestTokenVersions.w2(element_0, value);
|
|
410
|
-
this.
|
|
411
|
-
suspendResult = element_0.
|
|
410
|
+
this.z8_1 = 2;
|
|
411
|
+
suspendResult = element_0.i6g(this.e6g_1, VOID, this);
|
|
412
412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
413
413
|
return suspendResult;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
continue $sm;
|
|
417
417
|
case 2:
|
|
418
|
-
this.
|
|
418
|
+
this.z8_1 = 1;
|
|
419
419
|
continue $sm;
|
|
420
420
|
case 3:
|
|
421
421
|
return Unit_instance;
|
|
422
422
|
case 4:
|
|
423
|
-
throw this.
|
|
423
|
+
throw this.c9_1;
|
|
424
424
|
}
|
|
425
425
|
} catch ($p) {
|
|
426
426
|
var e = $p;
|
|
427
|
-
if (this.
|
|
427
|
+
if (this.a9_1 === 4) {
|
|
428
428
|
throw e;
|
|
429
429
|
} else {
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
430
|
+
this.z8_1 = this.a9_1;
|
|
431
|
+
this.c9_1 = e;
|
|
432
432
|
}
|
|
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).q4f = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
437
|
+
var i = new Auth$lambda$slambda(this.a6g_1, this.b6g_1, this.c6g_1, completion);
|
|
438
|
+
i.d6g_1 = $this$onRequest;
|
|
439
|
+
i.e6g_1 = request;
|
|
440
|
+
i.f6g_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.p4f($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.r6g_1 = $this_createClientPlugin;
|
|
453
|
+
this.s6g_1 = $providers;
|
|
454
|
+
this.t6g_1 = $tokenVersions;
|
|
455
|
+
this.u6g_1 = $tokenVersionsAttributeKey;
|
|
456
456
|
CoroutineImpl.call(this, resultContinuation);
|
|
457
457
|
}
|
|
458
|
-
protoOf(Auth$lambda$slambda_1).
|
|
459
|
-
var tmp = this.
|
|
460
|
-
tmp.
|
|
461
|
-
tmp.
|
|
462
|
-
return tmp.
|
|
458
|
+
protoOf(Auth$lambda$slambda_1).d47 = function ($this$on, originalRequest, $completion) {
|
|
459
|
+
var tmp = this.e47($this$on, originalRequest, $completion);
|
|
460
|
+
tmp.b9_1 = Unit_instance;
|
|
461
|
+
tmp.c9_1 = null;
|
|
462
|
+
return tmp.h9();
|
|
463
463
|
};
|
|
464
|
-
protoOf(Auth$lambda$slambda_1).
|
|
464
|
+
protoOf(Auth$lambda$slambda_1).u9 = function (p1, p2, $completion) {
|
|
465
465
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
466
|
-
return this.
|
|
466
|
+
return this.d47(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
467
467
|
};
|
|
468
|
-
protoOf(Auth$lambda$slambda_1).
|
|
469
|
-
var suspendResult = this.
|
|
468
|
+
protoOf(Auth$lambda$slambda_1).h9 = function () {
|
|
469
|
+
var suspendResult = this.b9_1;
|
|
470
470
|
$sm: do
|
|
471
471
|
try {
|
|
472
|
-
var tmp = this.
|
|
472
|
+
var tmp = this.z8_1;
|
|
473
473
|
switch (tmp) {
|
|
474
474
|
case 0:
|
|
475
|
-
this.
|
|
476
|
-
this.
|
|
477
|
-
suspendResult = this.
|
|
475
|
+
this.a9_1 = 10;
|
|
476
|
+
this.z8_1 = 1;
|
|
477
|
+
suspendResult = this.v6g_1.h47(this.w6g_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.
|
|
485
|
-
this.
|
|
486
|
-
suspendResult = this.
|
|
484
|
+
this.b6h_1 = suspendResult;
|
|
485
|
+
this.z8_1 = 2;
|
|
486
|
+
suspendResult = this.r6g_1.b40_1.m6e_1(this.b6h_1.l3q(), 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.b6h_1;
|
|
495
495
|
} else {
|
|
496
|
-
this.
|
|
496
|
+
this.z8_1 = 3;
|
|
497
497
|
continue $sm;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
case 3:
|
|
501
|
-
if (this.
|
|
502
|
-
return this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
501
|
+
if (this.b6h_1.u3s().v3s().q2j(get_AuthCircuitBreaker()))
|
|
502
|
+
return this.b6h_1;
|
|
503
|
+
this.x6g_1 = this.b6h_1;
|
|
504
|
+
this.a6h_1 = HashSet_init_$Create$(this.s6g_1);
|
|
505
|
+
this.z8_1 = 4;
|
|
506
506
|
continue $sm;
|
|
507
507
|
case 4:
|
|
508
|
-
this.
|
|
509
|
-
suspendResult = this.
|
|
508
|
+
this.z8_1 = 5;
|
|
509
|
+
suspendResult = this.r6g_1.b40_1.m6e_1(this.x6g_1.l3q(), this);
|
|
510
510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
511
511
|
return suspendResult;
|
|
512
512
|
}
|
|
@@ -514,39 +514,39 @@
|
|
|
514
514
|
continue $sm;
|
|
515
515
|
case 5:
|
|
516
516
|
if (!suspendResult) {
|
|
517
|
-
this.
|
|
517
|
+
this.z8_1 = 9;
|
|
518
518
|
continue $sm;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
var this_0 = get_LOGGER();
|
|
522
522
|
if (get_isTraceEnabled(this_0)) {
|
|
523
|
-
this_0.
|
|
523
|
+
this_0.f2t('Unauthorized response for ' + this.x6g_1.u3s().e3t().toString());
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
526
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.x6g_1, this.a6h_1);
|
|
527
527
|
var tmp_0;
|
|
528
528
|
if (tmp0_elvis_lhs == null) {
|
|
529
|
-
this.
|
|
529
|
+
this.v6g_1;
|
|
530
530
|
var this_1 = get_LOGGER();
|
|
531
531
|
if (get_isTraceEnabled(this_1)) {
|
|
532
|
-
this_1.
|
|
532
|
+
this_1.f2t('Can not find auth provider for ' + this.x6g_1.u3s().e3t().toString());
|
|
533
533
|
}
|
|
534
|
-
return this.
|
|
534
|
+
return this.x6g_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.z6g_1 = _destruct__k2r9zo.lg();
|
|
541
|
+
this.y6g_1 = _destruct__k2r9zo.mg();
|
|
542
542
|
var this_2 = get_LOGGER();
|
|
543
543
|
if (get_isTraceEnabled(this_2)) {
|
|
544
|
-
this_2.
|
|
544
|
+
this_2.f2t('Using provider ' + toString(this.z6g_1) + ' for ' + this.x6g_1.u3s().e3t().toString());
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
549
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
547
|
+
this.a6h_1.e3(this.z6g_1);
|
|
548
|
+
this.z8_1 = 6;
|
|
549
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.t6g_1, this.u6g_1, this.x6g_1, this.z6g_1, this.w6g_1, this);
|
|
550
550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
551
551
|
return suspendResult;
|
|
552
552
|
}
|
|
@@ -554,88 +554,88 @@
|
|
|
554
554
|
continue $sm;
|
|
555
555
|
case 6:
|
|
556
556
|
if (!suspendResult) {
|
|
557
|
-
return this.
|
|
557
|
+
return this.x6g_1;
|
|
558
558
|
} else {
|
|
559
|
-
this.
|
|
559
|
+
this.z8_1 = 7;
|
|
560
560
|
continue $sm;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
case 7:
|
|
564
|
-
this.
|
|
565
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
564
|
+
this.z8_1 = 8;
|
|
565
|
+
suspendResult = invoke$executeWithNewToken(this.v6g_1, this.x6g_1, this.z6g_1, this.w6g_1, this.y6g_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.
|
|
573
|
-
this.
|
|
572
|
+
this.x6g_1 = suspendResult;
|
|
573
|
+
this.z8_1 = 4;
|
|
574
574
|
continue $sm;
|
|
575
575
|
case 9:
|
|
576
|
-
return this.
|
|
576
|
+
return this.x6g_1;
|
|
577
577
|
case 10:
|
|
578
|
-
throw this.
|
|
578
|
+
throw this.c9_1;
|
|
579
579
|
}
|
|
580
580
|
} catch ($p) {
|
|
581
581
|
var e = $p;
|
|
582
|
-
if (this.
|
|
582
|
+
if (this.a9_1 === 10) {
|
|
583
583
|
throw e;
|
|
584
584
|
} else {
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
585
|
+
this.z8_1 = this.a9_1;
|
|
586
|
+
this.c9_1 = e;
|
|
587
587
|
}
|
|
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).e47 = function ($this$on, originalRequest, completion) {
|
|
592
|
+
var i = new Auth$lambda$slambda_1(this.r6g_1, this.s6g_1, this.t6g_1, this.u6g_1, completion);
|
|
593
|
+
i.v6g_1 = $this$on;
|
|
594
|
+
i.w6g_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.d47($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.x6e_1 = tokenVersions;
|
|
608
|
+
this.y6e_1 = tokenVersionsAttributeKey;
|
|
609
|
+
this.z6e_1 = call;
|
|
610
|
+
this.a6f_1 = provider;
|
|
611
|
+
this.b6f_1 = request;
|
|
612
612
|
}
|
|
613
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).
|
|
614
|
-
var suspendResult = this.
|
|
613
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).h9 = function () {
|
|
614
|
+
var suspendResult = this.b9_1;
|
|
615
615
|
$sm: do
|
|
616
616
|
try {
|
|
617
|
-
var tmp = this.
|
|
617
|
+
var tmp = this.z8_1;
|
|
618
618
|
switch (tmp) {
|
|
619
619
|
case 0:
|
|
620
|
-
this.
|
|
620
|
+
this.a9_1 = 4;
|
|
621
621
|
var tmp_0 = this;
|
|
622
|
-
tmp_0.
|
|
622
|
+
tmp_0.c6f_1 = this.x6e_1.x2s(this.a6f_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.d6f_1 = this.b6f_1.q3r_1.u2j(this.y6e_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
625
|
+
var requestTokenVersion = this.d6f_1.d3(this.a6f_1);
|
|
626
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.c6f_1.n6e_1.kotlinx$atomicfu$value) {
|
|
627
627
|
var this_0 = get_LOGGER();
|
|
628
628
|
if (get_isTraceEnabled(this_0)) {
|
|
629
|
-
this_0.
|
|
629
|
+
this_0.f2t('Refreshing token for ' + this.z6e_1.u3s().e3t().toString());
|
|
630
630
|
}
|
|
631
|
-
this.
|
|
632
|
-
suspendResult = this.
|
|
631
|
+
this.z8_1 = 1;
|
|
632
|
+
suspendResult = this.a6f_1.c6h(this.z6e_1.l3q(), this);
|
|
633
633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
634
634
|
return suspendResult;
|
|
635
635
|
}
|
|
636
636
|
continue $sm;
|
|
637
637
|
} else {
|
|
638
|
-
this.
|
|
638
|
+
this.z8_1 = 3;
|
|
639
639
|
continue $sm;
|
|
640
640
|
}
|
|
641
641
|
|
|
@@ -643,71 +643,71 @@
|
|
|
643
643
|
if (!suspendResult) {
|
|
644
644
|
var this_1 = get_LOGGER();
|
|
645
645
|
if (get_isTraceEnabled(this_1)) {
|
|
646
|
-
this_1.
|
|
646
|
+
this_1.f2t('Refreshing token failed for ' + this.z6e_1.u3s().e3t().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.d6f_1;
|
|
651
|
+
var tmp2 = this.a6f_1;
|
|
652
|
+
var value = this.c6f_1.n6e_1.atomicfu$incrementAndGet();
|
|
653
653
|
tmp0.w2(tmp2, value);
|
|
654
|
-
this.
|
|
654
|
+
this.z8_1 = 2;
|
|
655
655
|
continue $sm;
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
case 2:
|
|
659
|
-
this.
|
|
659
|
+
this.z8_1 = 3;
|
|
660
660
|
continue $sm;
|
|
661
661
|
case 3:
|
|
662
662
|
return true;
|
|
663
663
|
case 4:
|
|
664
|
-
throw this.
|
|
664
|
+
throw this.c9_1;
|
|
665
665
|
}
|
|
666
666
|
} catch ($p) {
|
|
667
667
|
var e = $p;
|
|
668
|
-
if (this.
|
|
668
|
+
if (this.a9_1 === 4) {
|
|
669
669
|
throw e;
|
|
670
670
|
} else {
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
671
|
+
this.z8_1 = this.a9_1;
|
|
672
|
+
this.c9_1 = e;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
while (true);
|
|
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.m6f_1 = _this__u8e3s4;
|
|
680
|
+
this.n6f_1 = call;
|
|
681
|
+
this.o6f_1 = provider;
|
|
682
|
+
this.p6f_1 = oldRequest;
|
|
683
|
+
this.q6f_1 = authHeader;
|
|
684
684
|
}
|
|
685
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$).
|
|
686
|
-
var suspendResult = this.
|
|
685
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).h9 = function () {
|
|
686
|
+
var suspendResult = this.b9_1;
|
|
687
687
|
$sm: do
|
|
688
688
|
try {
|
|
689
|
-
var tmp = this.
|
|
689
|
+
var tmp = this.z8_1;
|
|
690
690
|
switch (tmp) {
|
|
691
691
|
case 0:
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
696
|
-
suspendResult = this.
|
|
692
|
+
this.a9_1 = 3;
|
|
693
|
+
this.r6f_1 = new HttpRequestBuilder();
|
|
694
|
+
this.r6f_1.q3x(this.p6f_1);
|
|
695
|
+
this.z8_1 = 1;
|
|
696
|
+
suspendResult = this.o6f_1.d6h(this.r6f_1, this.q6f_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.r6f_1.q3r_1.r2j(get_AuthCircuitBreaker(), Unit_instance);
|
|
704
704
|
var this_0 = get_LOGGER();
|
|
705
705
|
if (get_isTraceEnabled(this_0)) {
|
|
706
|
-
this_0.
|
|
706
|
+
this_0.f2t('Sending new request to ' + this.n6f_1.u3s().e3t().toString());
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
this.
|
|
710
|
-
suspendResult = this.
|
|
709
|
+
this.z8_1 = 2;
|
|
710
|
+
suspendResult = this.m6f_1.h47(this.r6f_1, this);
|
|
711
711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
712
712
|
return suspendResult;
|
|
713
713
|
}
|
|
@@ -716,15 +716,15 @@
|
|
|
716
716
|
case 2:
|
|
717
717
|
return suspendResult;
|
|
718
718
|
case 3:
|
|
719
|
-
throw this.
|
|
719
|
+
throw this.c9_1;
|
|
720
720
|
}
|
|
721
721
|
} catch ($p) {
|
|
722
722
|
var e = $p;
|
|
723
|
-
if (this.
|
|
723
|
+
if (this.a9_1 === 3) {
|
|
724
724
|
throw e;
|
|
725
725
|
} else {
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
726
|
+
this.z8_1 = this.a9_1;
|
|
727
|
+
this.c9_1 = e;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
while (true);
|
|
@@ -794,128 +794,128 @@
|
|
|
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.n6h_1 = this$0;
|
|
798
|
+
this.o6h_1 = $prevValue;
|
|
799
|
+
this.p6h_1 = $lockedByLoad;
|
|
800
|
+
this.q6h_1 = $block;
|
|
801
801
|
CoroutineImpl.call(this, resultContinuation);
|
|
802
802
|
}
|
|
803
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
804
|
-
var tmp = this.
|
|
805
|
-
tmp.
|
|
806
|
-
tmp.
|
|
807
|
-
return tmp.
|
|
803
|
+
protoOf(AuthTokenHolder$setToken$slambda).v6h = function ($this$withContext, $completion) {
|
|
804
|
+
var tmp = this.p1w($this$withContext, $completion);
|
|
805
|
+
tmp.b9_1 = Unit_instance;
|
|
806
|
+
tmp.c9_1 = null;
|
|
807
|
+
return tmp.h9();
|
|
808
808
|
};
|
|
809
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
810
|
-
return this.
|
|
809
|
+
protoOf(AuthTokenHolder$setToken$slambda).t9 = function (p1, $completion) {
|
|
810
|
+
return this.v6h((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
811
811
|
};
|
|
812
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
813
|
-
var suspendResult = this.
|
|
812
|
+
protoOf(AuthTokenHolder$setToken$slambda).h9 = function () {
|
|
813
|
+
var suspendResult = this.b9_1;
|
|
814
814
|
$sm: do
|
|
815
815
|
try {
|
|
816
|
-
var tmp = this.
|
|
816
|
+
var tmp = this.z8_1;
|
|
817
817
|
switch (tmp) {
|
|
818
818
|
case 0:
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
suspendResult = this.
|
|
819
|
+
this.a9_1 = 7;
|
|
820
|
+
this.t6h_1 = this.n6h_1.a6i_1;
|
|
821
|
+
this.s6h_1 = null;
|
|
822
|
+
this.z8_1 = 1;
|
|
823
|
+
suspendResult = this.t6h_1.l1e(this.s6h_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.
|
|
831
|
-
this.
|
|
830
|
+
this.u6h_1 = Unit_instance;
|
|
831
|
+
this.z8_1 = 2;
|
|
832
832
|
continue $sm;
|
|
833
833
|
case 2:
|
|
834
|
-
this.
|
|
835
|
-
if (equals(this.
|
|
836
|
-
this.
|
|
837
|
-
suspendResult = this.
|
|
834
|
+
this.a9_1 = 6;
|
|
835
|
+
if (equals(this.o6h_1, this.n6h_1.y6h_1) || this.p6h_1) {
|
|
836
|
+
this.z8_1 = 3;
|
|
837
|
+
suspendResult = this.q6h_1(this);
|
|
838
838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
839
839
|
return suspendResult;
|
|
840
840
|
}
|
|
841
841
|
continue $sm;
|
|
842
842
|
} else {
|
|
843
|
-
this.
|
|
843
|
+
this.z8_1 = 4;
|
|
844
844
|
continue $sm;
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
case 3:
|
|
848
848
|
var ARGUMENT = suspendResult;
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
849
|
+
this.n6h_1.y6h_1 = ARGUMENT;
|
|
850
|
+
this.z8_1 = 4;
|
|
851
851
|
continue $sm;
|
|
852
852
|
case 4:
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
853
|
+
this.u6h_1 = this.n6h_1.y6h_1;
|
|
854
|
+
this.a9_1 = 7;
|
|
855
|
+
this.z8_1 = 5;
|
|
856
856
|
continue $sm;
|
|
857
857
|
case 5:
|
|
858
|
-
var tmp_0 = this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
858
|
+
var tmp_0 = this.u6h_1;
|
|
859
|
+
this.a9_1 = 7;
|
|
860
|
+
this.t6h_1.m1e(this.s6h_1);
|
|
861
861
|
return tmp_0;
|
|
862
862
|
case 6:
|
|
863
|
-
this.
|
|
864
|
-
var t = this.
|
|
865
|
-
this.
|
|
863
|
+
this.a9_1 = 7;
|
|
864
|
+
var t = this.c9_1;
|
|
865
|
+
this.t6h_1.m1e(this.s6h_1);
|
|
866
866
|
throw t;
|
|
867
867
|
case 7:
|
|
868
|
-
throw this.
|
|
868
|
+
throw this.c9_1;
|
|
869
869
|
}
|
|
870
870
|
} catch ($p) {
|
|
871
871
|
var e = $p;
|
|
872
|
-
if (this.
|
|
872
|
+
if (this.a9_1 === 7) {
|
|
873
873
|
throw e;
|
|
874
874
|
} else {
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
875
|
+
this.z8_1 = this.a9_1;
|
|
876
|
+
this.c9_1 = e;
|
|
877
877
|
}
|
|
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).p1w = function ($this$withContext, completion) {
|
|
882
|
+
var i = new AuthTokenHolder$setToken$slambda(this.n6h_1, this.o6h_1, this.p6h_1, this.q6h_1, completion);
|
|
883
|
+
i.r6h_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.v6h($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.k6i_1 = this$0;
|
|
896
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
897
|
}
|
|
898
|
-
protoOf(AuthTokenHolder$clearToken$slambda).
|
|
899
|
-
var tmp = this.
|
|
900
|
-
tmp.
|
|
901
|
-
tmp.
|
|
902
|
-
return tmp.
|
|
898
|
+
protoOf(AuthTokenHolder$clearToken$slambda).o1w = function ($this$launch, $completion) {
|
|
899
|
+
var tmp = this.p1w($this$launch, $completion);
|
|
900
|
+
tmp.b9_1 = Unit_instance;
|
|
901
|
+
tmp.c9_1 = null;
|
|
902
|
+
return tmp.h9();
|
|
903
903
|
};
|
|
904
|
-
protoOf(AuthTokenHolder$clearToken$slambda).
|
|
905
|
-
return this.
|
|
904
|
+
protoOf(AuthTokenHolder$clearToken$slambda).t9 = function (p1, $completion) {
|
|
905
|
+
return this.o1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
906
|
};
|
|
907
|
-
protoOf(AuthTokenHolder$clearToken$slambda).
|
|
908
|
-
var suspendResult = this.
|
|
907
|
+
protoOf(AuthTokenHolder$clearToken$slambda).h9 = function () {
|
|
908
|
+
var suspendResult = this.b9_1;
|
|
909
909
|
$sm: do
|
|
910
910
|
try {
|
|
911
|
-
var tmp = this.
|
|
911
|
+
var tmp = this.z8_1;
|
|
912
912
|
switch (tmp) {
|
|
913
913
|
case 0:
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
917
|
-
this.
|
|
918
|
-
suspendResult = this.
|
|
914
|
+
this.a9_1 = 2;
|
|
915
|
+
this.n6i_1 = this.k6i_1.a6i_1;
|
|
916
|
+
this.m6i_1 = null;
|
|
917
|
+
this.z8_1 = 1;
|
|
918
|
+
suspendResult = this.n6i_1.l1e(this.m6i_1, this);
|
|
919
919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
920
920
|
return suspendResult;
|
|
921
921
|
}
|
|
@@ -925,85 +925,85 @@
|
|
|
925
925
|
l$ret$1: do {
|
|
926
926
|
var tmp_0;
|
|
927
927
|
try {
|
|
928
|
-
this.
|
|
928
|
+
this.k6i_1.y6h_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.n6i_1.m1e(this.m6i_1);
|
|
934
934
|
throw t;
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
while (false);
|
|
938
|
-
this.
|
|
938
|
+
this.n6i_1.m1e(this.m6i_1);
|
|
939
939
|
return Unit_instance;
|
|
940
940
|
case 2:
|
|
941
|
-
throw this.
|
|
941
|
+
throw this.c9_1;
|
|
942
942
|
}
|
|
943
943
|
} catch ($p) {
|
|
944
944
|
var e = $p;
|
|
945
|
-
if (this.
|
|
945
|
+
if (this.a9_1 === 2) {
|
|
946
946
|
throw e;
|
|
947
947
|
} else {
|
|
948
|
-
this.
|
|
949
|
-
this.
|
|
948
|
+
this.z8_1 = this.a9_1;
|
|
949
|
+
this.c9_1 = e;
|
|
950
950
|
}
|
|
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).p1w = function ($this$launch, completion) {
|
|
955
|
+
var i = new AuthTokenHolder$clearToken$slambda(this.k6i_1, completion);
|
|
956
|
+
i.l6i_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.o1w($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.w6i_1 = _this__u8e3s4;
|
|
970
970
|
}
|
|
971
|
-
protoOf($loadTokenCOROUTINE$).
|
|
972
|
-
var suspendResult = this.
|
|
971
|
+
protoOf($loadTokenCOROUTINE$).h9 = function () {
|
|
972
|
+
var suspendResult = this.b9_1;
|
|
973
973
|
$sm: do
|
|
974
974
|
try {
|
|
975
|
-
var tmp = this.
|
|
975
|
+
var tmp = this.z8_1;
|
|
976
976
|
switch (tmp) {
|
|
977
977
|
case 0:
|
|
978
|
-
this.
|
|
979
|
-
if (!this.
|
|
980
|
-
this.
|
|
981
|
-
suspendResult = this.
|
|
978
|
+
this.a9_1 = 14;
|
|
979
|
+
if (!this.w6i_1.x6h_1) {
|
|
980
|
+
this.z8_1 = 13;
|
|
981
|
+
suspendResult = this.w6i_1.w6h_1(this);
|
|
982
982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
983
983
|
return suspendResult;
|
|
984
984
|
}
|
|
985
985
|
continue $sm;
|
|
986
986
|
} else {
|
|
987
|
-
this.
|
|
987
|
+
this.z8_1 = 1;
|
|
988
988
|
continue $sm;
|
|
989
989
|
}
|
|
990
990
|
|
|
991
991
|
case 1:
|
|
992
|
-
if (!(this.
|
|
993
|
-
return this.
|
|
994
|
-
this.
|
|
995
|
-
if (!(this.
|
|
996
|
-
this.
|
|
997
|
-
suspendResult = this.
|
|
992
|
+
if (!(this.w6i_1.y6h_1 == null))
|
|
993
|
+
return this.w6i_1.y6h_1;
|
|
994
|
+
this.b6j_1 = this.w6i_1.y6h_1;
|
|
995
|
+
if (!(this.f9().m9(Companion_instance) == null)) {
|
|
996
|
+
this.z8_1 = 11;
|
|
997
|
+
suspendResult = this.w6i_1.w6h_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.
|
|
1005
|
-
this.
|
|
1006
|
-
suspendResult = this.
|
|
1003
|
+
this.z6i_1 = this.w6i_1.a6i_1;
|
|
1004
|
+
this.y6i_1 = null;
|
|
1005
|
+
this.z8_1 = 2;
|
|
1006
|
+
suspendResult = this.z6i_1.l1e(this.y6i_1, this);
|
|
1007
1007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1008
1008
|
return suspendResult;
|
|
1009
1009
|
}
|
|
@@ -1011,165 +1011,161 @@
|
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
case 2:
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1014
|
+
this.a6j_1 = Unit_instance;
|
|
1015
|
+
this.z8_1 = 3;
|
|
1016
1016
|
continue $sm;
|
|
1017
1017
|
case 3:
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1018
|
+
this.a9_1 = 10;
|
|
1019
|
+
this.w6i_1.z6h_1 = true;
|
|
1020
|
+
this.z8_1 = 4;
|
|
1021
1021
|
continue $sm;
|
|
1022
1022
|
case 4:
|
|
1023
|
-
this.
|
|
1024
|
-
if (equals(this.
|
|
1025
|
-
this.
|
|
1026
|
-
suspendResult = this.
|
|
1023
|
+
this.a9_1 = 9;
|
|
1024
|
+
if (equals(this.b6j_1, this.w6i_1.y6h_1)) {
|
|
1025
|
+
this.z8_1 = 5;
|
|
1026
|
+
suspendResult = this.w6i_1.w6h_1(this);
|
|
1027
1027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1028
|
return suspendResult;
|
|
1029
1029
|
}
|
|
1030
1030
|
continue $sm;
|
|
1031
1031
|
} else {
|
|
1032
|
-
this.
|
|
1032
|
+
this.z8_1 = 6;
|
|
1033
1033
|
continue $sm;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
case 5:
|
|
1037
1037
|
var ARGUMENT = suspendResult;
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1038
|
+
this.w6i_1.y6h_1 = ARGUMENT;
|
|
1039
|
+
this.z8_1 = 6;
|
|
1040
1040
|
continue $sm;
|
|
1041
1041
|
case 6:
|
|
1042
|
-
this.
|
|
1042
|
+
this.z8_1 = 7;
|
|
1043
1043
|
continue $sm;
|
|
1044
1044
|
case 7:
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1045
|
+
this.a9_1 = 10;
|
|
1046
|
+
this.w6i_1.z6h_1 = false;
|
|
1047
|
+
this.a6j_1 = this.w6i_1.y6h_1;
|
|
1048
|
+
this.a9_1 = 14;
|
|
1049
|
+
this.z8_1 = 8;
|
|
1050
1050
|
continue $sm;
|
|
1051
1051
|
case 8:
|
|
1052
|
-
var tmp_0 = this.
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1052
|
+
var tmp_0 = this.a6j_1;
|
|
1053
|
+
this.a9_1 = 14;
|
|
1054
|
+
this.z6i_1.m1e(this.y6i_1);
|
|
1055
|
+
this.x6i_1 = tmp_0;
|
|
1056
|
+
this.z8_1 = 12;
|
|
1057
1057
|
continue $sm;
|
|
1058
1058
|
case 9:
|
|
1059
|
-
this.
|
|
1060
|
-
var t = this.
|
|
1061
|
-
this.
|
|
1059
|
+
this.a9_1 = 10;
|
|
1060
|
+
var t = this.c9_1;
|
|
1061
|
+
this.w6i_1.z6h_1 = false;
|
|
1062
1062
|
throw t;
|
|
1063
1063
|
case 10:
|
|
1064
|
-
this.
|
|
1065
|
-
var t_0 = this.
|
|
1066
|
-
this.
|
|
1064
|
+
this.a9_1 = 14;
|
|
1065
|
+
var t_0 = this.c9_1;
|
|
1066
|
+
this.z6i_1.m1e(this.y6i_1);
|
|
1067
1067
|
throw t_0;
|
|
1068
1068
|
case 11:
|
|
1069
1069
|
var ARGUMENT_0 = suspendResult;
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1070
|
+
this.w6i_1.y6h_1 = ARGUMENT_0;
|
|
1071
|
+
this.x6i_1 = this.w6i_1.y6h_1;
|
|
1072
|
+
this.z8_1 = 12;
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
case 12:
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.x6i_1;
|
|
1076
1076
|
case 13:
|
|
1077
1077
|
return suspendResult;
|
|
1078
1078
|
case 14:
|
|
1079
|
-
throw this.
|
|
1079
|
+
throw this.c9_1;
|
|
1080
1080
|
}
|
|
1081
1081
|
} catch ($p) {
|
|
1082
1082
|
var e = $p;
|
|
1083
|
-
if (this.
|
|
1083
|
+
if (this.a9_1 === 14) {
|
|
1084
1084
|
throw e;
|
|
1085
1085
|
} else {
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1086
|
+
this.z8_1 = this.a9_1;
|
|
1087
|
+
this.c9_1 = e;
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
while (true);
|
|
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.w6h_1 = loadTokens;
|
|
1095
|
+
this.x6h_1 = cacheTokens;
|
|
1096
|
+
this.y6h_1 = null;
|
|
1097
|
+
this.z6h_1 = false;
|
|
1098
|
+
this.a6i_1 = Mutex();
|
|
1099
|
+
this.b6i_1 = new SetTokenContext();
|
|
1100
1100
|
}
|
|
1101
|
-
protoOf(AuthTokenHolder).
|
|
1101
|
+
protoOf(AuthTokenHolder).c6j = function ($completion) {
|
|
1102
1102
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1103
|
-
tmp.
|
|
1104
|
-
tmp.
|
|
1105
|
-
return tmp.
|
|
1103
|
+
tmp.b9_1 = Unit_instance;
|
|
1104
|
+
tmp.c9_1 = null;
|
|
1105
|
+
return tmp.h9();
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(AuthTokenHolder).
|
|
1108
|
-
var prevValue = this.
|
|
1109
|
-
var lockedByLoad = this.
|
|
1107
|
+
protoOf(AuthTokenHolder).d6j = function (nonCancellable, block, $completion) {
|
|
1108
|
+
var prevValue = this.y6h_1;
|
|
1109
|
+
var lockedByLoad = this.z6h_1;
|
|
1110
1110
|
var tmp;
|
|
1111
1111
|
if (nonCancellable) {
|
|
1112
1112
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1113
|
-
tmp = $completion.
|
|
1113
|
+
tmp = $completion.f9().ej(NonCancellable_getInstance()).ej(this.b6i_1);
|
|
1114
1114
|
} else {
|
|
1115
1115
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1116
|
-
tmp = $completion.
|
|
1116
|
+
tmp = $completion.f9().ej(this.b6i_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).e6j = function (coroutineScope) {
|
|
1122
|
+
if (this.a6i_1.k1e()) {
|
|
1123
|
+
this.y6h_1 = null;
|
|
1124
|
+
this.a6i_1.n1e();
|
|
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).f6j = function (coroutineScope, $super) {
|
|
1130
1130
|
coroutineScope = coroutineScope === VOID ? GlobalScope_instance : coroutineScope;
|
|
1131
1131
|
var tmp;
|
|
1132
1132
|
if ($super === VOID) {
|
|
1133
|
-
this.
|
|
1133
|
+
this.e6j(coroutineScope);
|
|
1134
1134
|
tmp = Unit_instance;
|
|
1135
1135
|
} else {
|
|
1136
|
-
tmp = $super.
|
|
1136
|
+
tmp = $super.e6j.call(this, coroutineScope);
|
|
1137
1137
|
}
|
|
1138
1138
|
return tmp;
|
|
1139
1139
|
};
|
|
1140
|
-
function BearerTokens(accessToken, refreshToken) {
|
|
1141
|
-
this.f6j_1 = accessToken;
|
|
1142
|
-
this.g6j_1 = refreshToken;
|
|
1143
|
-
}
|
|
1144
1140
|
function bearer(_this__u8e3s4, block) {
|
|
1145
1141
|
// Inline function 'kotlin.apply' call
|
|
1146
1142
|
var this_0 = new BearerAuthConfig();
|
|
1147
1143
|
block(this_0);
|
|
1148
1144
|
// Inline function 'kotlin.with' call
|
|
1149
|
-
_this__u8e3s4.
|
|
1145
|
+
_this__u8e3s4.l6e_1.e1(new BearerAuthProvider(this_0.g6j_1, this_0.h6j_1, this_0.i6j_1, this_0.j6j_1, this_0.k6j_1, this_0.l6j_1));
|
|
1150
1146
|
}
|
|
1151
1147
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1152
1148
|
CoroutineImpl.call(this, resultContinuation);
|
|
1153
1149
|
}
|
|
1154
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1155
|
-
var tmp = this.
|
|
1156
|
-
tmp.
|
|
1157
|
-
tmp.
|
|
1158
|
-
return tmp.
|
|
1150
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).v6j = function (_this__u8e3s4, $completion) {
|
|
1151
|
+
var tmp = this.w6j(_this__u8e3s4, $completion);
|
|
1152
|
+
tmp.b9_1 = Unit_instance;
|
|
1153
|
+
tmp.c9_1 = null;
|
|
1154
|
+
return tmp.h9();
|
|
1159
1155
|
};
|
|
1160
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1161
|
-
return this.
|
|
1156
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).t9 = function (p1, $completion) {
|
|
1157
|
+
return this.v6j(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1162
1158
|
};
|
|
1163
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1164
|
-
var suspendResult = this.
|
|
1159
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).h9 = function () {
|
|
1160
|
+
var suspendResult = this.b9_1;
|
|
1165
1161
|
$sm: do
|
|
1166
1162
|
try {
|
|
1167
|
-
var tmp = this.
|
|
1163
|
+
var tmp = this.z8_1;
|
|
1168
1164
|
if (tmp === 0) {
|
|
1169
|
-
this.
|
|
1165
|
+
this.a9_1 = 1;
|
|
1170
1166
|
return null;
|
|
1171
1167
|
} else if (tmp === 1) {
|
|
1172
|
-
throw this.
|
|
1168
|
+
throw this.c9_1;
|
|
1173
1169
|
}
|
|
1174
1170
|
} catch ($p) {
|
|
1175
1171
|
var e = $p;
|
|
@@ -1177,15 +1173,15 @@
|
|
|
1177
1173
|
}
|
|
1178
1174
|
while (true);
|
|
1179
1175
|
};
|
|
1180
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1176
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).w6j = function (_this__u8e3s4, completion) {
|
|
1181
1177
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1182
|
-
i.
|
|
1178
|
+
i.u6j_1 = _this__u8e3s4;
|
|
1183
1179
|
return i;
|
|
1184
1180
|
};
|
|
1185
1181
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1186
1182
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1187
1183
|
var l = function (_this__u8e3s4, $completion) {
|
|
1188
|
-
return i.
|
|
1184
|
+
return i.v6j(_this__u8e3s4, $completion);
|
|
1189
1185
|
};
|
|
1190
1186
|
l.$arity = 1;
|
|
1191
1187
|
return l;
|
|
@@ -1193,25 +1189,25 @@
|
|
|
1193
1189
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1194
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1195
1191
|
}
|
|
1196
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1197
|
-
var tmp = this.
|
|
1198
|
-
tmp.
|
|
1199
|
-
tmp.
|
|
1200
|
-
return tmp.
|
|
1192
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).f6k = function ($completion) {
|
|
1193
|
+
var tmp = this.g6k($completion);
|
|
1194
|
+
tmp.b9_1 = Unit_instance;
|
|
1195
|
+
tmp.c9_1 = null;
|
|
1196
|
+
return tmp.h9();
|
|
1201
1197
|
};
|
|
1202
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1203
|
-
return this.
|
|
1198
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).qa = function ($completion) {
|
|
1199
|
+
return this.f6k($completion);
|
|
1204
1200
|
};
|
|
1205
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1206
|
-
var suspendResult = this.
|
|
1201
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).h9 = function () {
|
|
1202
|
+
var suspendResult = this.b9_1;
|
|
1207
1203
|
$sm: do
|
|
1208
1204
|
try {
|
|
1209
|
-
var tmp = this.
|
|
1205
|
+
var tmp = this.z8_1;
|
|
1210
1206
|
if (tmp === 0) {
|
|
1211
|
-
this.
|
|
1207
|
+
this.a9_1 = 1;
|
|
1212
1208
|
return null;
|
|
1213
1209
|
} else if (tmp === 1) {
|
|
1214
|
-
throw this.
|
|
1210
|
+
throw this.c9_1;
|
|
1215
1211
|
}
|
|
1216
1212
|
} catch ($p) {
|
|
1217
1213
|
var e = $p;
|
|
@@ -1219,13 +1215,13 @@
|
|
|
1219
1215
|
}
|
|
1220
1216
|
while (true);
|
|
1221
1217
|
};
|
|
1222
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1218
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).g6k = function (completion) {
|
|
1223
1219
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1224
1220
|
};
|
|
1225
1221
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1226
1222
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1227
1223
|
var l = function ($completion) {
|
|
1228
|
-
return i.
|
|
1224
|
+
return i.f6k($completion);
|
|
1229
1225
|
};
|
|
1230
1226
|
l.$arity = 0;
|
|
1231
1227
|
return l;
|
|
@@ -1235,71 +1231,75 @@
|
|
|
1235
1231
|
}
|
|
1236
1232
|
function BearerAuthConfig() {
|
|
1237
1233
|
var tmp = this;
|
|
1238
|
-
tmp.
|
|
1234
|
+
tmp.g6j_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1239
1235
|
var tmp_0 = this;
|
|
1240
|
-
tmp_0.
|
|
1236
|
+
tmp_0.h6j_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1241
1237
|
var tmp_1 = this;
|
|
1242
|
-
tmp_1.
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1238
|
+
tmp_1.i6j_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1239
|
+
this.j6j_1 = null;
|
|
1240
|
+
this.k6j_1 = true;
|
|
1241
|
+
this.l6j_1 = false;
|
|
1246
1242
|
}
|
|
1243
|
+
protoOf(BearerAuthConfig).h6k = function (block) {
|
|
1244
|
+
this.g6j_1 = block;
|
|
1245
|
+
};
|
|
1247
1246
|
protoOf(BearerAuthConfig).i6k = function (block) {
|
|
1248
1247
|
this.h6j_1 = block;
|
|
1249
1248
|
};
|
|
1250
|
-
|
|
1251
|
-
this.
|
|
1252
|
-
|
|
1249
|
+
function BearerTokens(accessToken, refreshToken) {
|
|
1250
|
+
this.j6k_1 = accessToken;
|
|
1251
|
+
this.k6k_1 = refreshToken;
|
|
1252
|
+
}
|
|
1253
1253
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1254
|
+
this.l6k_1 = client;
|
|
1255
|
+
this.m6k_1 = response;
|
|
1256
|
+
this.n6k_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.j6k_1;
|
|
1264
1264
|
var tmp;
|
|
1265
|
-
if ($this$headers.
|
|
1266
|
-
$this$headers.
|
|
1265
|
+
if ($this$headers.n2n('Authorization')) {
|
|
1266
|
+
$this$headers.c2o('Authorization');
|
|
1267
1267
|
tmp = Unit_instance;
|
|
1268
1268
|
}
|
|
1269
1269
|
var tmp_0;
|
|
1270
|
-
if (!$request.
|
|
1271
|
-
$this$headers.
|
|
1270
|
+
if (!$request.q3r_1.q2j(get_AuthCircuitBreaker())) {
|
|
1271
|
+
$this$headers.o2n('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.w6k_1 = this$0;
|
|
1279
|
+
this.x6k_1 = $response;
|
|
1280
1280
|
CoroutineImpl.call(this, resultContinuation);
|
|
1281
1281
|
}
|
|
1282
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1283
|
-
var tmp = this.
|
|
1284
|
-
tmp.
|
|
1285
|
-
tmp.
|
|
1286
|
-
return tmp.
|
|
1282
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).f6k = function ($completion) {
|
|
1283
|
+
var tmp = this.g6k($completion);
|
|
1284
|
+
tmp.b9_1 = Unit_instance;
|
|
1285
|
+
tmp.c9_1 = null;
|
|
1286
|
+
return tmp.h9();
|
|
1287
1287
|
};
|
|
1288
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1289
|
-
return this.
|
|
1288
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).qa = function ($completion) {
|
|
1289
|
+
return this.f6k($completion);
|
|
1290
1290
|
};
|
|
1291
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1292
|
-
var suspendResult = this.
|
|
1291
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).h9 = function () {
|
|
1292
|
+
var suspendResult = this.b9_1;
|
|
1293
1293
|
$sm: do
|
|
1294
1294
|
try {
|
|
1295
|
-
var tmp = this.
|
|
1295
|
+
var tmp = this.z8_1;
|
|
1296
1296
|
switch (tmp) {
|
|
1297
1297
|
case 0:
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
suspendResult = this.
|
|
1298
|
+
this.a9_1 = 3;
|
|
1299
|
+
this.y6k_1 = this.w6k_1.a6l_1;
|
|
1300
|
+
this.z6k_1 = this.x6k_1.c3t().g3q_1;
|
|
1301
|
+
this.z8_1 = 1;
|
|
1302
|
+
suspendResult = this.w6k_1.e6l_1.c6j(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.
|
|
1311
|
-
this.
|
|
1312
|
-
suspendResult = this.
|
|
1310
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.z6k_1, this.x6k_1, ARGUMENT);
|
|
1311
|
+
this.z8_1 = 2;
|
|
1312
|
+
suspendResult = this.y6k_1(ARGUMENT_0, this);
|
|
1313
1313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1314
1314
|
return suspendResult;
|
|
1315
1315
|
}
|
|
@@ -1318,46 +1318,46 @@
|
|
|
1318
1318
|
case 2:
|
|
1319
1319
|
return suspendResult;
|
|
1320
1320
|
case 3:
|
|
1321
|
-
throw this.
|
|
1321
|
+
throw this.c9_1;
|
|
1322
1322
|
}
|
|
1323
1323
|
} catch ($p) {
|
|
1324
1324
|
var e = $p;
|
|
1325
|
-
if (this.
|
|
1325
|
+
if (this.a9_1 === 3) {
|
|
1326
1326
|
throw e;
|
|
1327
1327
|
} else {
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1328
|
+
this.z8_1 = this.a9_1;
|
|
1329
|
+
this.c9_1 = e;
|
|
1330
1330
|
}
|
|
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).g6k = function (completion) {
|
|
1335
|
+
return new BearerAuthProvider$refreshToken$slambda(this.w6k_1, this.x6k_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.f6k($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.n6l_1 = _this__u8e3s4;
|
|
1348
|
+
this.o6l_1 = request;
|
|
1349
|
+
this.p6l_1 = authHeader;
|
|
1350
1350
|
}
|
|
1351
|
-
protoOf($addRequestHeadersCOROUTINE$).
|
|
1352
|
-
var suspendResult = this.
|
|
1351
|
+
protoOf($addRequestHeadersCOROUTINE$).h9 = function () {
|
|
1352
|
+
var suspendResult = this.b9_1;
|
|
1353
1353
|
$sm: do
|
|
1354
1354
|
try {
|
|
1355
|
-
var tmp = this.
|
|
1355
|
+
var tmp = this.z8_1;
|
|
1356
1356
|
switch (tmp) {
|
|
1357
1357
|
case 0:
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
suspendResult = this.
|
|
1358
|
+
this.a9_1 = 2;
|
|
1359
|
+
this.z8_1 = 1;
|
|
1360
|
+
suspendResult = this.n6l_1.e6l_1.c6j(this);
|
|
1361
1361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1362
1362
|
return suspendResult;
|
|
1363
1363
|
}
|
|
@@ -1373,37 +1373,37 @@
|
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
var token = tmp_0;
|
|
1376
|
-
headers(this.
|
|
1376
|
+
headers(this.o6l_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.o6l_1));
|
|
1377
1377
|
return Unit_instance;
|
|
1378
1378
|
case 2:
|
|
1379
|
-
throw this.
|
|
1379
|
+
throw this.c9_1;
|
|
1380
1380
|
}
|
|
1381
1381
|
} catch ($p) {
|
|
1382
1382
|
var e = $p;
|
|
1383
|
-
if (this.
|
|
1383
|
+
if (this.a9_1 === 2) {
|
|
1384
1384
|
throw e;
|
|
1385
1385
|
} else {
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1386
|
+
this.z8_1 = this.a9_1;
|
|
1387
|
+
this.c9_1 = e;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
while (true);
|
|
1391
1391
|
};
|
|
1392
1392
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1393
1393
|
CoroutineImpl.call(this, resultContinuation);
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1394
|
+
this.y6l_1 = _this__u8e3s4;
|
|
1395
|
+
this.z6l_1 = response;
|
|
1396
1396
|
}
|
|
1397
|
-
protoOf($refreshTokenCOROUTINE$).
|
|
1398
|
-
var suspendResult = this.
|
|
1397
|
+
protoOf($refreshTokenCOROUTINE$).h9 = function () {
|
|
1398
|
+
var suspendResult = this.b9_1;
|
|
1399
1399
|
$sm: do
|
|
1400
1400
|
try {
|
|
1401
|
-
var tmp = this.
|
|
1401
|
+
var tmp = this.z8_1;
|
|
1402
1402
|
switch (tmp) {
|
|
1403
1403
|
case 0:
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
suspendResult = this.
|
|
1404
|
+
this.a9_1 = 2;
|
|
1405
|
+
this.z8_1 = 1;
|
|
1406
|
+
suspendResult = this.y6l_1.e6l_1.d6j(this.y6l_1.d6l_1, BearerAuthProvider$refreshToken$slambda_0(this.y6l_1, this.z6l_1, null), this);
|
|
1407
1407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
1408
|
return suspendResult;
|
|
1409
1409
|
}
|
|
@@ -1413,15 +1413,15 @@
|
|
|
1413
1413
|
var newToken = suspendResult;
|
|
1414
1414
|
return !(newToken == null);
|
|
1415
1415
|
case 2:
|
|
1416
|
-
throw this.
|
|
1416
|
+
throw this.c9_1;
|
|
1417
1417
|
}
|
|
1418
1418
|
} catch ($p) {
|
|
1419
1419
|
var e = $p;
|
|
1420
|
-
if (this.
|
|
1420
|
+
if (this.a9_1 === 2) {
|
|
1421
1421
|
throw e;
|
|
1422
1422
|
} else {
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1423
|
+
this.z8_1 = this.a9_1;
|
|
1424
|
+
this.c9_1 = e;
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
while (true);
|
|
@@ -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.a6l_1 = refreshTokens;
|
|
1440
|
+
this.b6l_1 = sendWithoutRequestCallback;
|
|
1441
|
+
this.c6l_1 = realm;
|
|
1442
|
+
this.d6l_1 = nonCancellableRefresh;
|
|
1443
|
+
this.e6l_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1444
1444
|
}
|
|
1445
|
-
protoOf(BearerAuthProvider).
|
|
1445
|
+
protoOf(BearerAuthProvider).e6h = 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).h6g = function (request) {
|
|
1450
|
+
return this.b6l_1(request);
|
|
1451
1451
|
};
|
|
1452
|
-
protoOf(BearerAuthProvider).
|
|
1453
|
-
if (!(auth.
|
|
1454
|
-
get_LOGGER().
|
|
1452
|
+
protoOf(BearerAuthProvider).o6e = function (auth) {
|
|
1453
|
+
if (!(auth.r36_1 === 'Bearer')) {
|
|
1454
|
+
get_LOGGER().f2t('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.c6l_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.s2v('realm') == this.c6l_1;
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
var isSameRealm = tmp;
|
|
1468
1468
|
if (!isSameRealm) {
|
|
1469
|
-
get_LOGGER().
|
|
1469
|
+
get_LOGGER().f2t('Bearer Auth Provider is not applicable for this realm');
|
|
1470
1470
|
}
|
|
1471
1471
|
return isSameRealm;
|
|
1472
1472
|
};
|
|
1473
|
-
protoOf(BearerAuthProvider).
|
|
1473
|
+
protoOf(BearerAuthProvider).d6h = function (request, authHeader, $completion) {
|
|
1474
1474
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1475
|
-
tmp.
|
|
1476
|
-
tmp.
|
|
1477
|
-
return tmp.
|
|
1475
|
+
tmp.b9_1 = Unit_instance;
|
|
1476
|
+
tmp.c9_1 = null;
|
|
1477
|
+
return tmp.h9();
|
|
1478
1478
|
};
|
|
1479
|
-
protoOf(BearerAuthProvider).
|
|
1479
|
+
protoOf(BearerAuthProvider).c6h = function (response, $completion) {
|
|
1480
1480
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1481
|
-
tmp.
|
|
1482
|
-
tmp.
|
|
1483
|
-
return tmp.
|
|
1481
|
+
tmp.b9_1 = Unit_instance;
|
|
1482
|
+
tmp.c9_1 = null;
|
|
1483
|
+
return tmp.h9();
|
|
1484
1484
|
};
|
|
1485
|
-
protoOf(BearerAuthProvider).
|
|
1486
|
-
this.
|
|
1485
|
+
protoOf(BearerAuthProvider).a6m = function () {
|
|
1486
|
+
this.e6l_1.f6j();
|
|
1487
1487
|
};
|
|
1488
1488
|
//region block: post-declaration
|
|
1489
|
-
protoOf(SetTokenContext).
|
|
1490
|
-
protoOf(SetTokenContext).
|
|
1491
|
-
protoOf(SetTokenContext).
|
|
1492
|
-
protoOf(SetTokenContext).
|
|
1493
|
-
protoOf(BearerAuthProvider).
|
|
1489
|
+
protoOf(SetTokenContext).m9 = get;
|
|
1490
|
+
protoOf(SetTokenContext).dj = fold;
|
|
1491
|
+
protoOf(SetTokenContext).cj = minusKey;
|
|
1492
|
+
protoOf(SetTokenContext).ej = plus;
|
|
1493
|
+
protoOf(BearerAuthProvider).i6g = addRequestHeaders$default;
|
|
1494
1494
|
//endregion
|
|
1495
1495
|
//region block: init
|
|
1496
1496
|
Companion_instance = new Companion();
|