@doordeck/doordeck-headless-sdk 0.138.0 → 0.140.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/kotlin/Kermit-kermit-core.js +59 -59
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +47 -47
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +90 -106
- package/kotlin/doordeck-sdk.js +13295 -13121
- package/kotlin/kotlin-kotlin-stdlib.js +2631 -2552
- package/kotlin/kotlinx-atomicfu.js +24 -24
- package/kotlin/kotlinx-coroutines-core.js +2369 -2366
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlin/kotlinx-io-kotlinx-io-core.js +497 -497
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1873 -1873
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1555 -1555
- package/kotlin/ktor-ktor-client-auth.js +469 -469
- package/kotlin/ktor-ktor-client-content-negotiation.js +214 -214
- package/kotlin/ktor-ktor-client-core.js +3029 -3029
- package/kotlin/ktor-ktor-client-logging.js +1193 -1193
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +544 -544
- package/kotlin/ktor-ktor-http.js +842 -842
- package/kotlin/ktor-ktor-io.js +1121 -1121
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +267 -267
- package/kotlin/ktor-ktor-serialization.js +128 -128
- package/kotlin/ktor-ktor-utils.js +911 -903
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
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.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.jb;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.df;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.oa;
|
|
11
11
|
var VOID = kotlin_kotlin.$_$.h;
|
|
12
12
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ja;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
|
-
var toList = kotlin_kotlin.$_$.
|
|
15
|
+
var toList = kotlin_kotlin.$_$.j8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
17
17
|
var KtMutableMap = kotlin_kotlin.$_$.r5;
|
|
18
18
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.rf;
|
|
20
20
|
var createKType = kotlin_kotlin.$_$.c;
|
|
21
21
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
22
22
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t4;
|
|
@@ -27,33 +27,33 @@
|
|
|
27
27
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.z5;
|
|
28
28
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
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.$_$.c7;
|
|
31
|
+
var emptyList = kotlin_kotlin.$_$.t6;
|
|
32
|
+
var to = kotlin_kotlin.$_$.hg;
|
|
33
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
34
|
-
var first = kotlin_kotlin.$_$.
|
|
34
|
+
var first = kotlin_kotlin.$_$.b7;
|
|
35
35
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
36
36
|
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
37
37
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
38
|
+
var toString = kotlin_kotlin.$_$.nb;
|
|
39
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
40
40
|
var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
41
41
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
42
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.la;
|
|
43
43
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
44
|
-
var Unit = kotlin_kotlin.$_$.
|
|
44
|
+
var Unit = kotlin_kotlin.$_$.of;
|
|
45
45
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
46
46
|
var KtList = kotlin_kotlin.$_$.m5;
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
49
|
-
var get = kotlin_kotlin.$_$.
|
|
50
|
-
var fold = kotlin_kotlin.$_$.
|
|
51
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
52
|
-
var plus = kotlin_kotlin.$_$.
|
|
53
|
-
var Element = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.na;
|
|
48
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ka;
|
|
49
|
+
var get = kotlin_kotlin.$_$.h9;
|
|
50
|
+
var fold = kotlin_kotlin.$_$.g9;
|
|
51
|
+
var minusKey = kotlin_kotlin.$_$.i9;
|
|
52
|
+
var plus = kotlin_kotlin.$_$.k9;
|
|
53
|
+
var Element = kotlin_kotlin.$_$.j9;
|
|
54
54
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
-
var equals = kotlin_kotlin.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.ya;
|
|
56
|
+
var equals = kotlin_kotlin.$_$.ca;
|
|
57
57
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
58
58
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
@@ -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.w4v();
|
|
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.v4v(request, authHeader, $completion) : $super.v4v.call(this, request, authHeader, $completion);
|
|
77
77
|
}
|
|
78
78
|
function refreshToken(response, $completion) {
|
|
79
79
|
return true;
|
|
@@ -118,25 +118,25 @@
|
|
|
118
118
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
119
119
|
CoroutineImpl.call(this, resultContinuation);
|
|
120
120
|
}
|
|
121
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
122
|
-
var tmp = this.
|
|
123
|
-
tmp.
|
|
124
|
-
tmp.
|
|
125
|
-
return tmp.
|
|
121
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).r4s = function (it, $completion) {
|
|
122
|
+
var tmp = this.g3t(it, $completion);
|
|
123
|
+
tmp.p9_1 = Unit_instance;
|
|
124
|
+
tmp.q9_1 = null;
|
|
125
|
+
return tmp.v9();
|
|
126
126
|
};
|
|
127
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
128
|
-
return this.
|
|
127
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).ja = function (p1, $completion) {
|
|
128
|
+
return this.r4s(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
129
129
|
};
|
|
130
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
131
|
-
var suspendResult = this.
|
|
130
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).v9 = function () {
|
|
131
|
+
var suspendResult = this.p9_1;
|
|
132
132
|
$sm: do
|
|
133
133
|
try {
|
|
134
|
-
var tmp = this.
|
|
134
|
+
var tmp = this.n9_1;
|
|
135
135
|
if (tmp === 0) {
|
|
136
|
-
this.
|
|
137
|
-
return this.
|
|
136
|
+
this.o9_1 = 1;
|
|
137
|
+
return this.q4s_1.v36().equals(Companion_getInstance().m32_1);
|
|
138
138
|
} else if (tmp === 1) {
|
|
139
|
-
throw this.
|
|
139
|
+
throw this.q9_1;
|
|
140
140
|
}
|
|
141
141
|
} catch ($p) {
|
|
142
142
|
var e = $p;
|
|
@@ -144,15 +144,15 @@
|
|
|
144
144
|
}
|
|
145
145
|
while (true);
|
|
146
146
|
};
|
|
147
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
147
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).g3t = function (it, completion) {
|
|
148
148
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
149
|
-
i.
|
|
149
|
+
i.q4s_1 = it;
|
|
150
150
|
return i;
|
|
151
151
|
};
|
|
152
152
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
153
153
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
154
154
|
var l = function (it, $completion) {
|
|
155
|
-
return i.
|
|
155
|
+
return i.r4s(it, $completion);
|
|
156
156
|
};
|
|
157
157
|
l.$arity = 1;
|
|
158
158
|
return l;
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
function AuthConfig() {
|
|
161
161
|
var tmp = this;
|
|
162
162
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
163
|
-
tmp.
|
|
163
|
+
tmp.s4s_1 = ArrayList_init_$Create$();
|
|
164
164
|
var tmp_0 = this;
|
|
165
|
-
tmp_0.
|
|
165
|
+
tmp_0.t4s_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
166
166
|
}
|
|
167
167
|
function AtomicCounter() {
|
|
168
|
-
this.
|
|
168
|
+
this.u4s_1 = atomic$int$1(0);
|
|
169
169
|
}
|
|
170
170
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
171
171
|
var l = function () {
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
}
|
|
177
177
|
function Auth$lambda($this$createClientPlugin) {
|
|
178
178
|
_init_properties_Auth_kt__9ob1dk();
|
|
179
|
-
var providers = toList($this$createClientPlugin.
|
|
180
|
-
$this$createClientPlugin.
|
|
179
|
+
var providers = toList($this$createClientPlugin.g3s_1.s4s_1);
|
|
180
|
+
$this$createClientPlugin.f3s_1.u3h_1.j2l(get_AuthProvidersKey(), providers);
|
|
181
181
|
var tokenVersions = new ConcurrentMap();
|
|
182
182
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
183
183
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
187
187
|
var tmp_0;
|
|
188
188
|
try {
|
|
189
|
-
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().
|
|
189
|
+
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().tc(), arrayOf([]), false))]), false);
|
|
190
190
|
} catch ($p) {
|
|
191
191
|
var tmp_1;
|
|
192
192
|
if ($p instanceof Error) {
|
|
@@ -200,13 +200,13 @@
|
|
|
200
200
|
var tmp$ret$0 = tmp_0;
|
|
201
201
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
202
202
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
203
|
-
$this$createClientPlugin.
|
|
203
|
+
$this$createClientPlugin.s4a(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
204
204
|
var tmp_2 = Send_instance;
|
|
205
|
-
$this$createClientPlugin.
|
|
205
|
+
$this$createClientPlugin.j3s(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
206
206
|
return Unit_instance;
|
|
207
207
|
}
|
|
208
208
|
function invoke$findProvider(call, candidateProviders) {
|
|
209
|
-
var headerValues = call.
|
|
209
|
+
var headerValues = call.r3i().z30().n2p(HttpHeaders_getInstance().y2z_1);
|
|
210
210
|
var tmp;
|
|
211
211
|
if (headerValues == null) {
|
|
212
212
|
tmp = null;
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
233
233
|
var this_0 = get_LOGGER();
|
|
234
234
|
if (get_isTraceEnabled(this_0)) {
|
|
235
|
-
var tmp$ret$3 = 'Unauthorized response ' + call.
|
|
236
|
-
this_0.
|
|
235
|
+
var tmp$ret$3 = 'Unauthorized response ' + call.z3k().i3l().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
236
|
+
this_0.i2u(tmp$ret$3);
|
|
237
237
|
}
|
|
238
238
|
tmp_0 = null;
|
|
239
239
|
} else {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
var _iterator__ex2g4s_1 = candidateProviders.p();
|
|
251
251
|
while (_iterator__ex2g4s_1.q()) {
|
|
252
252
|
var element_0 = _iterator__ex2g4s_1.r();
|
|
253
|
-
if (element_0.
|
|
253
|
+
if (element_0.v4s(element)) {
|
|
254
254
|
tmp$ret$6 = element_0;
|
|
255
255
|
break $l$block;
|
|
256
256
|
}
|
|
@@ -279,15 +279,15 @@
|
|
|
279
279
|
}
|
|
280
280
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
281
281
|
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
282
|
-
tmp.
|
|
283
|
-
tmp.
|
|
284
|
-
return tmp.
|
|
282
|
+
tmp.p9_1 = Unit_instance;
|
|
283
|
+
tmp.q9_1 = null;
|
|
284
|
+
return tmp.v9();
|
|
285
285
|
}
|
|
286
286
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
287
287
|
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
288
|
-
tmp.
|
|
289
|
-
tmp.
|
|
290
|
-
return tmp.
|
|
288
|
+
tmp.p9_1 = Unit_instance;
|
|
289
|
+
tmp.q9_1 = null;
|
|
290
|
+
return tmp.v9();
|
|
291
291
|
}
|
|
292
292
|
function Auth$lambda$slambda$lambda() {
|
|
293
293
|
return new AtomicCounter();
|
|
@@ -297,170 +297,170 @@
|
|
|
297
297
|
return LinkedHashMap_init_$Create$();
|
|
298
298
|
}
|
|
299
299
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
300
|
+
this.i4u_1 = $providers;
|
|
301
|
+
this.j4u_1 = $tokenVersions;
|
|
302
|
+
this.k4u_1 = $tokenVersionsAttributeKey;
|
|
303
303
|
CoroutineImpl.call(this, resultContinuation);
|
|
304
304
|
}
|
|
305
|
-
protoOf(Auth$lambda$slambda).
|
|
306
|
-
var tmp = this.
|
|
307
|
-
tmp.
|
|
308
|
-
tmp.
|
|
309
|
-
return tmp.
|
|
305
|
+
protoOf(Auth$lambda$slambda).f4b = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
306
|
+
var tmp = this.g4b($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
307
|
+
tmp.p9_1 = Unit_instance;
|
|
308
|
+
tmp.q9_1 = null;
|
|
309
|
+
return tmp.v9();
|
|
310
310
|
};
|
|
311
|
-
protoOf(Auth$lambda$slambda).
|
|
311
|
+
protoOf(Auth$lambda$slambda).h4b = function (p1, p2, p3, $completion) {
|
|
312
312
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
313
313
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
314
|
-
return this.
|
|
314
|
+
return this.f4b(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
315
315
|
};
|
|
316
|
-
protoOf(Auth$lambda$slambda).
|
|
317
|
-
var suspendResult = this.
|
|
316
|
+
protoOf(Auth$lambda$slambda).v9 = function () {
|
|
317
|
+
var suspendResult = this.p9_1;
|
|
318
318
|
$sm: do
|
|
319
319
|
try {
|
|
320
|
-
var tmp = this.
|
|
320
|
+
var tmp = this.n9_1;
|
|
321
321
|
switch (tmp) {
|
|
322
322
|
case 0:
|
|
323
|
-
this.
|
|
323
|
+
this.o9_1 = 4;
|
|
324
324
|
var tmp_0 = this;
|
|
325
|
-
var tmp0 = this.
|
|
325
|
+
var tmp0 = this.i4u_1;
|
|
326
326
|
var destination = ArrayList_init_$Create$();
|
|
327
327
|
var _iterator__ex2g4s = tmp0.p();
|
|
328
328
|
while (_iterator__ex2g4s.q()) {
|
|
329
329
|
var element = _iterator__ex2g4s.r();
|
|
330
|
-
if (element.
|
|
330
|
+
if (element.w4u(this.m4u_1)) {
|
|
331
331
|
destination.k(element);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
tmp_0.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
335
|
+
tmp_0.o4u_1 = destination;
|
|
336
|
+
this.p4u_1 = this.o4u_1;
|
|
337
|
+
this.q4u_1 = this.p4u_1.p();
|
|
338
|
+
this.n9_1 = 1;
|
|
339
339
|
continue $sm;
|
|
340
340
|
case 1:
|
|
341
|
-
if (!this.
|
|
342
|
-
this.
|
|
341
|
+
if (!this.q4u_1.q()) {
|
|
342
|
+
this.n9_1 = 3;
|
|
343
343
|
continue $sm;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
this.
|
|
346
|
+
this.r4u_1 = this.q4u_1.r();
|
|
347
347
|
var tmp_1 = this;
|
|
348
|
-
tmp_1.
|
|
349
|
-
this.
|
|
348
|
+
tmp_1.s4u_1 = this.r4u_1;
|
|
349
|
+
this.t4u_1 = this.s4u_1;
|
|
350
350
|
var this_0 = get_LOGGER();
|
|
351
351
|
if (get_isTraceEnabled(this_0)) {
|
|
352
|
-
this_0.
|
|
352
|
+
this_0.i2u('Adding auth headers for ' + this.m4u_1.r3j_1.toString() + ' from provider ' + toString(this.t4u_1));
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
var tmp_2 = this;
|
|
356
|
-
tmp_2.
|
|
356
|
+
tmp_2.u4u_1 = this.j4u_1.x2t(this.t4u_1, Auth$lambda$slambda$lambda);
|
|
357
357
|
var tmp_3 = this;
|
|
358
|
-
tmp_3.
|
|
359
|
-
var tmp0_0 = this.
|
|
360
|
-
var tmp2 = this.
|
|
361
|
-
var value = this.
|
|
362
|
-
tmp0_0.
|
|
363
|
-
this.
|
|
364
|
-
suspendResult = this.
|
|
358
|
+
tmp_3.v4u_1 = this.m4u_1.w3j_1.l2l(this.k4u_1, Auth$lambda$slambda$lambda_0);
|
|
359
|
+
var tmp0_0 = this.v4u_1;
|
|
360
|
+
var tmp2 = this.t4u_1;
|
|
361
|
+
var value = this.u4u_1.u4s_1.kotlinx$atomicfu$value;
|
|
362
|
+
tmp0_0.p2(tmp2, value);
|
|
363
|
+
this.n9_1 = 2;
|
|
364
|
+
suspendResult = this.t4u_1.x4u(this.m4u_1, VOID, this);
|
|
365
365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
366
366
|
return suspendResult;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
continue $sm;
|
|
370
370
|
case 2:
|
|
371
|
-
this.
|
|
371
|
+
this.n9_1 = 1;
|
|
372
372
|
continue $sm;
|
|
373
373
|
case 3:
|
|
374
374
|
return Unit_instance;
|
|
375
375
|
case 4:
|
|
376
|
-
throw this.
|
|
376
|
+
throw this.q9_1;
|
|
377
377
|
}
|
|
378
378
|
} catch ($p) {
|
|
379
379
|
var e = $p;
|
|
380
|
-
if (this.
|
|
380
|
+
if (this.o9_1 === 4) {
|
|
381
381
|
throw e;
|
|
382
382
|
} else {
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
383
|
+
this.n9_1 = this.o9_1;
|
|
384
|
+
this.q9_1 = e;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
while (true);
|
|
388
388
|
};
|
|
389
|
-
protoOf(Auth$lambda$slambda).
|
|
390
|
-
var i = new Auth$lambda$slambda(this.
|
|
391
|
-
i.
|
|
392
|
-
i.
|
|
393
|
-
i.
|
|
389
|
+
protoOf(Auth$lambda$slambda).g4b = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
390
|
+
var i = new Auth$lambda$slambda(this.i4u_1, this.j4u_1, this.k4u_1, completion);
|
|
391
|
+
i.l4u_1 = $this$onRequest;
|
|
392
|
+
i.m4u_1 = request;
|
|
393
|
+
i.n4u_1 = _unused_var__etf5q3;
|
|
394
394
|
return i;
|
|
395
395
|
};
|
|
396
396
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
397
397
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
398
398
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
399
|
-
return i.
|
|
399
|
+
return i.f4b($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
400
400
|
};
|
|
401
401
|
l.$arity = 3;
|
|
402
402
|
return l;
|
|
403
403
|
}
|
|
404
404
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
405
|
+
this.g4v_1 = $this_createClientPlugin;
|
|
406
|
+
this.h4v_1 = $providers;
|
|
407
|
+
this.i4v_1 = $tokenVersions;
|
|
408
|
+
this.j4v_1 = $tokenVersionsAttributeKey;
|
|
409
409
|
CoroutineImpl.call(this, resultContinuation);
|
|
410
410
|
}
|
|
411
|
-
protoOf(Auth$lambda$slambda_1).
|
|
412
|
-
var tmp = this.
|
|
413
|
-
tmp.
|
|
414
|
-
tmp.
|
|
415
|
-
return tmp.
|
|
411
|
+
protoOf(Auth$lambda$slambda_1).v40 = function ($this$on, originalRequest, $completion) {
|
|
412
|
+
var tmp = this.w40($this$on, originalRequest, $completion);
|
|
413
|
+
tmp.p9_1 = Unit_instance;
|
|
414
|
+
tmp.q9_1 = null;
|
|
415
|
+
return tmp.v9();
|
|
416
416
|
};
|
|
417
|
-
protoOf(Auth$lambda$slambda_1).
|
|
417
|
+
protoOf(Auth$lambda$slambda_1).ka = function (p1, p2, $completion) {
|
|
418
418
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
419
|
-
return this.
|
|
419
|
+
return this.v40(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
420
420
|
};
|
|
421
|
-
protoOf(Auth$lambda$slambda_1).
|
|
422
|
-
var suspendResult = this.
|
|
421
|
+
protoOf(Auth$lambda$slambda_1).v9 = function () {
|
|
422
|
+
var suspendResult = this.p9_1;
|
|
423
423
|
$sm: do
|
|
424
424
|
try {
|
|
425
|
-
var tmp = this.
|
|
425
|
+
var tmp = this.n9_1;
|
|
426
426
|
switch (tmp) {
|
|
427
427
|
case 0:
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
suspendResult = this.
|
|
428
|
+
this.o9_1 = 10;
|
|
429
|
+
this.n9_1 = 1;
|
|
430
|
+
suspendResult = this.k4v_1.z40(this.l4v_1, this);
|
|
431
431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
432
432
|
return suspendResult;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
continue $sm;
|
|
436
436
|
case 1:
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
suspendResult = this.
|
|
437
|
+
this.m4v_1 = suspendResult;
|
|
438
|
+
this.n9_1 = 2;
|
|
439
|
+
suspendResult = this.g4v_1.g3s_1.t4s_1(this.m4v_1.r3i(), this);
|
|
440
440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
441
441
|
return suspendResult;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
continue $sm;
|
|
445
445
|
case 2:
|
|
446
|
-
this.
|
|
447
|
-
if (!this.
|
|
448
|
-
return this.
|
|
446
|
+
this.n4v_1 = suspendResult;
|
|
447
|
+
if (!this.n4v_1) {
|
|
448
|
+
return this.m4v_1;
|
|
449
449
|
} else {
|
|
450
|
-
this.
|
|
450
|
+
this.n9_1 = 3;
|
|
451
451
|
continue $sm;
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
case 3:
|
|
455
|
-
if (this.
|
|
456
|
-
return this.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
455
|
+
if (this.m4v_1.z3k().a3l().i2l(get_AuthCircuitBreaker()))
|
|
456
|
+
return this.m4v_1;
|
|
457
|
+
this.o4v_1 = this.m4v_1;
|
|
458
|
+
this.p4v_1 = HashSet_init_$Create$(this.h4v_1);
|
|
459
|
+
this.n9_1 = 4;
|
|
460
460
|
continue $sm;
|
|
461
461
|
case 4:
|
|
462
|
-
this.
|
|
463
|
-
suspendResult = this.
|
|
462
|
+
this.n9_1 = 5;
|
|
463
|
+
suspendResult = this.g4v_1.g3s_1.t4s_1(this.o4v_1.r3i(), this);
|
|
464
464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
465
|
return suspendResult;
|
|
466
466
|
}
|
|
@@ -468,92 +468,92 @@
|
|
|
468
468
|
continue $sm;
|
|
469
469
|
case 5:
|
|
470
470
|
if (!suspendResult) {
|
|
471
|
-
this.
|
|
471
|
+
this.n9_1 = 9;
|
|
472
472
|
continue $sm;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
var this_0 = get_LOGGER();
|
|
476
476
|
if (get_isTraceEnabled(this_0)) {
|
|
477
|
-
this_0.
|
|
477
|
+
this_0.i2u('Unauthorized response for ' + this.o4v_1.z3k().i3l().toString());
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
var tmp_0 = this;
|
|
481
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
481
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.o4v_1, this.p4v_1);
|
|
482
482
|
var tmp_1;
|
|
483
483
|
if (tmp0_elvis_lhs == null) {
|
|
484
|
-
this.
|
|
484
|
+
this.k4v_1;
|
|
485
485
|
var this_1 = get_LOGGER();
|
|
486
486
|
if (get_isTraceEnabled(this_1)) {
|
|
487
|
-
this_1.
|
|
487
|
+
this_1.i2u('Can not find auth provider for ' + this.o4v_1.z3k().i3l().toString());
|
|
488
488
|
}
|
|
489
|
-
return this.
|
|
489
|
+
return this.o4v_1;
|
|
490
490
|
} else {
|
|
491
491
|
tmp_1 = tmp0_elvis_lhs;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
tmp_0.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
494
|
+
tmp_0.q4v_1 = tmp_1;
|
|
495
|
+
this.r4v_1 = this.q4v_1.dh();
|
|
496
|
+
this.s4v_1 = this.q4v_1.eh();
|
|
497
497
|
var this_2 = get_LOGGER();
|
|
498
498
|
if (get_isTraceEnabled(this_2)) {
|
|
499
|
-
this_2.
|
|
499
|
+
this_2.i2u('Using provider ' + toString(this.r4v_1) + ' for ' + this.o4v_1.z3k().i3l().toString());
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
502
|
+
this.p4v_1.d2(this.r4v_1);
|
|
503
|
+
this.n9_1 = 6;
|
|
504
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.i4v_1, this.j4v_1, this.o4v_1, this.r4v_1, this.l4v_1, this);
|
|
505
505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
506
|
return suspendResult;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
continue $sm;
|
|
510
510
|
case 6:
|
|
511
|
-
this.
|
|
512
|
-
if (!this.
|
|
513
|
-
return this.
|
|
511
|
+
this.t4v_1 = suspendResult;
|
|
512
|
+
if (!this.t4v_1) {
|
|
513
|
+
return this.o4v_1;
|
|
514
514
|
} else {
|
|
515
|
-
this.
|
|
515
|
+
this.n9_1 = 7;
|
|
516
516
|
continue $sm;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
case 7:
|
|
520
|
-
this.
|
|
521
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
520
|
+
this.n9_1 = 8;
|
|
521
|
+
suspendResult = invoke$executeWithNewToken(this.k4v_1, this.o4v_1, this.r4v_1, this.l4v_1, this.s4v_1, this);
|
|
522
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
523
|
return suspendResult;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 8:
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
528
|
+
this.o4v_1 = suspendResult;
|
|
529
|
+
this.n9_1 = 4;
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 9:
|
|
532
|
-
return this.
|
|
532
|
+
return this.o4v_1;
|
|
533
533
|
case 10:
|
|
534
|
-
throw this.
|
|
534
|
+
throw this.q9_1;
|
|
535
535
|
}
|
|
536
536
|
} catch ($p) {
|
|
537
537
|
var e = $p;
|
|
538
|
-
if (this.
|
|
538
|
+
if (this.o9_1 === 10) {
|
|
539
539
|
throw e;
|
|
540
540
|
} else {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
541
|
+
this.n9_1 = this.o9_1;
|
|
542
|
+
this.q9_1 = e;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
while (true);
|
|
546
546
|
};
|
|
547
|
-
protoOf(Auth$lambda$slambda_1).
|
|
548
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
549
|
-
i.
|
|
550
|
-
i.
|
|
547
|
+
protoOf(Auth$lambda$slambda_1).w40 = function ($this$on, originalRequest, completion) {
|
|
548
|
+
var i = new Auth$lambda$slambda_1(this.g4v_1, this.h4v_1, this.i4v_1, this.j4v_1, completion);
|
|
549
|
+
i.k4v_1 = $this$on;
|
|
550
|
+
i.l4v_1 = originalRequest;
|
|
551
551
|
return i;
|
|
552
552
|
};
|
|
553
553
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
554
554
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
555
555
|
var l = function ($this$on, originalRequest, $completion) {
|
|
556
|
-
return i.
|
|
556
|
+
return i.v40($this$on, originalRequest, $completion);
|
|
557
557
|
};
|
|
558
558
|
l.$arity = 2;
|
|
559
559
|
return l;
|
|
@@ -569,38 +569,38 @@
|
|
|
569
569
|
}
|
|
570
570
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
571
571
|
CoroutineImpl.call(this, resultContinuation);
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
572
|
+
this.e4t_1 = tokenVersions;
|
|
573
|
+
this.f4t_1 = tokenVersionsAttributeKey;
|
|
574
|
+
this.g4t_1 = call;
|
|
575
|
+
this.h4t_1 = provider;
|
|
576
|
+
this.i4t_1 = request;
|
|
577
577
|
}
|
|
578
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).
|
|
579
|
-
var suspendResult = this.
|
|
578
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).v9 = function () {
|
|
579
|
+
var suspendResult = this.p9_1;
|
|
580
580
|
$sm: do
|
|
581
581
|
try {
|
|
582
|
-
var tmp = this.
|
|
582
|
+
var tmp = this.n9_1;
|
|
583
583
|
switch (tmp) {
|
|
584
584
|
case 0:
|
|
585
|
-
this.
|
|
585
|
+
this.o9_1 = 4;
|
|
586
586
|
var tmp_0 = this;
|
|
587
|
-
tmp_0.
|
|
587
|
+
tmp_0.j4t_1 = this.e4t_1.x2t(this.h4t_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
588
588
|
var tmp_1 = this;
|
|
589
|
-
tmp_1.
|
|
590
|
-
this.
|
|
591
|
-
if (!(this.
|
|
589
|
+
tmp_1.k4t_1 = this.i4t_1.w3j_1.l2l(this.f4t_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
590
|
+
this.l4t_1 = this.k4t_1.m2(this.h4t_1);
|
|
591
|
+
if (!(this.l4t_1 == null) && this.l4t_1 >= this.j4t_1.u4s_1.kotlinx$atomicfu$value) {
|
|
592
592
|
var this_0 = get_LOGGER();
|
|
593
593
|
if (get_isTraceEnabled(this_0)) {
|
|
594
|
-
this_0.
|
|
594
|
+
this_0.i2u('Refreshing token for ' + this.g4t_1.z3k().i3l().toString());
|
|
595
595
|
}
|
|
596
|
-
this.
|
|
597
|
-
suspendResult = this.
|
|
596
|
+
this.n9_1 = 1;
|
|
597
|
+
suspendResult = this.h4t_1.u4v(this.g4t_1.r3i(), this);
|
|
598
598
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
599
599
|
return suspendResult;
|
|
600
600
|
}
|
|
601
601
|
continue $sm;
|
|
602
602
|
} else {
|
|
603
|
-
this.
|
|
603
|
+
this.n9_1 = 3;
|
|
604
604
|
continue $sm;
|
|
605
605
|
}
|
|
606
606
|
|
|
@@ -609,71 +609,71 @@
|
|
|
609
609
|
if (!ARGUMENT) {
|
|
610
610
|
var this_1 = get_LOGGER();
|
|
611
611
|
if (get_isTraceEnabled(this_1)) {
|
|
612
|
-
this_1.
|
|
612
|
+
this_1.i2u('Refreshing token failed for ' + this.g4t_1.z3k().i3l().toString());
|
|
613
613
|
}
|
|
614
614
|
return false;
|
|
615
615
|
} else {
|
|
616
|
-
var tmp0 = this.
|
|
617
|
-
var tmp2 = this.
|
|
618
|
-
var value = this.
|
|
619
|
-
tmp0.
|
|
620
|
-
this.
|
|
616
|
+
var tmp0 = this.k4t_1;
|
|
617
|
+
var tmp2 = this.h4t_1;
|
|
618
|
+
var value = this.j4t_1.u4s_1.atomicfu$incrementAndGet();
|
|
619
|
+
tmp0.p2(tmp2, value);
|
|
620
|
+
this.n9_1 = 2;
|
|
621
621
|
continue $sm;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
case 2:
|
|
625
|
-
this.
|
|
625
|
+
this.n9_1 = 3;
|
|
626
626
|
continue $sm;
|
|
627
627
|
case 3:
|
|
628
628
|
return true;
|
|
629
629
|
case 4:
|
|
630
|
-
throw this.
|
|
630
|
+
throw this.q9_1;
|
|
631
631
|
}
|
|
632
632
|
} catch ($p) {
|
|
633
633
|
var e = $p;
|
|
634
|
-
if (this.
|
|
634
|
+
if (this.o9_1 === 4) {
|
|
635
635
|
throw e;
|
|
636
636
|
} else {
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
637
|
+
this.n9_1 = this.o9_1;
|
|
638
|
+
this.q9_1 = e;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
while (true);
|
|
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.u4t_1 = _this__u8e3s4;
|
|
646
|
+
this.v4t_1 = call;
|
|
647
|
+
this.w4t_1 = provider;
|
|
648
|
+
this.x4t_1 = oldRequest;
|
|
649
|
+
this.y4t_1 = authHeader;
|
|
650
650
|
}
|
|
651
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$).
|
|
652
|
-
var suspendResult = this.
|
|
651
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).v9 = function () {
|
|
652
|
+
var suspendResult = this.p9_1;
|
|
653
653
|
$sm: do
|
|
654
654
|
try {
|
|
655
|
-
var tmp = this.
|
|
655
|
+
var tmp = this.n9_1;
|
|
656
656
|
switch (tmp) {
|
|
657
657
|
case 0:
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
suspendResult = this.
|
|
658
|
+
this.o9_1 = 3;
|
|
659
|
+
this.z4t_1 = new HttpRequestBuilder();
|
|
660
|
+
this.z4t_1.s3p(this.x4t_1);
|
|
661
|
+
this.n9_1 = 1;
|
|
662
|
+
suspendResult = this.w4t_1.v4v(this.z4t_1, this.y4t_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.z4t_1.w3j_1.j2l(get_AuthCircuitBreaker(), Unit_instance);
|
|
670
670
|
var this_0 = get_LOGGER();
|
|
671
671
|
if (get_isTraceEnabled(this_0)) {
|
|
672
|
-
this_0.
|
|
672
|
+
this_0.i2u('Sending new request to ' + this.v4t_1.z3k().i3l().toString());
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
-
this.
|
|
676
|
-
suspendResult = this.
|
|
675
|
+
this.n9_1 = 2;
|
|
676
|
+
suspendResult = this.u4t_1.z40(this.z4t_1, this);
|
|
677
677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
678
|
return suspendResult;
|
|
679
679
|
}
|
|
@@ -682,15 +682,15 @@
|
|
|
682
682
|
case 2:
|
|
683
683
|
return suspendResult;
|
|
684
684
|
case 3:
|
|
685
|
-
throw this.
|
|
685
|
+
throw this.q9_1;
|
|
686
686
|
}
|
|
687
687
|
} catch ($p) {
|
|
688
688
|
var e = $p;
|
|
689
|
-
if (this.
|
|
689
|
+
if (this.o9_1 === 3) {
|
|
690
690
|
throw e;
|
|
691
691
|
} else {
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
692
|
+
this.n9_1 = this.o9_1;
|
|
693
|
+
this.q9_1 = e;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
while (true);
|
|
@@ -760,28 +760,28 @@
|
|
|
760
760
|
return Companion_instance;
|
|
761
761
|
};
|
|
762
762
|
function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
|
|
763
|
-
this.
|
|
763
|
+
this.f4w_1 = $block;
|
|
764
764
|
CoroutineImpl.call(this, resultContinuation);
|
|
765
765
|
}
|
|
766
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
767
|
-
var tmp = this.
|
|
768
|
-
tmp.
|
|
769
|
-
tmp.
|
|
770
|
-
return tmp.
|
|
766
|
+
protoOf(AuthTokenHolder$setToken$slambda).h4w = function ($this$withContext, $completion) {
|
|
767
|
+
var tmp = this.r1y($this$withContext, $completion);
|
|
768
|
+
tmp.p9_1 = Unit_instance;
|
|
769
|
+
tmp.q9_1 = null;
|
|
770
|
+
return tmp.v9();
|
|
771
771
|
};
|
|
772
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
773
|
-
return this.
|
|
772
|
+
protoOf(AuthTokenHolder$setToken$slambda).ja = function (p1, $completion) {
|
|
773
|
+
return this.h4w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
774
774
|
};
|
|
775
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
776
|
-
var suspendResult = this.
|
|
775
|
+
protoOf(AuthTokenHolder$setToken$slambda).v9 = function () {
|
|
776
|
+
var suspendResult = this.p9_1;
|
|
777
777
|
$sm: do
|
|
778
778
|
try {
|
|
779
|
-
var tmp = this.
|
|
779
|
+
var tmp = this.n9_1;
|
|
780
780
|
switch (tmp) {
|
|
781
781
|
case 0:
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
suspendResult = this.
|
|
782
|
+
this.o9_1 = 2;
|
|
783
|
+
this.n9_1 = 1;
|
|
784
|
+
suspendResult = this.f4w_1(this);
|
|
785
785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
786
786
|
return suspendResult;
|
|
787
787
|
}
|
|
@@ -790,62 +790,62 @@
|
|
|
790
790
|
case 1:
|
|
791
791
|
return suspendResult;
|
|
792
792
|
case 2:
|
|
793
|
-
throw this.
|
|
793
|
+
throw this.q9_1;
|
|
794
794
|
}
|
|
795
795
|
} catch ($p) {
|
|
796
796
|
var e = $p;
|
|
797
|
-
if (this.
|
|
797
|
+
if (this.o9_1 === 2) {
|
|
798
798
|
throw e;
|
|
799
799
|
} else {
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
800
|
+
this.n9_1 = this.o9_1;
|
|
801
|
+
this.q9_1 = e;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
while (true);
|
|
805
805
|
};
|
|
806
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
807
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
808
|
-
i.
|
|
806
|
+
protoOf(AuthTokenHolder$setToken$slambda).r1y = function ($this$withContext, completion) {
|
|
807
|
+
var i = new AuthTokenHolder$setToken$slambda(this.f4w_1, completion);
|
|
808
|
+
i.g4w_1 = $this$withContext;
|
|
809
809
|
return i;
|
|
810
810
|
};
|
|
811
811
|
function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
|
|
812
812
|
var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
|
|
813
813
|
var l = function ($this$withContext, $completion) {
|
|
814
|
-
return i.
|
|
814
|
+
return i.h4w($this$withContext, $completion);
|
|
815
815
|
};
|
|
816
816
|
l.$arity = 1;
|
|
817
817
|
return l;
|
|
818
818
|
}
|
|
819
819
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
820
820
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
|
-
this.
|
|
821
|
+
this.q4w_1 = _this__u8e3s4;
|
|
822
822
|
}
|
|
823
|
-
protoOf($loadTokenCOROUTINE$).
|
|
824
|
-
var suspendResult = this.
|
|
823
|
+
protoOf($loadTokenCOROUTINE$).v9 = function () {
|
|
824
|
+
var suspendResult = this.p9_1;
|
|
825
825
|
$sm: do
|
|
826
826
|
try {
|
|
827
|
-
var tmp = this.
|
|
827
|
+
var tmp = this.n9_1;
|
|
828
828
|
switch (tmp) {
|
|
829
829
|
case 0:
|
|
830
|
-
this.
|
|
831
|
-
if (!(this.
|
|
832
|
-
return this.
|
|
833
|
-
this.
|
|
834
|
-
if (!(this.
|
|
835
|
-
this.
|
|
836
|
-
suspendResult = this.
|
|
830
|
+
this.o9_1 = 12;
|
|
831
|
+
if (!(this.q4w_1.z4w_1 == null))
|
|
832
|
+
return this.q4w_1.z4w_1;
|
|
833
|
+
this.r4w_1 = this.q4w_1.z4w_1;
|
|
834
|
+
if (!(this.t9().aa(Companion_instance) == null)) {
|
|
835
|
+
this.n9_1 = 10;
|
|
836
|
+
suspendResult = this.q4w_1.y4w_1(this);
|
|
837
837
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
838
838
|
return suspendResult;
|
|
839
839
|
}
|
|
840
840
|
continue $sm;
|
|
841
841
|
} else {
|
|
842
842
|
var tmp_0 = this;
|
|
843
|
-
tmp_0.
|
|
844
|
-
this.
|
|
843
|
+
tmp_0.t4w_1 = this.q4w_1.b4x_1;
|
|
844
|
+
this.u4w_1 = this.t4w_1;
|
|
845
845
|
var tmp_1 = this;
|
|
846
|
-
tmp_1.
|
|
847
|
-
this.
|
|
848
|
-
suspendResult = this.
|
|
846
|
+
tmp_1.v4w_1 = null;
|
|
847
|
+
this.n9_1 = 1;
|
|
848
|
+
suspendResult = this.u4w_1.e1g(this.v4w_1, this);
|
|
849
849
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
850
850
|
return suspendResult;
|
|
851
851
|
}
|
|
@@ -853,211 +853,211 @@
|
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
case 1:
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
856
|
+
this.w4w_1 = Unit_instance;
|
|
857
|
+
this.n9_1 = 2;
|
|
858
858
|
continue $sm;
|
|
859
859
|
case 2:
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
860
|
+
this.o9_1 = 9;
|
|
861
|
+
this.q4w_1.a4x_1 = true;
|
|
862
|
+
this.n9_1 = 3;
|
|
863
863
|
continue $sm;
|
|
864
864
|
case 3:
|
|
865
|
-
this.
|
|
866
|
-
if (equals(this.
|
|
867
|
-
this.
|
|
868
|
-
suspendResult = this.
|
|
865
|
+
this.o9_1 = 8;
|
|
866
|
+
if (equals(this.r4w_1, this.q4w_1.z4w_1)) {
|
|
867
|
+
this.n9_1 = 4;
|
|
868
|
+
suspendResult = this.q4w_1.y4w_1(this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
872
872
|
continue $sm;
|
|
873
873
|
} else {
|
|
874
|
-
this.
|
|
874
|
+
this.n9_1 = 5;
|
|
875
875
|
continue $sm;
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
case 4:
|
|
879
879
|
var ARGUMENT = suspendResult;
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
880
|
+
this.q4w_1.z4w_1 = ARGUMENT;
|
|
881
|
+
this.n9_1 = 5;
|
|
882
882
|
continue $sm;
|
|
883
883
|
case 5:
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
884
|
+
this.x4w_1 = Unit_instance;
|
|
885
|
+
this.n9_1 = 6;
|
|
886
886
|
continue $sm;
|
|
887
887
|
case 6:
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
888
|
+
this.o9_1 = 9;
|
|
889
|
+
this.q4w_1.a4x_1 = false;
|
|
890
|
+
this.w4w_1 = this.q4w_1.z4w_1;
|
|
891
|
+
this.o9_1 = 12;
|
|
892
|
+
this.n9_1 = 7;
|
|
893
893
|
continue $sm;
|
|
894
894
|
case 7:
|
|
895
|
-
var tmp_2 = this.
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
899
|
-
this.
|
|
895
|
+
var tmp_2 = this.w4w_1;
|
|
896
|
+
this.o9_1 = 12;
|
|
897
|
+
this.u4w_1.q1f(this.v4w_1);
|
|
898
|
+
this.s4w_1 = tmp_2;
|
|
899
|
+
this.n9_1 = 11;
|
|
900
900
|
continue $sm;
|
|
901
901
|
case 8:
|
|
902
|
-
this.
|
|
903
|
-
var t = this.
|
|
904
|
-
this.
|
|
902
|
+
this.o9_1 = 9;
|
|
903
|
+
var t = this.q9_1;
|
|
904
|
+
this.q4w_1.a4x_1 = false;
|
|
905
905
|
throw t;
|
|
906
906
|
case 9:
|
|
907
|
-
this.
|
|
908
|
-
var t_0 = this.
|
|
909
|
-
this.
|
|
907
|
+
this.o9_1 = 12;
|
|
908
|
+
var t_0 = this.q9_1;
|
|
909
|
+
this.u4w_1.q1f(this.v4w_1);
|
|
910
910
|
throw t_0;
|
|
911
911
|
case 10:
|
|
912
912
|
var ARGUMENT_0 = suspendResult;
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
913
|
+
this.q4w_1.z4w_1 = ARGUMENT_0;
|
|
914
|
+
this.s4w_1 = this.q4w_1.z4w_1;
|
|
915
|
+
this.n9_1 = 11;
|
|
916
916
|
continue $sm;
|
|
917
917
|
case 11:
|
|
918
|
-
return this.
|
|
918
|
+
return this.s4w_1;
|
|
919
919
|
case 12:
|
|
920
|
-
throw this.
|
|
920
|
+
throw this.q9_1;
|
|
921
921
|
}
|
|
922
922
|
} catch ($p) {
|
|
923
923
|
var e = $p;
|
|
924
|
-
if (this.
|
|
924
|
+
if (this.o9_1 === 12) {
|
|
925
925
|
throw e;
|
|
926
926
|
} else {
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
927
|
+
this.n9_1 = this.o9_1;
|
|
928
|
+
this.q9_1 = e;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
while (true);
|
|
932
932
|
};
|
|
933
933
|
function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
|
|
934
934
|
CoroutineImpl.call(this, resultContinuation);
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
935
|
+
this.l4x_1 = _this__u8e3s4;
|
|
936
|
+
this.m4x_1 = block;
|
|
937
937
|
}
|
|
938
|
-
protoOf($setTokenCOROUTINE$).
|
|
939
|
-
var suspendResult = this.
|
|
938
|
+
protoOf($setTokenCOROUTINE$).v9 = function () {
|
|
939
|
+
var suspendResult = this.p9_1;
|
|
940
940
|
$sm: do
|
|
941
941
|
try {
|
|
942
|
-
var tmp = this.
|
|
942
|
+
var tmp = this.n9_1;
|
|
943
943
|
switch (tmp) {
|
|
944
944
|
case 0:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
945
|
+
this.o9_1 = 7;
|
|
946
|
+
this.n4x_1 = this.l4x_1.z4w_1;
|
|
947
|
+
this.o4x_1 = this.l4x_1.a4x_1;
|
|
948
948
|
var tmp_0 = this;
|
|
949
|
-
tmp_0.
|
|
950
|
-
this.
|
|
949
|
+
tmp_0.p4x_1 = this.l4x_1.b4x_1;
|
|
950
|
+
this.q4x_1 = this.p4x_1;
|
|
951
951
|
var tmp_1 = this;
|
|
952
|
-
tmp_1.
|
|
953
|
-
this.
|
|
954
|
-
suspendResult = this.
|
|
952
|
+
tmp_1.r4x_1 = null;
|
|
953
|
+
this.n9_1 = 1;
|
|
954
|
+
suspendResult = this.q4x_1.e1g(this.r4x_1, this);
|
|
955
955
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
956
|
return suspendResult;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
continue $sm;
|
|
960
960
|
case 1:
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
961
|
+
this.s4x_1 = Unit_instance;
|
|
962
|
+
this.n9_1 = 2;
|
|
963
963
|
continue $sm;
|
|
964
964
|
case 2:
|
|
965
|
-
this.
|
|
966
|
-
if (equals(this.
|
|
967
|
-
this.
|
|
968
|
-
var tmp_2 = this.
|
|
969
|
-
suspendResult = withContext(tmp_2, AuthTokenHolder$setToken$slambda_0(this.
|
|
965
|
+
this.o9_1 = 6;
|
|
966
|
+
if (equals(this.n4x_1, this.l4x_1.z4w_1) || this.o4x_1) {
|
|
967
|
+
this.n9_1 = 3;
|
|
968
|
+
var tmp_2 = this.t9().bi(this.l4x_1.c4x_1);
|
|
969
|
+
suspendResult = withContext(tmp_2, AuthTokenHolder$setToken$slambda_0(this.m4x_1, null), this);
|
|
970
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
971
|
return suspendResult;
|
|
972
972
|
}
|
|
973
973
|
continue $sm;
|
|
974
974
|
} else {
|
|
975
|
-
this.
|
|
975
|
+
this.n9_1 = 4;
|
|
976
976
|
continue $sm;
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
case 3:
|
|
980
980
|
var ARGUMENT = suspendResult;
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
981
|
+
this.l4x_1.z4w_1 = ARGUMENT;
|
|
982
|
+
this.n9_1 = 4;
|
|
983
983
|
continue $sm;
|
|
984
984
|
case 4:
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
985
|
+
this.s4x_1 = this.l4x_1.z4w_1;
|
|
986
|
+
this.o9_1 = 7;
|
|
987
|
+
this.n9_1 = 5;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 5:
|
|
990
|
-
var tmp_3 = this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
990
|
+
var tmp_3 = this.s4x_1;
|
|
991
|
+
this.o9_1 = 7;
|
|
992
|
+
this.q4x_1.q1f(this.r4x_1);
|
|
993
993
|
return tmp_3;
|
|
994
994
|
case 6:
|
|
995
|
-
this.
|
|
996
|
-
var t = this.
|
|
997
|
-
this.
|
|
995
|
+
this.o9_1 = 7;
|
|
996
|
+
var t = this.q9_1;
|
|
997
|
+
this.q4x_1.q1f(this.r4x_1);
|
|
998
998
|
throw t;
|
|
999
999
|
case 7:
|
|
1000
|
-
throw this.
|
|
1000
|
+
throw this.q9_1;
|
|
1001
1001
|
}
|
|
1002
1002
|
} catch ($p) {
|
|
1003
1003
|
var e = $p;
|
|
1004
|
-
if (this.
|
|
1004
|
+
if (this.o9_1 === 7) {
|
|
1005
1005
|
throw e;
|
|
1006
1006
|
} else {
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1007
|
+
this.n9_1 = this.o9_1;
|
|
1008
|
+
this.q9_1 = e;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
while (true);
|
|
1012
1012
|
};
|
|
1013
1013
|
function AuthTokenHolder(loadTokens) {
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1014
|
+
this.y4w_1 = loadTokens;
|
|
1015
|
+
this.z4w_1 = null;
|
|
1016
|
+
this.a4x_1 = false;
|
|
1017
|
+
this.b4x_1 = Mutex();
|
|
1018
|
+
this.c4x_1 = new SetTokenContext();
|
|
1019
1019
|
}
|
|
1020
|
-
protoOf(AuthTokenHolder).
|
|
1020
|
+
protoOf(AuthTokenHolder).t4x = function ($completion) {
|
|
1021
1021
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1022
|
-
tmp.
|
|
1023
|
-
tmp.
|
|
1024
|
-
return tmp.
|
|
1022
|
+
tmp.p9_1 = Unit_instance;
|
|
1023
|
+
tmp.q9_1 = null;
|
|
1024
|
+
return tmp.v9();
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(AuthTokenHolder).
|
|
1026
|
+
protoOf(AuthTokenHolder).u4x = function (block, $completion) {
|
|
1027
1027
|
var tmp = new $setTokenCOROUTINE$(this, block, $completion);
|
|
1028
|
-
tmp.
|
|
1029
|
-
tmp.
|
|
1030
|
-
return tmp.
|
|
1028
|
+
tmp.p9_1 = Unit_instance;
|
|
1029
|
+
tmp.q9_1 = null;
|
|
1030
|
+
return tmp.v9();
|
|
1031
1031
|
};
|
|
1032
1032
|
function bearer(_this__u8e3s4, block) {
|
|
1033
1033
|
// Inline function 'kotlin.apply' call
|
|
1034
1034
|
var this_0 = new BearerAuthConfig();
|
|
1035
1035
|
block(this_0);
|
|
1036
1036
|
// Inline function 'kotlin.with' call
|
|
1037
|
-
_this__u8e3s4.
|
|
1037
|
+
_this__u8e3s4.s4s_1.k(new BearerAuthProvider(this_0.v4x_1, this_0.w4x_1, this_0.x4x_1, this_0.y4x_1));
|
|
1038
1038
|
}
|
|
1039
1039
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1040
1040
|
CoroutineImpl.call(this, resultContinuation);
|
|
1041
1041
|
}
|
|
1042
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1043
|
-
var tmp = this.
|
|
1044
|
-
tmp.
|
|
1045
|
-
tmp.
|
|
1046
|
-
return tmp.
|
|
1042
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).i4y = function (_this__u8e3s4, $completion) {
|
|
1043
|
+
var tmp = this.j4y(_this__u8e3s4, $completion);
|
|
1044
|
+
tmp.p9_1 = Unit_instance;
|
|
1045
|
+
tmp.q9_1 = null;
|
|
1046
|
+
return tmp.v9();
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1049
|
-
return this.
|
|
1048
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).ja = function (p1, $completion) {
|
|
1049
|
+
return this.i4y(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1050
1050
|
};
|
|
1051
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1052
|
-
var suspendResult = this.
|
|
1051
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).v9 = function () {
|
|
1052
|
+
var suspendResult = this.p9_1;
|
|
1053
1053
|
$sm: do
|
|
1054
1054
|
try {
|
|
1055
|
-
var tmp = this.
|
|
1055
|
+
var tmp = this.n9_1;
|
|
1056
1056
|
if (tmp === 0) {
|
|
1057
|
-
this.
|
|
1057
|
+
this.o9_1 = 1;
|
|
1058
1058
|
return null;
|
|
1059
1059
|
} else if (tmp === 1) {
|
|
1060
|
-
throw this.
|
|
1060
|
+
throw this.q9_1;
|
|
1061
1061
|
}
|
|
1062
1062
|
} catch ($p) {
|
|
1063
1063
|
var e = $p;
|
|
@@ -1065,15 +1065,15 @@
|
|
|
1065
1065
|
}
|
|
1066
1066
|
while (true);
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1068
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).j4y = function (_this__u8e3s4, completion) {
|
|
1069
1069
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1070
|
-
i.
|
|
1070
|
+
i.h4y_1 = _this__u8e3s4;
|
|
1071
1071
|
return i;
|
|
1072
1072
|
};
|
|
1073
1073
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1074
1074
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1075
1075
|
var l = function (_this__u8e3s4, $completion) {
|
|
1076
|
-
return i.
|
|
1076
|
+
return i.i4y(_this__u8e3s4, $completion);
|
|
1077
1077
|
};
|
|
1078
1078
|
l.$arity = 1;
|
|
1079
1079
|
return l;
|
|
@@ -1081,25 +1081,25 @@
|
|
|
1081
1081
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1082
1082
|
CoroutineImpl.call(this, resultContinuation);
|
|
1083
1083
|
}
|
|
1084
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1085
|
-
var tmp = this.
|
|
1086
|
-
tmp.
|
|
1087
|
-
tmp.
|
|
1088
|
-
return tmp.
|
|
1084
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).s4y = function ($completion) {
|
|
1085
|
+
var tmp = this.t4y($completion);
|
|
1086
|
+
tmp.p9_1 = Unit_instance;
|
|
1087
|
+
tmp.q9_1 = null;
|
|
1088
|
+
return tmp.v9();
|
|
1089
1089
|
};
|
|
1090
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1091
|
-
return this.
|
|
1090
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).ob = function ($completion) {
|
|
1091
|
+
return this.s4y($completion);
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1094
|
-
var suspendResult = this.
|
|
1093
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).v9 = function () {
|
|
1094
|
+
var suspendResult = this.p9_1;
|
|
1095
1095
|
$sm: do
|
|
1096
1096
|
try {
|
|
1097
|
-
var tmp = this.
|
|
1097
|
+
var tmp = this.n9_1;
|
|
1098
1098
|
if (tmp === 0) {
|
|
1099
|
-
this.
|
|
1099
|
+
this.o9_1 = 1;
|
|
1100
1100
|
return null;
|
|
1101
1101
|
} else if (tmp === 1) {
|
|
1102
|
-
throw this.
|
|
1102
|
+
throw this.q9_1;
|
|
1103
1103
|
}
|
|
1104
1104
|
} catch ($p) {
|
|
1105
1105
|
var e = $p;
|
|
@@ -1107,13 +1107,13 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
while (true);
|
|
1109
1109
|
};
|
|
1110
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1110
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).t4y = function (completion) {
|
|
1111
1111
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1112
1112
|
};
|
|
1113
1113
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1114
1114
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1115
1115
|
var l = function ($completion) {
|
|
1116
|
-
return i.
|
|
1116
|
+
return i.s4y($completion);
|
|
1117
1117
|
};
|
|
1118
1118
|
l.$arity = 0;
|
|
1119
1119
|
return l;
|
|
@@ -1123,83 +1123,83 @@
|
|
|
1123
1123
|
}
|
|
1124
1124
|
function BearerAuthConfig() {
|
|
1125
1125
|
var tmp = this;
|
|
1126
|
-
tmp.
|
|
1126
|
+
tmp.v4x_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1127
1127
|
var tmp_0 = this;
|
|
1128
|
-
tmp_0.
|
|
1128
|
+
tmp_0.w4x_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1129
1129
|
var tmp_1 = this;
|
|
1130
|
-
tmp_1.
|
|
1131
|
-
this.
|
|
1130
|
+
tmp_1.x4x_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1131
|
+
this.y4x_1 = null;
|
|
1132
1132
|
}
|
|
1133
|
-
protoOf(BearerAuthConfig).
|
|
1134
|
-
this.
|
|
1133
|
+
protoOf(BearerAuthConfig).u4y = function (block) {
|
|
1134
|
+
this.v4x_1 = block;
|
|
1135
1135
|
};
|
|
1136
1136
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1137
|
+
this.v4y_1 = client;
|
|
1138
|
+
this.w4y_1 = response;
|
|
1139
|
+
this.x4y_1 = oldTokens;
|
|
1140
1140
|
}
|
|
1141
|
-
protoOf(RefreshTokensParams).
|
|
1142
|
-
_this__u8e3s4.
|
|
1141
|
+
protoOf(RefreshTokensParams).y4y = function (_this__u8e3s4) {
|
|
1142
|
+
_this__u8e3s4.w3j_1.j2l(get_AuthCircuitBreaker(), Unit_instance);
|
|
1143
1143
|
};
|
|
1144
1144
|
function BearerTokens(accessToken, refreshToken) {
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1145
|
+
this.z4y_1 = accessToken;
|
|
1146
|
+
this.a4z_1 = refreshToken;
|
|
1147
1147
|
}
|
|
1148
1148
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1149
1149
|
return true;
|
|
1150
1150
|
}
|
|
1151
1151
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1152
1152
|
return function ($this$headers) {
|
|
1153
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1153
|
+
var tokenValue = 'Bearer ' + $token.z4y_1;
|
|
1154
1154
|
var tmp;
|
|
1155
|
-
if ($this$headers.
|
|
1156
|
-
$this$headers.
|
|
1155
|
+
if ($this$headers.q2p(HttpHeaders_getInstance().f2x_1)) {
|
|
1156
|
+
$this$headers.b2q(HttpHeaders_getInstance().f2x_1);
|
|
1157
1157
|
tmp = Unit_instance;
|
|
1158
1158
|
}
|
|
1159
1159
|
var tmp_0;
|
|
1160
|
-
if (!$request.
|
|
1161
|
-
$this$headers.
|
|
1160
|
+
if (!$request.w3j_1.i2l(get_AuthCircuitBreaker())) {
|
|
1161
|
+
$this$headers.y2p(HttpHeaders_getInstance().f2x_1, tokenValue);
|
|
1162
1162
|
tmp_0 = Unit_instance;
|
|
1163
1163
|
}
|
|
1164
1164
|
return Unit_instance;
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
1167
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1168
|
+
this.j4z_1 = this$0;
|
|
1169
|
+
this.k4z_1 = $response;
|
|
1170
1170
|
CoroutineImpl.call(this, resultContinuation);
|
|
1171
1171
|
}
|
|
1172
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1173
|
-
var tmp = this.
|
|
1174
|
-
tmp.
|
|
1175
|
-
tmp.
|
|
1176
|
-
return tmp.
|
|
1172
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).p4z = function ($completion) {
|
|
1173
|
+
var tmp = this.t4y($completion);
|
|
1174
|
+
tmp.p9_1 = Unit_instance;
|
|
1175
|
+
tmp.q9_1 = null;
|
|
1176
|
+
return tmp.v9();
|
|
1177
1177
|
};
|
|
1178
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1179
|
-
return this.
|
|
1178
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).ob = function ($completion) {
|
|
1179
|
+
return this.p4z($completion);
|
|
1180
1180
|
};
|
|
1181
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1182
|
-
var suspendResult = this.
|
|
1181
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).v9 = function () {
|
|
1182
|
+
var suspendResult = this.p9_1;
|
|
1183
1183
|
$sm: do
|
|
1184
1184
|
try {
|
|
1185
|
-
var tmp = this.
|
|
1185
|
+
var tmp = this.n9_1;
|
|
1186
1186
|
switch (tmp) {
|
|
1187
1187
|
case 0:
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
suspendResult = this.
|
|
1188
|
+
this.o9_1 = 3;
|
|
1189
|
+
this.l4z_1 = this.j4z_1.q4z_1;
|
|
1190
|
+
this.m4z_1 = this.k4z_1.g3l().m3i_1;
|
|
1191
|
+
this.n9_1 = 1;
|
|
1192
|
+
suspendResult = this.j4z_1.t4z_1.t4x(this);
|
|
1193
1193
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1194
1194
|
return suspendResult;
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
continue $sm;
|
|
1198
1198
|
case 1:
|
|
1199
|
-
this.
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1202
|
-
suspendResult = this.
|
|
1199
|
+
this.n4z_1 = suspendResult;
|
|
1200
|
+
this.o4z_1 = new RefreshTokensParams(this.m4z_1, this.k4z_1, this.n4z_1);
|
|
1201
|
+
this.n9_1 = 2;
|
|
1202
|
+
suspendResult = this.l4z_1(this.o4z_1, this);
|
|
1203
1203
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1204
1204
|
return suspendResult;
|
|
1205
1205
|
}
|
|
@@ -1208,46 +1208,46 @@
|
|
|
1208
1208
|
case 2:
|
|
1209
1209
|
return suspendResult;
|
|
1210
1210
|
case 3:
|
|
1211
|
-
throw this.
|
|
1211
|
+
throw this.q9_1;
|
|
1212
1212
|
}
|
|
1213
1213
|
} catch ($p) {
|
|
1214
1214
|
var e = $p;
|
|
1215
|
-
if (this.
|
|
1215
|
+
if (this.o9_1 === 3) {
|
|
1216
1216
|
throw e;
|
|
1217
1217
|
} else {
|
|
1218
|
-
this.
|
|
1219
|
-
this.
|
|
1218
|
+
this.n9_1 = this.o9_1;
|
|
1219
|
+
this.q9_1 = e;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
while (true);
|
|
1223
1223
|
};
|
|
1224
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1225
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1224
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).t4y = function (completion) {
|
|
1225
|
+
return new BearerAuthProvider$refreshToken$slambda(this.j4z_1, this.k4z_1, completion);
|
|
1226
1226
|
};
|
|
1227
1227
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1228
1228
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1229
1229
|
var l = function ($completion) {
|
|
1230
|
-
return i.
|
|
1230
|
+
return i.p4z($completion);
|
|
1231
1231
|
};
|
|
1232
1232
|
l.$arity = 0;
|
|
1233
1233
|
return l;
|
|
1234
1234
|
}
|
|
1235
1235
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1236
1236
|
CoroutineImpl.call(this, resultContinuation);
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1239
|
-
this.
|
|
1237
|
+
this.c50_1 = _this__u8e3s4;
|
|
1238
|
+
this.d50_1 = request;
|
|
1239
|
+
this.e50_1 = authHeader;
|
|
1240
1240
|
}
|
|
1241
|
-
protoOf($addRequestHeadersCOROUTINE$).
|
|
1242
|
-
var suspendResult = this.
|
|
1241
|
+
protoOf($addRequestHeadersCOROUTINE$).v9 = function () {
|
|
1242
|
+
var suspendResult = this.p9_1;
|
|
1243
1243
|
$sm: do
|
|
1244
1244
|
try {
|
|
1245
|
-
var tmp = this.
|
|
1245
|
+
var tmp = this.n9_1;
|
|
1246
1246
|
switch (tmp) {
|
|
1247
1247
|
case 0:
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
suspendResult = this.
|
|
1248
|
+
this.o9_1 = 2;
|
|
1249
|
+
this.n9_1 = 1;
|
|
1250
|
+
suspendResult = this.c50_1.t4z_1.t4x(this);
|
|
1251
1251
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1252
1252
|
return suspendResult;
|
|
1253
1253
|
}
|
|
@@ -1263,37 +1263,37 @@
|
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
var token = tmp_0;
|
|
1266
|
-
headers(this.
|
|
1266
|
+
headers(this.d50_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.d50_1));
|
|
1267
1267
|
return Unit_instance;
|
|
1268
1268
|
case 2:
|
|
1269
|
-
throw this.
|
|
1269
|
+
throw this.q9_1;
|
|
1270
1270
|
}
|
|
1271
1271
|
} catch ($p) {
|
|
1272
1272
|
var e = $p;
|
|
1273
|
-
if (this.
|
|
1273
|
+
if (this.o9_1 === 2) {
|
|
1274
1274
|
throw e;
|
|
1275
1275
|
} else {
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1276
|
+
this.n9_1 = this.o9_1;
|
|
1277
|
+
this.q9_1 = e;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
while (true);
|
|
1281
1281
|
};
|
|
1282
1282
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1283
1283
|
CoroutineImpl.call(this, resultContinuation);
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1284
|
+
this.n50_1 = _this__u8e3s4;
|
|
1285
|
+
this.o50_1 = response;
|
|
1286
1286
|
}
|
|
1287
|
-
protoOf($refreshTokenCOROUTINE$).
|
|
1288
|
-
var suspendResult = this.
|
|
1287
|
+
protoOf($refreshTokenCOROUTINE$).v9 = function () {
|
|
1288
|
+
var suspendResult = this.p9_1;
|
|
1289
1289
|
$sm: do
|
|
1290
1290
|
try {
|
|
1291
|
-
var tmp = this.
|
|
1291
|
+
var tmp = this.n9_1;
|
|
1292
1292
|
switch (tmp) {
|
|
1293
1293
|
case 0:
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
suspendResult = this.
|
|
1294
|
+
this.o9_1 = 2;
|
|
1295
|
+
this.n9_1 = 1;
|
|
1296
|
+
suspendResult = this.n50_1.t4z_1.u4x(BearerAuthProvider$refreshToken$slambda_0(this.n50_1, this.o50_1, null), this);
|
|
1297
1297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1298
1298
|
return suspendResult;
|
|
1299
1299
|
}
|
|
@@ -1303,15 +1303,15 @@
|
|
|
1303
1303
|
var newToken = suspendResult;
|
|
1304
1304
|
return !(newToken == null);
|
|
1305
1305
|
case 2:
|
|
1306
|
-
throw this.
|
|
1306
|
+
throw this.q9_1;
|
|
1307
1307
|
}
|
|
1308
1308
|
} catch ($p) {
|
|
1309
1309
|
var e = $p;
|
|
1310
|
-
if (this.
|
|
1310
|
+
if (this.o9_1 === 2) {
|
|
1311
1311
|
throw e;
|
|
1312
1312
|
} else {
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1313
|
+
this.n9_1 = this.o9_1;
|
|
1314
|
+
this.q9_1 = e;
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
while (true);
|
|
@@ -1324,57 +1324,57 @@
|
|
|
1324
1324
|
tmp = sendWithoutRequestCallback;
|
|
1325
1325
|
}
|
|
1326
1326
|
sendWithoutRequestCallback = tmp;
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1327
|
+
this.q4z_1 = refreshTokens;
|
|
1328
|
+
this.r4z_1 = sendWithoutRequestCallback;
|
|
1329
|
+
this.s4z_1 = realm;
|
|
1330
|
+
this.t4z_1 = new AuthTokenHolder(loadTokens);
|
|
1331
1331
|
}
|
|
1332
|
-
protoOf(BearerAuthProvider).
|
|
1332
|
+
protoOf(BearerAuthProvider).w4v = function () {
|
|
1333
1333
|
var message = 'Deprecated';
|
|
1334
1334
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1335
1335
|
};
|
|
1336
|
-
protoOf(BearerAuthProvider).
|
|
1337
|
-
return this.
|
|
1336
|
+
protoOf(BearerAuthProvider).w4u = function (request) {
|
|
1337
|
+
return this.r4z_1(request);
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(BearerAuthProvider).
|
|
1340
|
-
if (!(auth.
|
|
1341
|
-
get_LOGGER().
|
|
1339
|
+
protoOf(BearerAuthProvider).v4s = function (auth) {
|
|
1340
|
+
if (!(auth.l36_1 === 'Bearer')) {
|
|
1341
|
+
get_LOGGER().i2u('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1342
1342
|
return false;
|
|
1343
1343
|
}
|
|
1344
1344
|
var tmp;
|
|
1345
|
-
if (this.
|
|
1345
|
+
if (this.s4z_1 == null) {
|
|
1346
1346
|
tmp = true;
|
|
1347
1347
|
} else {
|
|
1348
1348
|
if (!(auth instanceof Parameterized)) {
|
|
1349
1349
|
tmp = false;
|
|
1350
1350
|
} else {
|
|
1351
|
-
tmp = auth.
|
|
1351
|
+
tmp = auth.r2w('realm') == this.s4z_1;
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
var isSameRealm = tmp;
|
|
1355
1355
|
if (!isSameRealm) {
|
|
1356
|
-
get_LOGGER().
|
|
1356
|
+
get_LOGGER().i2u('Bearer Auth Provider is not applicable for this realm');
|
|
1357
1357
|
}
|
|
1358
1358
|
return isSameRealm;
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(BearerAuthProvider).
|
|
1360
|
+
protoOf(BearerAuthProvider).v4v = function (request, authHeader, $completion) {
|
|
1361
1361
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1362
|
-
tmp.
|
|
1363
|
-
tmp.
|
|
1364
|
-
return tmp.
|
|
1362
|
+
tmp.p9_1 = Unit_instance;
|
|
1363
|
+
tmp.q9_1 = null;
|
|
1364
|
+
return tmp.v9();
|
|
1365
1365
|
};
|
|
1366
|
-
protoOf(BearerAuthProvider).
|
|
1366
|
+
protoOf(BearerAuthProvider).u4v = function (response, $completion) {
|
|
1367
1367
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1368
|
-
tmp.
|
|
1369
|
-
tmp.
|
|
1370
|
-
return tmp.
|
|
1368
|
+
tmp.p9_1 = Unit_instance;
|
|
1369
|
+
tmp.q9_1 = null;
|
|
1370
|
+
return tmp.v9();
|
|
1371
1371
|
};
|
|
1372
1372
|
//region block: post-declaration
|
|
1373
|
-
protoOf(SetTokenContext).
|
|
1374
|
-
protoOf(SetTokenContext).
|
|
1375
|
-
protoOf(SetTokenContext).
|
|
1376
|
-
protoOf(SetTokenContext).
|
|
1377
|
-
protoOf(BearerAuthProvider).
|
|
1373
|
+
protoOf(SetTokenContext).aa = get;
|
|
1374
|
+
protoOf(SetTokenContext).ai = fold;
|
|
1375
|
+
protoOf(SetTokenContext).zh = minusKey;
|
|
1376
|
+
protoOf(SetTokenContext).bi = plus;
|
|
1377
|
+
protoOf(BearerAuthProvider).x4u = addRequestHeaders$default;
|
|
1378
1378
|
//endregion
|
|
1379
1379
|
//region block: init
|
|
1380
1380
|
Companion_instance = new Companion();
|