@doordeck/doordeck-headless-sdk 0.199.0 → 0.200.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +6980 -6979
- package/kotlin/kotlin-kotlin-stdlib.js +483 -462
- package/kotlin/kotlinx-atomicfu.js +9 -9
- package/kotlin/kotlinx-coroutines-core.js +126 -125
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +21 -21
- package/kotlin/kotlinx-io-kotlinx-io-core.js +36 -36
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +199 -198
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1245 -1244
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +155 -155
- package/kotlin/ktor-ktor-client-core.js +2361 -2247
- package/kotlin/ktor-ktor-client-logging.js +621 -621
- package/kotlin/ktor-ktor-events.js +8 -8
- package/kotlin/ktor-ktor-http-cio.js +70 -70
- package/kotlin/ktor-ktor-http.js +118 -117
- package/kotlin/ktor-ktor-io.js +67 -67
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +128 -128
- package/kotlin/ktor-ktor-serialization.js +16 -16
- package/kotlin/ktor-ktor-utils.js +160 -139
- package/kotlin/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.q9;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.ec;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.eg;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
11
|
-
var VOID = kotlin_kotlin.$_$.
|
|
12
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.mb;
|
|
11
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
12
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.hb;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
|
-
var toList = kotlin_kotlin.$_$.
|
|
15
|
+
var toList = kotlin_kotlin.$_$.m8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.e;
|
|
17
|
-
var KtMutableMap = kotlin_kotlin.$_$.
|
|
18
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
20
|
-
var createKType = kotlin_kotlin.$_$.
|
|
21
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
22
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
17
|
+
var KtMutableMap = kotlin_kotlin.$_$.t5;
|
|
18
|
+
var getKClass = kotlin_kotlin.$_$.wc;
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.sg;
|
|
20
|
+
var createKType = kotlin_kotlin.$_$.uc;
|
|
21
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.sc;
|
|
22
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
|
|
23
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
|
|
24
24
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
|
|
25
25
|
var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
26
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
27
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
28
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
26
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
27
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.a6;
|
|
28
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
29
29
|
var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
|
|
30
|
-
var flatten = kotlin_kotlin.$_$.
|
|
31
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
32
|
-
var to = kotlin_kotlin.$_$.
|
|
30
|
+
var flatten = kotlin_kotlin.$_$.f7;
|
|
31
|
+
var emptyList = kotlin_kotlin.$_$.v6;
|
|
32
|
+
var to = kotlin_kotlin.$_$.ih;
|
|
33
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
34
|
-
var first = kotlin_kotlin.$_$.
|
|
34
|
+
var first = kotlin_kotlin.$_$.e7;
|
|
35
35
|
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
36
36
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
37
|
-
var toString = kotlin_kotlin.$_$.
|
|
38
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
37
|
+
var toString = kotlin_kotlin.$_$.hc;
|
|
38
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a9;
|
|
39
39
|
var Sender = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
40
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
40
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.jb;
|
|
42
42
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
43
|
-
var Unit = kotlin_kotlin.$_$.
|
|
43
|
+
var Unit = kotlin_kotlin.$_$.pg;
|
|
44
44
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
45
|
-
var KtList = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
48
|
-
var get = kotlin_kotlin.$_$.
|
|
49
|
-
var fold = kotlin_kotlin.$_$.
|
|
50
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
51
|
-
var plus = kotlin_kotlin.$_$.
|
|
52
|
-
var Element = kotlin_kotlin.$_$.
|
|
53
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
54
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
55
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
+
var KtList = kotlin_kotlin.$_$.m5;
|
|
46
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.lb;
|
|
47
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ib;
|
|
48
|
+
var get = kotlin_kotlin.$_$.m9;
|
|
49
|
+
var fold = kotlin_kotlin.$_$.l9;
|
|
50
|
+
var minusKey = kotlin_kotlin.$_$.n9;
|
|
51
|
+
var plus = kotlin_kotlin.$_$.p9;
|
|
52
|
+
var Element = kotlin_kotlin.$_$.o9;
|
|
53
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.wb;
|
|
55
|
+
var equals = kotlin_kotlin.$_$.za;
|
|
56
56
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
57
57
|
var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
58
58
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
60
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s2;
|
|
61
61
|
var Parameterized = kotlin_io_ktor_ktor_http.$_$.k;
|
|
62
62
|
//endregion
|
|
63
63
|
//region block: pre-declaration
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
70
70
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
71
71
|
function sendWithoutRequest(request) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.w52();
|
|
73
73
|
}
|
|
74
74
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
75
75
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
76
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.v52(request, authHeader, $completion) : $super.v52.call(this, request, authHeader, $completion);
|
|
77
77
|
}
|
|
78
78
|
function refreshToken(response, $completion) {
|
|
79
79
|
return true;
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
118
118
|
CoroutineImpl.call(this, resultContinuation);
|
|
119
119
|
}
|
|
120
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
121
|
-
var tmp = this.
|
|
120
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).c50 = function (it, $completion) {
|
|
121
|
+
var tmp = this.x3y(it, $completion);
|
|
122
122
|
tmp.c9_1 = Unit_instance;
|
|
123
123
|
tmp.d9_1 = null;
|
|
124
124
|
return tmp.i9();
|
|
125
125
|
};
|
|
126
126
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function (p1, $completion) {
|
|
127
|
-
return this.
|
|
127
|
+
return this.c50(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
128
128
|
};
|
|
129
129
|
protoOf(AuthConfig$isUnauthorizedResponse$slambda).i9 = function () {
|
|
130
130
|
var suspendResult = this.c9_1;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
var tmp = this.a9_1;
|
|
134
134
|
if (tmp === 0) {
|
|
135
135
|
this.b9_1 = 1;
|
|
136
|
-
return this.
|
|
136
|
+
return this.b50_1.y35().equals(Companion_getInstance().p31_1);
|
|
137
137
|
} else if (tmp === 1) {
|
|
138
138
|
throw this.d9_1;
|
|
139
139
|
}
|
|
@@ -143,15 +143,15 @@
|
|
|
143
143
|
}
|
|
144
144
|
while (true);
|
|
145
145
|
};
|
|
146
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
146
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).x3y = function (it, completion) {
|
|
147
147
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
148
|
-
i.
|
|
148
|
+
i.b50_1 = it;
|
|
149
149
|
return i;
|
|
150
150
|
};
|
|
151
151
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
152
152
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
153
153
|
var l = function (it, $completion) {
|
|
154
|
-
return i.
|
|
154
|
+
return i.c50(it, $completion);
|
|
155
155
|
};
|
|
156
156
|
l.$arity = 1;
|
|
157
157
|
return l;
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
function AuthConfig() {
|
|
160
160
|
var tmp = this;
|
|
161
161
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
162
|
-
tmp.
|
|
162
|
+
tmp.d50_1 = ArrayList_init_$Create$();
|
|
163
163
|
var tmp_0 = this;
|
|
164
|
-
tmp_0.
|
|
164
|
+
tmp_0.e50_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
165
165
|
}
|
|
166
166
|
function AtomicCounter() {
|
|
167
|
-
this.
|
|
167
|
+
this.f50_1 = atomic$int$1(0);
|
|
168
168
|
}
|
|
169
169
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
170
170
|
var l = function () {
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
}
|
|
176
176
|
function Auth$lambda($this$createClientPlugin) {
|
|
177
177
|
_init_properties_Auth_kt__9ob1dk();
|
|
178
|
-
var providers = toList($this$createClientPlugin.
|
|
179
|
-
$this$createClientPlugin.
|
|
178
|
+
var providers = toList($this$createClientPlugin.x3x_1.d50_1);
|
|
179
|
+
$this$createClientPlugin.w3x_1.w3n_1.t2j(get_AuthProvidersKey(), providers);
|
|
180
180
|
var tokenVersions = new ConcurrentMap();
|
|
181
181
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
182
182
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
var tmp$ret$2 = tmp_0;
|
|
200
200
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$2);
|
|
201
201
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
202
|
-
$this$createClientPlugin.
|
|
202
|
+
$this$createClientPlugin.y4c(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
203
203
|
var tmp_2 = Send_instance;
|
|
204
|
-
$this$createClientPlugin.
|
|
204
|
+
$this$createClientPlugin.a3y(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
205
205
|
return Unit_instance;
|
|
206
206
|
}
|
|
207
207
|
function Auth$lambda$refreshTokenIfNeeded$lambda() {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
return LinkedHashMap_init_$Create$();
|
|
215
215
|
}
|
|
216
216
|
function invoke$findProvider(call, candidateProviders) {
|
|
217
|
-
var headerValues = call.
|
|
217
|
+
var headerValues = call.x3o().z2z().h2o('WWW-Authenticate');
|
|
218
218
|
var tmp;
|
|
219
219
|
if (headerValues == null) {
|
|
220
220
|
tmp = null;
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
var _iterator__ex2g4s_0 = authHeaders.t();
|
|
243
243
|
while (_iterator__ex2g4s_0.u()) {
|
|
244
244
|
var element = _iterator__ex2g4s_0.v();
|
|
245
|
-
if (provider.
|
|
245
|
+
if (provider.g50(element)) {
|
|
246
246
|
tmp$ret$3 = element;
|
|
247
247
|
break $l$block;
|
|
248
248
|
}
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
256
256
|
var this_0 = get_LOGGER();
|
|
257
257
|
if (get_isTraceEnabled(this_0)) {
|
|
258
|
-
var tmp$ret$6 = 'Unauthorized response ' + call.
|
|
258
|
+
var tmp$ret$6 = 'Unauthorized response ' + call.f3r().o3r().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
259
259
|
this_0.d2t(tmp$ret$6);
|
|
260
260
|
}
|
|
261
261
|
tmp_0 = null;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
var _iterator__ex2g4s_2 = candidateProviders.t();
|
|
274
274
|
while (_iterator__ex2g4s_2.u()) {
|
|
275
275
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
276
|
-
if (element_1.
|
|
276
|
+
if (element_1.g50(element_0)) {
|
|
277
277
|
tmp$ret$10 = element_1;
|
|
278
278
|
break $l$block_0;
|
|
279
279
|
}
|
|
@@ -320,21 +320,21 @@
|
|
|
320
320
|
return LinkedHashMap_init_$Create$();
|
|
321
321
|
}
|
|
322
322
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
323
|
+
this.s51_1 = $providers;
|
|
324
|
+
this.t51_1 = $tokenVersions;
|
|
325
|
+
this.u51_1 = $tokenVersionsAttributeKey;
|
|
326
326
|
CoroutineImpl.call(this, resultContinuation);
|
|
327
327
|
}
|
|
328
|
-
protoOf(Auth$lambda$slambda).
|
|
329
|
-
var tmp = this.
|
|
328
|
+
protoOf(Auth$lambda$slambda).m4d = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
329
|
+
var tmp = this.n4d($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
330
330
|
tmp.c9_1 = Unit_instance;
|
|
331
331
|
tmp.d9_1 = null;
|
|
332
332
|
return tmp.i9();
|
|
333
333
|
};
|
|
334
|
-
protoOf(Auth$lambda$slambda).
|
|
334
|
+
protoOf(Auth$lambda$slambda).o4d = function (p1, p2, p3, $completion) {
|
|
335
335
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
336
336
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
337
|
-
return this.
|
|
337
|
+
return this.m4d(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
338
338
|
};
|
|
339
339
|
protoOf(Auth$lambda$slambda).i9 = function () {
|
|
340
340
|
var suspendResult = this.c9_1;
|
|
@@ -344,37 +344,37 @@
|
|
|
344
344
|
switch (tmp) {
|
|
345
345
|
case 0:
|
|
346
346
|
this.b9_1 = 4;
|
|
347
|
-
var tmp0 = this.
|
|
347
|
+
var tmp0 = this.s51_1;
|
|
348
348
|
var destination = ArrayList_init_$Create$();
|
|
349
349
|
var _iterator__ex2g4s = tmp0.t();
|
|
350
350
|
while (_iterator__ex2g4s.u()) {
|
|
351
351
|
var element = _iterator__ex2g4s.v();
|
|
352
|
-
if (element.
|
|
352
|
+
if (element.z51(this.w51_1)) {
|
|
353
353
|
destination.j1(element);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
this.
|
|
357
|
+
this.y51_1 = destination.t();
|
|
358
358
|
this.a9_1 = 1;
|
|
359
359
|
continue $sm;
|
|
360
360
|
case 1:
|
|
361
|
-
if (!this.
|
|
361
|
+
if (!this.y51_1.u()) {
|
|
362
362
|
this.a9_1 = 3;
|
|
363
363
|
continue $sm;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
var element_0 = this.
|
|
366
|
+
var element_0 = this.y51_1.v();
|
|
367
367
|
var this_0 = get_LOGGER();
|
|
368
368
|
if (get_isTraceEnabled(this_0)) {
|
|
369
|
-
this_0.d2t('Adding auth headers for ' + this.
|
|
369
|
+
this_0.d2t('Adding auth headers for ' + this.w51_1.x3p_1.toString() + ' from provider ' + toString(element_0));
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
var tokenVersion = this.
|
|
373
|
-
var requestTokenVersions = this.
|
|
374
|
-
var value = tokenVersion.
|
|
372
|
+
var tokenVersion = this.t51_1.s2s(element_0, Auth$lambda$slambda$lambda);
|
|
373
|
+
var requestTokenVersions = this.w51_1.c3q_1.w2j(this.u51_1, Auth$lambda$slambda$lambda_0);
|
|
374
|
+
var value = tokenVersion.f50_1.kotlinx$atomicfu$value;
|
|
375
375
|
requestTokenVersions.y2(element_0, value);
|
|
376
376
|
this.a9_1 = 2;
|
|
377
|
-
suspendResult = element_0.
|
|
377
|
+
suspendResult = element_0.a52(this.w51_1, VOID, this);
|
|
378
378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
379
379
|
return suspendResult;
|
|
380
380
|
}
|
|
@@ -399,37 +399,37 @@
|
|
|
399
399
|
}
|
|
400
400
|
while (true);
|
|
401
401
|
};
|
|
402
|
-
protoOf(Auth$lambda$slambda).
|
|
403
|
-
var i = new Auth$lambda$slambda(this.
|
|
404
|
-
i.
|
|
405
|
-
i.
|
|
406
|
-
i.
|
|
402
|
+
protoOf(Auth$lambda$slambda).n4d = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
403
|
+
var i = new Auth$lambda$slambda(this.s51_1, this.t51_1, this.u51_1, completion);
|
|
404
|
+
i.v51_1 = $this$onRequest;
|
|
405
|
+
i.w51_1 = request;
|
|
406
|
+
i.x51_1 = _unused_var__etf5q3;
|
|
407
407
|
return i;
|
|
408
408
|
};
|
|
409
409
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
410
410
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
411
411
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
412
|
-
return i.
|
|
412
|
+
return i.m4d($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
413
413
|
};
|
|
414
414
|
l.$arity = 3;
|
|
415
415
|
return l;
|
|
416
416
|
}
|
|
417
417
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
418
|
+
this.j52_1 = $this_createClientPlugin;
|
|
419
|
+
this.k52_1 = $providers;
|
|
420
|
+
this.l52_1 = $tokenVersions;
|
|
421
|
+
this.m52_1 = $tokenVersionsAttributeKey;
|
|
422
422
|
CoroutineImpl.call(this, resultContinuation);
|
|
423
423
|
}
|
|
424
|
-
protoOf(Auth$lambda$slambda_1).
|
|
425
|
-
var tmp = this.
|
|
424
|
+
protoOf(Auth$lambda$slambda_1).c45 = function ($this$on, originalRequest, $completion) {
|
|
425
|
+
var tmp = this.d45($this$on, originalRequest, $completion);
|
|
426
426
|
tmp.c9_1 = Unit_instance;
|
|
427
427
|
tmp.d9_1 = null;
|
|
428
428
|
return tmp.i9();
|
|
429
429
|
};
|
|
430
430
|
protoOf(Auth$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
431
431
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
432
|
-
return this.
|
|
432
|
+
return this.c45(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
433
433
|
};
|
|
434
434
|
protoOf(Auth$lambda$slambda_1).i9 = function () {
|
|
435
435
|
var suspendResult = this.c9_1;
|
|
@@ -440,16 +440,16 @@
|
|
|
440
440
|
case 0:
|
|
441
441
|
this.b9_1 = 10;
|
|
442
442
|
this.a9_1 = 1;
|
|
443
|
-
suspendResult = this.
|
|
443
|
+
suspendResult = this.n52_1.g45(this.o52_1, this);
|
|
444
444
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
445
445
|
return suspendResult;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
continue $sm;
|
|
449
449
|
case 1:
|
|
450
|
-
this.
|
|
450
|
+
this.t52_1 = suspendResult;
|
|
451
451
|
this.a9_1 = 2;
|
|
452
|
-
suspendResult = this.
|
|
452
|
+
suspendResult = this.j52_1.x3x_1.e50_1(this.t52_1.x3o(), this);
|
|
453
453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
454
454
|
return suspendResult;
|
|
455
455
|
}
|
|
@@ -457,22 +457,22 @@
|
|
|
457
457
|
continue $sm;
|
|
458
458
|
case 2:
|
|
459
459
|
if (!suspendResult) {
|
|
460
|
-
return this.
|
|
460
|
+
return this.t52_1;
|
|
461
461
|
} else {
|
|
462
462
|
this.a9_1 = 3;
|
|
463
463
|
continue $sm;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
case 3:
|
|
467
|
-
if (this.
|
|
468
|
-
return this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
467
|
+
if (this.t52_1.f3r().g3r().s2j(get_AuthCircuitBreaker()))
|
|
468
|
+
return this.t52_1;
|
|
469
|
+
this.p52_1 = this.t52_1;
|
|
470
|
+
this.s52_1 = HashSet_init_$Create$(this.k52_1);
|
|
471
471
|
this.a9_1 = 4;
|
|
472
472
|
continue $sm;
|
|
473
473
|
case 4:
|
|
474
474
|
this.a9_1 = 5;
|
|
475
|
-
suspendResult = this.
|
|
475
|
+
suspendResult = this.j52_1.x3x_1.e50_1(this.p52_1.x3o(), this);
|
|
476
476
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
477
477
|
return suspendResult;
|
|
478
478
|
}
|
|
@@ -486,33 +486,33 @@
|
|
|
486
486
|
|
|
487
487
|
var this_0 = get_LOGGER();
|
|
488
488
|
if (get_isTraceEnabled(this_0)) {
|
|
489
|
-
this_0.d2t('Unauthorized response for ' + this.
|
|
489
|
+
this_0.d2t('Unauthorized response for ' + this.p52_1.f3r().o3r().toString());
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
492
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.p52_1, this.s52_1);
|
|
493
493
|
var tmp_0;
|
|
494
494
|
if (tmp0_elvis_lhs == null) {
|
|
495
|
-
this.
|
|
495
|
+
this.n52_1;
|
|
496
496
|
var this_1 = get_LOGGER();
|
|
497
497
|
if (get_isTraceEnabled(this_1)) {
|
|
498
|
-
this_1.d2t('Can not find auth provider for ' + this.
|
|
498
|
+
this_1.d2t('Can not find auth provider for ' + this.p52_1.f3r().o3r().toString());
|
|
499
499
|
}
|
|
500
|
-
return this.
|
|
500
|
+
return this.p52_1;
|
|
501
501
|
} else {
|
|
502
502
|
tmp_0 = tmp0_elvis_lhs;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
var _destruct__k2r9zo = tmp_0;
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
506
|
+
this.r52_1 = _destruct__k2r9zo.bg();
|
|
507
|
+
this.q52_1 = _destruct__k2r9zo.cg();
|
|
508
508
|
var this_2 = get_LOGGER();
|
|
509
509
|
if (get_isTraceEnabled(this_2)) {
|
|
510
|
-
this_2.d2t('Using provider ' + toString(this.
|
|
510
|
+
this_2.d2t('Using provider ' + toString(this.r52_1) + ' for ' + this.p52_1.f3r().o3r().toString());
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
this.
|
|
513
|
+
this.s52_1.i3(this.r52_1);
|
|
514
514
|
this.a9_1 = 6;
|
|
515
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
515
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.l52_1, this.m52_1, this.p52_1, this.r52_1, this.o52_1, this);
|
|
516
516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
517
517
|
return suspendResult;
|
|
518
518
|
}
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
continue $sm;
|
|
521
521
|
case 6:
|
|
522
522
|
if (!suspendResult) {
|
|
523
|
-
return this.
|
|
523
|
+
return this.p52_1;
|
|
524
524
|
} else {
|
|
525
525
|
this.a9_1 = 7;
|
|
526
526
|
continue $sm;
|
|
@@ -528,18 +528,18 @@
|
|
|
528
528
|
|
|
529
529
|
case 7:
|
|
530
530
|
this.a9_1 = 8;
|
|
531
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
531
|
+
suspendResult = invoke$executeWithNewToken(this.n52_1, this.p52_1, this.r52_1, this.o52_1, this.q52_1, this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
continue $sm;
|
|
537
537
|
case 8:
|
|
538
|
-
this.
|
|
538
|
+
this.p52_1 = suspendResult;
|
|
539
539
|
this.a9_1 = 4;
|
|
540
540
|
continue $sm;
|
|
541
541
|
case 9:
|
|
542
|
-
return this.
|
|
542
|
+
return this.p52_1;
|
|
543
543
|
case 10:
|
|
544
544
|
throw this.d9_1;
|
|
545
545
|
}
|
|
@@ -554,27 +554,27 @@
|
|
|
554
554
|
}
|
|
555
555
|
while (true);
|
|
556
556
|
};
|
|
557
|
-
protoOf(Auth$lambda$slambda_1).
|
|
558
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
559
|
-
i.
|
|
560
|
-
i.
|
|
557
|
+
protoOf(Auth$lambda$slambda_1).d45 = function ($this$on, originalRequest, completion) {
|
|
558
|
+
var i = new Auth$lambda$slambda_1(this.j52_1, this.k52_1, this.l52_1, this.m52_1, completion);
|
|
559
|
+
i.n52_1 = $this$on;
|
|
560
|
+
i.o52_1 = originalRequest;
|
|
561
561
|
return i;
|
|
562
562
|
};
|
|
563
563
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
564
564
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
565
565
|
var l = function ($this$on, originalRequest, $completion) {
|
|
566
|
-
return i.
|
|
566
|
+
return i.c45($this$on, originalRequest, $completion);
|
|
567
567
|
};
|
|
568
568
|
l.$arity = 2;
|
|
569
569
|
return l;
|
|
570
570
|
}
|
|
571
571
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
572
572
|
CoroutineImpl.call(this, resultContinuation);
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
573
|
+
this.p50_1 = tokenVersions;
|
|
574
|
+
this.q50_1 = tokenVersionsAttributeKey;
|
|
575
|
+
this.r50_1 = call;
|
|
576
|
+
this.s50_1 = provider;
|
|
577
|
+
this.t50_1 = request;
|
|
578
578
|
}
|
|
579
579
|
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).i9 = function () {
|
|
580
580
|
var suspendResult = this.c9_1;
|
|
@@ -585,17 +585,17 @@
|
|
|
585
585
|
case 0:
|
|
586
586
|
this.b9_1 = 4;
|
|
587
587
|
var tmp_0 = this;
|
|
588
|
-
tmp_0.
|
|
588
|
+
tmp_0.u50_1 = this.p50_1.s2s(this.s50_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
589
589
|
var tmp_1 = this;
|
|
590
|
-
tmp_1.
|
|
591
|
-
var requestTokenVersion = this.
|
|
592
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
590
|
+
tmp_1.v50_1 = this.t50_1.c3q_1.w2j(this.q50_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
591
|
+
var requestTokenVersion = this.v50_1.g3(this.s50_1);
|
|
592
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.u50_1.f50_1.kotlinx$atomicfu$value) {
|
|
593
593
|
var this_0 = get_LOGGER();
|
|
594
594
|
if (get_isTraceEnabled(this_0)) {
|
|
595
|
-
this_0.d2t('Refreshing token for ' + this.
|
|
595
|
+
this_0.d2t('Refreshing token for ' + this.r50_1.f3r().o3r().toString());
|
|
596
596
|
}
|
|
597
597
|
this.a9_1 = 1;
|
|
598
|
-
suspendResult = this.
|
|
598
|
+
suspendResult = this.s50_1.u52(this.r50_1.x3o(), this);
|
|
599
599
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
600
600
|
return suspendResult;
|
|
601
601
|
}
|
|
@@ -609,13 +609,13 @@
|
|
|
609
609
|
if (!suspendResult) {
|
|
610
610
|
var this_1 = get_LOGGER();
|
|
611
611
|
if (get_isTraceEnabled(this_1)) {
|
|
612
|
-
this_1.d2t('Refreshing token failed for ' + this.
|
|
612
|
+
this_1.d2t('Refreshing token failed for ' + this.r50_1.f3r().o3r().toString());
|
|
613
613
|
}
|
|
614
614
|
return false;
|
|
615
615
|
} else {
|
|
616
|
-
var tmp0 = this.
|
|
617
|
-
var tmp2 = this.
|
|
618
|
-
var value = this.
|
|
616
|
+
var tmp0 = this.v50_1;
|
|
617
|
+
var tmp2 = this.s50_1;
|
|
618
|
+
var value = this.u50_1.f50_1.atomicfu$incrementAndGet();
|
|
619
619
|
tmp0.y2(tmp2, value);
|
|
620
620
|
this.a9_1 = 2;
|
|
621
621
|
continue $sm;
|
|
@@ -642,11 +642,11 @@
|
|
|
642
642
|
};
|
|
643
643
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
644
644
|
CoroutineImpl.call(this, resultContinuation);
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
645
|
+
this.e51_1 = _this__u8e3s4;
|
|
646
|
+
this.f51_1 = call;
|
|
647
|
+
this.g51_1 = provider;
|
|
648
|
+
this.h51_1 = oldRequest;
|
|
649
|
+
this.i51_1 = authHeader;
|
|
650
650
|
}
|
|
651
651
|
protoOf($invoke$executeWithNewTokenCOROUTINE$).i9 = function () {
|
|
652
652
|
var suspendResult = this.c9_1;
|
|
@@ -656,24 +656,24 @@
|
|
|
656
656
|
switch (tmp) {
|
|
657
657
|
case 0:
|
|
658
658
|
this.b9_1 = 3;
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
659
|
+
this.j51_1 = new HttpRequestBuilder();
|
|
660
|
+
this.j51_1.q3v(this.h51_1);
|
|
661
661
|
this.a9_1 = 1;
|
|
662
|
-
suspendResult = this.
|
|
662
|
+
suspendResult = this.g51_1.v52(this.j51_1, this.i51_1, this);
|
|
663
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
664
|
return suspendResult;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
continue $sm;
|
|
668
668
|
case 1:
|
|
669
|
-
this.
|
|
669
|
+
this.j51_1.c3q_1.t2j(get_AuthCircuitBreaker(), Unit_instance);
|
|
670
670
|
var this_0 = get_LOGGER();
|
|
671
671
|
if (get_isTraceEnabled(this_0)) {
|
|
672
|
-
this_0.d2t('Sending new request to ' + this.
|
|
672
|
+
this_0.d2t('Sending new request to ' + this.f51_1.f3r().o3r().toString());
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
this.a9_1 = 2;
|
|
676
|
-
suspendResult = this.
|
|
676
|
+
suspendResult = this.e51_1.g45(this.j51_1, this);
|
|
677
677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
678
|
return suspendResult;
|
|
679
679
|
}
|
|
@@ -760,20 +760,20 @@
|
|
|
760
760
|
return Companion_instance;
|
|
761
761
|
};
|
|
762
762
|
function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
763
|
-
this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
763
|
+
this.f53_1 = this$0;
|
|
764
|
+
this.g53_1 = $prevValue;
|
|
765
|
+
this.h53_1 = $lockedByLoad;
|
|
766
|
+
this.i53_1 = $block;
|
|
767
767
|
CoroutineImpl.call(this, resultContinuation);
|
|
768
768
|
}
|
|
769
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
769
|
+
protoOf(AuthTokenHolder$setToken$slambda).n53 = function ($this$withContext, $completion) {
|
|
770
770
|
var tmp = this.u1w($this$withContext, $completion);
|
|
771
771
|
tmp.c9_1 = Unit_instance;
|
|
772
772
|
tmp.d9_1 = null;
|
|
773
773
|
return tmp.i9();
|
|
774
774
|
};
|
|
775
775
|
protoOf(AuthTokenHolder$setToken$slambda).u9 = function (p1, $completion) {
|
|
776
|
-
return this.
|
|
776
|
+
return this.n53((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
777
777
|
};
|
|
778
778
|
protoOf(AuthTokenHolder$setToken$slambda).i9 = function () {
|
|
779
779
|
var suspendResult = this.c9_1;
|
|
@@ -783,24 +783,24 @@
|
|
|
783
783
|
switch (tmp) {
|
|
784
784
|
case 0:
|
|
785
785
|
this.b9_1 = 7;
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
786
|
+
this.l53_1 = this.f53_1.s53_1;
|
|
787
|
+
this.k53_1 = null;
|
|
788
788
|
this.a9_1 = 1;
|
|
789
|
-
suspendResult = this.
|
|
789
|
+
suspendResult = this.l53_1.a1j(this.k53_1, this);
|
|
790
790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
791
791
|
return suspendResult;
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 1:
|
|
796
|
-
this.
|
|
796
|
+
this.m53_1 = Unit_instance;
|
|
797
797
|
this.a9_1 = 2;
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 2:
|
|
800
800
|
this.b9_1 = 6;
|
|
801
|
-
if (equals(this.
|
|
801
|
+
if (equals(this.g53_1, this.f53_1.q53_1) || this.h53_1) {
|
|
802
802
|
this.a9_1 = 3;
|
|
803
|
-
suspendResult = this.
|
|
803
|
+
suspendResult = this.i53_1(this);
|
|
804
804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
805
805
|
return suspendResult;
|
|
806
806
|
}
|
|
@@ -812,23 +812,23 @@
|
|
|
812
812
|
|
|
813
813
|
case 3:
|
|
814
814
|
var ARGUMENT = suspendResult;
|
|
815
|
-
this.
|
|
815
|
+
this.f53_1.q53_1 = ARGUMENT;
|
|
816
816
|
this.a9_1 = 4;
|
|
817
817
|
continue $sm;
|
|
818
818
|
case 4:
|
|
819
|
-
this.
|
|
819
|
+
this.m53_1 = this.f53_1.q53_1;
|
|
820
820
|
this.b9_1 = 7;
|
|
821
821
|
this.a9_1 = 5;
|
|
822
822
|
continue $sm;
|
|
823
823
|
case 5:
|
|
824
|
-
var tmp_0 = this.
|
|
824
|
+
var tmp_0 = this.m53_1;
|
|
825
825
|
this.b9_1 = 7;
|
|
826
|
-
this.
|
|
826
|
+
this.l53_1.m1i(this.k53_1);
|
|
827
827
|
return tmp_0;
|
|
828
828
|
case 6:
|
|
829
829
|
this.b9_1 = 7;
|
|
830
830
|
var t = this.d9_1;
|
|
831
|
-
this.
|
|
831
|
+
this.l53_1.m1i(this.k53_1);
|
|
832
832
|
throw t;
|
|
833
833
|
case 7:
|
|
834
834
|
throw this.d9_1;
|
|
@@ -845,21 +845,21 @@
|
|
|
845
845
|
while (true);
|
|
846
846
|
};
|
|
847
847
|
protoOf(AuthTokenHolder$setToken$slambda).u1w = function ($this$withContext, completion) {
|
|
848
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
849
|
-
i.
|
|
848
|
+
var i = new AuthTokenHolder$setToken$slambda(this.f53_1, this.g53_1, this.h53_1, this.i53_1, completion);
|
|
849
|
+
i.j53_1 = $this$withContext;
|
|
850
850
|
return i;
|
|
851
851
|
};
|
|
852
852
|
function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
853
853
|
var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
|
|
854
854
|
var l = function ($this$withContext, $completion) {
|
|
855
|
-
return i.
|
|
855
|
+
return i.n53($this$withContext, $completion);
|
|
856
856
|
};
|
|
857
857
|
l.$arity = 1;
|
|
858
858
|
return l;
|
|
859
859
|
}
|
|
860
860
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
861
861
|
CoroutineImpl.call(this, resultContinuation);
|
|
862
|
-
this.
|
|
862
|
+
this.c54_1 = _this__u8e3s4;
|
|
863
863
|
}
|
|
864
864
|
protoOf($loadTokenCOROUTINE$).i9 = function () {
|
|
865
865
|
var suspendResult = this.c9_1;
|
|
@@ -869,9 +869,9 @@
|
|
|
869
869
|
switch (tmp) {
|
|
870
870
|
case 0:
|
|
871
871
|
this.b9_1 = 14;
|
|
872
|
-
if (!this.
|
|
872
|
+
if (!this.c54_1.p53_1) {
|
|
873
873
|
this.a9_1 = 13;
|
|
874
|
-
suspendResult = this.
|
|
874
|
+
suspendResult = this.c54_1.o53_1(this);
|
|
875
875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
876
|
return suspendResult;
|
|
877
877
|
}
|
|
@@ -882,21 +882,21 @@
|
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
case 1:
|
|
885
|
-
if (!(this.
|
|
886
|
-
return this.
|
|
887
|
-
this.
|
|
885
|
+
if (!(this.c54_1.q53_1 == null))
|
|
886
|
+
return this.c54_1.q53_1;
|
|
887
|
+
this.h54_1 = this.c54_1.q53_1;
|
|
888
888
|
if (!(this.g9().n9(Companion_instance) == null)) {
|
|
889
889
|
this.a9_1 = 11;
|
|
890
|
-
suspendResult = this.
|
|
890
|
+
suspendResult = this.c54_1.o53_1(this);
|
|
891
891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
892
892
|
return suspendResult;
|
|
893
893
|
}
|
|
894
894
|
continue $sm;
|
|
895
895
|
} else {
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
896
|
+
this.f54_1 = this.c54_1.s53_1;
|
|
897
|
+
this.e54_1 = null;
|
|
898
898
|
this.a9_1 = 2;
|
|
899
|
-
suspendResult = this.
|
|
899
|
+
suspendResult = this.f54_1.a1j(this.e54_1, this);
|
|
900
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
901
|
return suspendResult;
|
|
902
902
|
}
|
|
@@ -904,19 +904,19 @@
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
case 2:
|
|
907
|
-
this.
|
|
907
|
+
this.g54_1 = Unit_instance;
|
|
908
908
|
this.a9_1 = 3;
|
|
909
909
|
continue $sm;
|
|
910
910
|
case 3:
|
|
911
911
|
this.b9_1 = 10;
|
|
912
|
-
this.
|
|
912
|
+
this.c54_1.r53_1 = true;
|
|
913
913
|
this.a9_1 = 4;
|
|
914
914
|
continue $sm;
|
|
915
915
|
case 4:
|
|
916
916
|
this.b9_1 = 9;
|
|
917
|
-
if (equals(this.
|
|
917
|
+
if (equals(this.h54_1, this.c54_1.q53_1)) {
|
|
918
918
|
this.a9_1 = 5;
|
|
919
|
-
suspendResult = this.
|
|
919
|
+
suspendResult = this.c54_1.o53_1(this);
|
|
920
920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
921
921
|
return suspendResult;
|
|
922
922
|
}
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
|
|
929
929
|
case 5:
|
|
930
930
|
var ARGUMENT = suspendResult;
|
|
931
|
-
this.
|
|
931
|
+
this.c54_1.q53_1 = ARGUMENT;
|
|
932
932
|
this.a9_1 = 6;
|
|
933
933
|
continue $sm;
|
|
934
934
|
case 6:
|
|
@@ -936,36 +936,36 @@
|
|
|
936
936
|
continue $sm;
|
|
937
937
|
case 7:
|
|
938
938
|
this.b9_1 = 10;
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
939
|
+
this.c54_1.r53_1 = false;
|
|
940
|
+
this.g54_1 = this.c54_1.q53_1;
|
|
941
941
|
this.b9_1 = 14;
|
|
942
942
|
this.a9_1 = 8;
|
|
943
943
|
continue $sm;
|
|
944
944
|
case 8:
|
|
945
|
-
var tmp_0 = this.
|
|
945
|
+
var tmp_0 = this.g54_1;
|
|
946
946
|
this.b9_1 = 14;
|
|
947
|
-
this.
|
|
948
|
-
this.
|
|
947
|
+
this.f54_1.m1i(this.e54_1);
|
|
948
|
+
this.d54_1 = tmp_0;
|
|
949
949
|
this.a9_1 = 12;
|
|
950
950
|
continue $sm;
|
|
951
951
|
case 9:
|
|
952
952
|
this.b9_1 = 10;
|
|
953
953
|
var t = this.d9_1;
|
|
954
|
-
this.
|
|
954
|
+
this.c54_1.r53_1 = false;
|
|
955
955
|
throw t;
|
|
956
956
|
case 10:
|
|
957
957
|
this.b9_1 = 14;
|
|
958
958
|
var t_0 = this.d9_1;
|
|
959
|
-
this.
|
|
959
|
+
this.f54_1.m1i(this.e54_1);
|
|
960
960
|
throw t_0;
|
|
961
961
|
case 11:
|
|
962
962
|
var ARGUMENT_0 = suspendResult;
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
963
|
+
this.c54_1.q53_1 = ARGUMENT_0;
|
|
964
|
+
this.d54_1 = this.c54_1.q53_1;
|
|
965
965
|
this.a9_1 = 12;
|
|
966
966
|
continue $sm;
|
|
967
967
|
case 12:
|
|
968
|
-
return this.
|
|
968
|
+
return this.d54_1;
|
|
969
969
|
case 13:
|
|
970
970
|
return suspendResult;
|
|
971
971
|
case 14:
|
|
@@ -984,29 +984,29 @@
|
|
|
984
984
|
};
|
|
985
985
|
function AuthTokenHolder(loadTokens, cacheTokens) {
|
|
986
986
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
987
|
+
this.o53_1 = loadTokens;
|
|
988
|
+
this.p53_1 = cacheTokens;
|
|
989
|
+
this.q53_1 = null;
|
|
990
|
+
this.r53_1 = false;
|
|
991
|
+
this.s53_1 = Mutex();
|
|
992
|
+
this.t53_1 = new SetTokenContext();
|
|
993
993
|
}
|
|
994
|
-
protoOf(AuthTokenHolder).
|
|
994
|
+
protoOf(AuthTokenHolder).i54 = function ($completion) {
|
|
995
995
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
996
996
|
tmp.c9_1 = Unit_instance;
|
|
997
997
|
tmp.d9_1 = null;
|
|
998
998
|
return tmp.i9();
|
|
999
999
|
};
|
|
1000
|
-
protoOf(AuthTokenHolder).
|
|
1001
|
-
var prevValue = this.
|
|
1002
|
-
var lockedByLoad = this.
|
|
1000
|
+
protoOf(AuthTokenHolder).j54 = function (nonCancellable, block, $completion) {
|
|
1001
|
+
var prevValue = this.q53_1;
|
|
1002
|
+
var lockedByLoad = this.r53_1;
|
|
1003
1003
|
var tmp;
|
|
1004
1004
|
if (nonCancellable) {
|
|
1005
1005
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1006
|
-
tmp = $completion.g9().yg(NonCancellable_getInstance()).yg(this.
|
|
1006
|
+
tmp = $completion.g9().yg(NonCancellable_getInstance()).yg(this.t53_1);
|
|
1007
1007
|
} else {
|
|
1008
1008
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1009
|
-
tmp = $completion.g9().yg(this.
|
|
1009
|
+
tmp = $completion.g9().yg(this.t53_1);
|
|
1010
1010
|
}
|
|
1011
1011
|
var context = tmp;
|
|
1012
1012
|
return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
|
|
@@ -1016,19 +1016,19 @@
|
|
|
1016
1016
|
var this_0 = new BearerAuthConfig();
|
|
1017
1017
|
block(this_0);
|
|
1018
1018
|
// Inline function 'kotlin.with' call
|
|
1019
|
-
_this__u8e3s4.
|
|
1019
|
+
_this__u8e3s4.d50_1.j1(new BearerAuthProvider(this_0.k54_1, this_0.l54_1, this_0.m54_1, this_0.n54_1, this_0.o54_1, this_0.p54_1));
|
|
1020
1020
|
}
|
|
1021
1021
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1022
1022
|
CoroutineImpl.call(this, resultContinuation);
|
|
1023
1023
|
}
|
|
1024
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1025
|
-
var tmp = this.
|
|
1024
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).z54 = function (_this__u8e3s4, $completion) {
|
|
1025
|
+
var tmp = this.a55(_this__u8e3s4, $completion);
|
|
1026
1026
|
tmp.c9_1 = Unit_instance;
|
|
1027
1027
|
tmp.d9_1 = null;
|
|
1028
1028
|
return tmp.i9();
|
|
1029
1029
|
};
|
|
1030
1030
|
protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function (p1, $completion) {
|
|
1031
|
-
return this.
|
|
1031
|
+
return this.z54(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1032
1032
|
};
|
|
1033
1033
|
protoOf(BearerAuthConfig$refreshTokens$slambda).i9 = function () {
|
|
1034
1034
|
var suspendResult = this.c9_1;
|
|
@@ -1047,15 +1047,15 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
while (true);
|
|
1049
1049
|
};
|
|
1050
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1050
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).a55 = function (_this__u8e3s4, completion) {
|
|
1051
1051
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1052
|
-
i.
|
|
1052
|
+
i.y54_1 = _this__u8e3s4;
|
|
1053
1053
|
return i;
|
|
1054
1054
|
};
|
|
1055
1055
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1056
1056
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1057
1057
|
var l = function (_this__u8e3s4, $completion) {
|
|
1058
|
-
return i.
|
|
1058
|
+
return i.z54(_this__u8e3s4, $completion);
|
|
1059
1059
|
};
|
|
1060
1060
|
l.$arity = 1;
|
|
1061
1061
|
return l;
|
|
@@ -1063,14 +1063,14 @@
|
|
|
1063
1063
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1064
1064
|
CoroutineImpl.call(this, resultContinuation);
|
|
1065
1065
|
}
|
|
1066
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1067
|
-
var tmp = this.
|
|
1066
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).j55 = function ($completion) {
|
|
1067
|
+
var tmp = this.k55($completion);
|
|
1068
1068
|
tmp.c9_1 = Unit_instance;
|
|
1069
1069
|
tmp.d9_1 = null;
|
|
1070
1070
|
return tmp.i9();
|
|
1071
1071
|
};
|
|
1072
1072
|
protoOf(BearerAuthConfig$loadTokens$slambda).ra = function ($completion) {
|
|
1073
|
-
return this.
|
|
1073
|
+
return this.j55($completion);
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf(BearerAuthConfig$loadTokens$slambda).i9 = function () {
|
|
1076
1076
|
var suspendResult = this.c9_1;
|
|
@@ -1089,13 +1089,13 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
while (true);
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1092
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).k55 = function (completion) {
|
|
1093
1093
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1094
1094
|
};
|
|
1095
1095
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1096
1096
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1097
1097
|
var l = function ($completion) {
|
|
1098
|
-
return i.
|
|
1098
|
+
return i.j55($completion);
|
|
1099
1099
|
};
|
|
1100
1100
|
l.$arity = 0;
|
|
1101
1101
|
return l;
|
|
@@ -1105,43 +1105,43 @@
|
|
|
1105
1105
|
}
|
|
1106
1106
|
function BearerAuthConfig() {
|
|
1107
1107
|
var tmp = this;
|
|
1108
|
-
tmp.
|
|
1108
|
+
tmp.k54_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1109
1109
|
var tmp_0 = this;
|
|
1110
|
-
tmp_0.
|
|
1110
|
+
tmp_0.l54_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1111
1111
|
var tmp_1 = this;
|
|
1112
|
-
tmp_1.
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1115
|
-
this.
|
|
1112
|
+
tmp_1.m54_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1113
|
+
this.n54_1 = null;
|
|
1114
|
+
this.o54_1 = true;
|
|
1115
|
+
this.p54_1 = false;
|
|
1116
1116
|
}
|
|
1117
|
-
protoOf(BearerAuthConfig).
|
|
1118
|
-
this.
|
|
1117
|
+
protoOf(BearerAuthConfig).l55 = function (block) {
|
|
1118
|
+
this.k54_1 = block;
|
|
1119
1119
|
};
|
|
1120
1120
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1121
|
+
this.m55_1 = client;
|
|
1122
|
+
this.n55_1 = response;
|
|
1123
|
+
this.o55_1 = oldTokens;
|
|
1124
1124
|
}
|
|
1125
|
-
protoOf(RefreshTokensParams).
|
|
1126
|
-
_this__u8e3s4.
|
|
1125
|
+
protoOf(RefreshTokensParams).p55 = function (_this__u8e3s4) {
|
|
1126
|
+
_this__u8e3s4.c3q_1.t2j(get_AuthCircuitBreaker(), Unit_instance);
|
|
1127
1127
|
};
|
|
1128
1128
|
function BearerTokens(accessToken, refreshToken) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1129
|
+
this.q55_1 = accessToken;
|
|
1130
|
+
this.r55_1 = refreshToken;
|
|
1131
1131
|
}
|
|
1132
1132
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1133
1133
|
return true;
|
|
1134
1134
|
}
|
|
1135
1135
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1136
1136
|
return function ($this$headers) {
|
|
1137
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1137
|
+
var tokenValue = 'Bearer ' + $token.q55_1;
|
|
1138
1138
|
var tmp;
|
|
1139
1139
|
if ($this$headers.z2m('Authorization')) {
|
|
1140
1140
|
$this$headers.r2o('Authorization');
|
|
1141
1141
|
tmp = Unit_instance;
|
|
1142
1142
|
}
|
|
1143
1143
|
var tmp_0;
|
|
1144
|
-
if (!$request.
|
|
1144
|
+
if (!$request.c3q_1.s2j(get_AuthCircuitBreaker())) {
|
|
1145
1145
|
$this$headers.d2o('Authorization', tokenValue);
|
|
1146
1146
|
tmp_0 = Unit_instance;
|
|
1147
1147
|
}
|
|
@@ -1149,18 +1149,18 @@
|
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
1151
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1152
|
+
this.a56_1 = this$0;
|
|
1153
|
+
this.b56_1 = $response;
|
|
1154
1154
|
CoroutineImpl.call(this, resultContinuation);
|
|
1155
1155
|
}
|
|
1156
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1157
|
-
var tmp = this.
|
|
1156
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).j55 = function ($completion) {
|
|
1157
|
+
var tmp = this.k55($completion);
|
|
1158
1158
|
tmp.c9_1 = Unit_instance;
|
|
1159
1159
|
tmp.d9_1 = null;
|
|
1160
1160
|
return tmp.i9();
|
|
1161
1161
|
};
|
|
1162
1162
|
protoOf(BearerAuthProvider$refreshToken$slambda).ra = function ($completion) {
|
|
1163
|
-
return this.
|
|
1163
|
+
return this.j55($completion);
|
|
1164
1164
|
};
|
|
1165
1165
|
protoOf(BearerAuthProvider$refreshToken$slambda).i9 = function () {
|
|
1166
1166
|
var suspendResult = this.c9_1;
|
|
@@ -1170,10 +1170,10 @@
|
|
|
1170
1170
|
switch (tmp) {
|
|
1171
1171
|
case 0:
|
|
1172
1172
|
this.b9_1 = 3;
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1173
|
+
this.c56_1 = this.a56_1.e56_1;
|
|
1174
|
+
this.d56_1 = this.b56_1.m3r().s3o_1;
|
|
1175
1175
|
this.a9_1 = 1;
|
|
1176
|
-
suspendResult = this.
|
|
1176
|
+
suspendResult = this.a56_1.i56_1.i54(this);
|
|
1177
1177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1178
1178
|
return suspendResult;
|
|
1179
1179
|
}
|
|
@@ -1181,9 +1181,9 @@
|
|
|
1181
1181
|
continue $sm;
|
|
1182
1182
|
case 1:
|
|
1183
1183
|
var ARGUMENT = suspendResult;
|
|
1184
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1184
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.d56_1, this.b56_1, ARGUMENT);
|
|
1185
1185
|
this.a9_1 = 2;
|
|
1186
|
-
suspendResult = this.
|
|
1186
|
+
suspendResult = this.c56_1(ARGUMENT_0, this);
|
|
1187
1187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1188
1188
|
return suspendResult;
|
|
1189
1189
|
}
|
|
@@ -1205,22 +1205,22 @@
|
|
|
1205
1205
|
}
|
|
1206
1206
|
while (true);
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1209
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1208
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).k55 = function (completion) {
|
|
1209
|
+
return new BearerAuthProvider$refreshToken$slambda(this.a56_1, this.b56_1, completion);
|
|
1210
1210
|
};
|
|
1211
1211
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1212
1212
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1213
1213
|
var l = function ($completion) {
|
|
1214
|
-
return i.
|
|
1214
|
+
return i.j55($completion);
|
|
1215
1215
|
};
|
|
1216
1216
|
l.$arity = 0;
|
|
1217
1217
|
return l;
|
|
1218
1218
|
}
|
|
1219
1219
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1220
1220
|
CoroutineImpl.call(this, resultContinuation);
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1221
|
+
this.r56_1 = _this__u8e3s4;
|
|
1222
|
+
this.s56_1 = request;
|
|
1223
|
+
this.t56_1 = authHeader;
|
|
1224
1224
|
}
|
|
1225
1225
|
protoOf($addRequestHeadersCOROUTINE$).i9 = function () {
|
|
1226
1226
|
var suspendResult = this.c9_1;
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
case 0:
|
|
1232
1232
|
this.b9_1 = 2;
|
|
1233
1233
|
this.a9_1 = 1;
|
|
1234
|
-
suspendResult = this.
|
|
1234
|
+
suspendResult = this.r56_1.i56_1.i54(this);
|
|
1235
1235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1236
1236
|
return suspendResult;
|
|
1237
1237
|
}
|
|
@@ -1247,7 +1247,7 @@
|
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
1249
1249
|
var token = tmp_0;
|
|
1250
|
-
headers(this.
|
|
1250
|
+
headers(this.s56_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.s56_1));
|
|
1251
1251
|
return Unit_instance;
|
|
1252
1252
|
case 2:
|
|
1253
1253
|
throw this.d9_1;
|
|
@@ -1265,8 +1265,8 @@
|
|
|
1265
1265
|
};
|
|
1266
1266
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1267
1267
|
CoroutineImpl.call(this, resultContinuation);
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1268
|
+
this.c57_1 = _this__u8e3s4;
|
|
1269
|
+
this.d57_1 = response;
|
|
1270
1270
|
}
|
|
1271
1271
|
protoOf($refreshTokenCOROUTINE$).i9 = function () {
|
|
1272
1272
|
var suspendResult = this.c9_1;
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
case 0:
|
|
1278
1278
|
this.b9_1 = 2;
|
|
1279
1279
|
this.a9_1 = 1;
|
|
1280
|
-
suspendResult = this.
|
|
1280
|
+
suspendResult = this.c57_1.i56_1.j54(this.c57_1.h56_1, BearerAuthProvider$refreshToken$slambda_0(this.c57_1, this.d57_1, null), this);
|
|
1281
1281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1282
1282
|
return suspendResult;
|
|
1283
1283
|
}
|
|
@@ -1310,33 +1310,33 @@
|
|
|
1310
1310
|
sendWithoutRequestCallback = tmp;
|
|
1311
1311
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1312
1312
|
nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1313
|
+
this.e56_1 = refreshTokens;
|
|
1314
|
+
this.f56_1 = sendWithoutRequestCallback;
|
|
1315
|
+
this.g56_1 = realm;
|
|
1316
|
+
this.h56_1 = nonCancellableRefresh;
|
|
1317
|
+
this.i56_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1318
1318
|
}
|
|
1319
|
-
protoOf(BearerAuthProvider).
|
|
1319
|
+
protoOf(BearerAuthProvider).w52 = function () {
|
|
1320
1320
|
// Inline function 'kotlin.error' call
|
|
1321
1321
|
var message = 'Deprecated';
|
|
1322
1322
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(BearerAuthProvider).
|
|
1325
|
-
return this.
|
|
1324
|
+
protoOf(BearerAuthProvider).z51 = function (request) {
|
|
1325
|
+
return this.f56_1(request);
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf(BearerAuthProvider).
|
|
1327
|
+
protoOf(BearerAuthProvider).g50 = function (auth) {
|
|
1328
1328
|
if (!(auth.o35_1 === 'Bearer')) {
|
|
1329
1329
|
get_LOGGER().d2t('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1330
1330
|
return false;
|
|
1331
1331
|
}
|
|
1332
1332
|
var tmp;
|
|
1333
|
-
if (this.
|
|
1333
|
+
if (this.g56_1 == null) {
|
|
1334
1334
|
tmp = true;
|
|
1335
1335
|
} else {
|
|
1336
1336
|
if (!(auth instanceof Parameterized)) {
|
|
1337
1337
|
tmp = false;
|
|
1338
1338
|
} else {
|
|
1339
|
-
tmp = auth.q2v('realm') == this.
|
|
1339
|
+
tmp = auth.q2v('realm') == this.g56_1;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
var isSameRealm = tmp;
|
|
@@ -1345,13 +1345,13 @@
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return isSameRealm;
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(BearerAuthProvider).
|
|
1348
|
+
protoOf(BearerAuthProvider).v52 = function (request, authHeader, $completion) {
|
|
1349
1349
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1350
1350
|
tmp.c9_1 = Unit_instance;
|
|
1351
1351
|
tmp.d9_1 = null;
|
|
1352
1352
|
return tmp.i9();
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(BearerAuthProvider).
|
|
1354
|
+
protoOf(BearerAuthProvider).u52 = function (response, $completion) {
|
|
1355
1355
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1356
1356
|
tmp.c9_1 = Unit_instance;
|
|
1357
1357
|
tmp.d9_1 = null;
|
|
@@ -1362,7 +1362,7 @@
|
|
|
1362
1362
|
protoOf(SetTokenContext).xg = fold;
|
|
1363
1363
|
protoOf(SetTokenContext).wg = minusKey;
|
|
1364
1364
|
protoOf(SetTokenContext).yg = plus;
|
|
1365
|
-
protoOf(BearerAuthProvider).
|
|
1365
|
+
protoOf(BearerAuthProvider).a52 = addRequestHeaders$default;
|
|
1366
1366
|
//endregion
|
|
1367
1367
|
//region block: init
|
|
1368
1368
|
Companion_instance = new Companion();
|