@doordeck/doordeck-headless-sdk 0.187.0 → 0.189.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 +56 -56
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +42 -42
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +37 -37
- package/kotlin/doordeck-sdk.js +12308 -12323
- package/kotlin/kotlin-kotlin-stdlib.js +2495 -2458
- package/kotlin/kotlinx-atomicfu.js +20 -21
- package/kotlin/kotlinx-coroutines-core.js +2292 -2310
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +43 -43
- package/kotlin/kotlinx-io-kotlinx-io-core.js +582 -588
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1826 -1831
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1465 -1468
- package/kotlin/ktor-ktor-client-auth.js +444 -444
- package/kotlin/ktor-ktor-client-content-negotiation.js +203 -203
- package/kotlin/ktor-ktor-client-core.js +3109 -3111
- package/kotlin/ktor-ktor-client-logging.js +1118 -1119
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +537 -539
- package/kotlin/ktor-ktor-http.js +778 -778
- package/kotlin/ktor-ktor-io.js +1106 -1109
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +246 -246
- package/kotlin/ktor-ktor-serialization.js +120 -120
- package/kotlin/ktor-ktor-utils.js +857 -857
- package/kotlin/ktor-ktor-websockets.js +48 -48
- package/package.json +1 -1
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.xb;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.fb;
|
|
11
11
|
var VOID = kotlin_kotlin.$_$.b;
|
|
12
12
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
15
|
var toList = kotlin_kotlin.$_$.g8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
17
17
|
var KtMutableMap = kotlin_kotlin.$_$.o5;
|
|
18
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
20
|
-
var createKType = kotlin_kotlin.$_$.
|
|
21
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
18
|
+
var getKClass = kotlin_kotlin.$_$.oc;
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.jg;
|
|
20
|
+
var createKType = kotlin_kotlin.$_$.mc;
|
|
21
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.kc;
|
|
22
22
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.p4;
|
|
23
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
24
24
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
@@ -30,30 +30,30 @@
|
|
|
30
30
|
var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
|
|
31
31
|
var flatten = kotlin_kotlin.$_$.z6;
|
|
32
32
|
var emptyList = kotlin_kotlin.$_$.q6;
|
|
33
|
-
var to = kotlin_kotlin.$_$.
|
|
33
|
+
var to = kotlin_kotlin.$_$.zg;
|
|
34
34
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
35
35
|
var first = kotlin_kotlin.$_$.y6;
|
|
36
36
|
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
37
37
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
38
|
+
var toString = kotlin_kotlin.$_$.ac;
|
|
39
39
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
40
40
|
var Sender = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
41
41
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
42
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
|
|
43
43
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
44
|
-
var Unit = kotlin_kotlin.$_$.
|
|
44
|
+
var Unit = kotlin_kotlin.$_$.gg;
|
|
45
45
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
46
46
|
var KtList = kotlin_kotlin.$_$.i5;
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.eb;
|
|
48
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
|
|
49
49
|
var get = kotlin_kotlin.$_$.f9;
|
|
50
50
|
var fold = kotlin_kotlin.$_$.e9;
|
|
51
51
|
var minusKey = kotlin_kotlin.$_$.g9;
|
|
52
52
|
var plus = kotlin_kotlin.$_$.i9;
|
|
53
53
|
var Element = kotlin_kotlin.$_$.h9;
|
|
54
54
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
-
var equals = kotlin_kotlin.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
56
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
57
57
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
58
58
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.e1;
|
|
@@ -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.z4p();
|
|
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.y4p(request, authHeader, $completion) : $super.y4p.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).f4n = function (it, $completion) {
|
|
122
|
+
var tmp = this.a3o(it, $completion);
|
|
123
|
+
tmp.c9_1 = Unit_instance;
|
|
124
|
+
tmp.d9_1 = null;
|
|
125
|
+
return tmp.i9();
|
|
126
126
|
};
|
|
127
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
128
|
-
return this.
|
|
127
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).u9 = function (p1, $completion) {
|
|
128
|
+
return this.f4n(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
129
129
|
};
|
|
130
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
131
|
-
var suspendResult = this.
|
|
130
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).i9 = function () {
|
|
131
|
+
var suspendResult = this.c9_1;
|
|
132
132
|
$sm: do
|
|
133
133
|
try {
|
|
134
|
-
var tmp = this.
|
|
134
|
+
var tmp = this.a9_1;
|
|
135
135
|
if (tmp === 0) {
|
|
136
|
-
this.
|
|
137
|
-
return this.
|
|
136
|
+
this.b9_1 = 1;
|
|
137
|
+
return this.e4n_1.y32().equals(Companion_getInstance().p2y_1);
|
|
138
138
|
} else if (tmp === 1) {
|
|
139
|
-
throw this.
|
|
139
|
+
throw this.d9_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).a3o = function (it, completion) {
|
|
148
148
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
149
|
-
i.
|
|
149
|
+
i.e4n_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.f4n(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.g4n_1 = ArrayList_init_$Create$();
|
|
164
164
|
var tmp_0 = this;
|
|
165
|
-
tmp_0.
|
|
165
|
+
tmp_0.h4n_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
166
166
|
}
|
|
167
167
|
function AtomicCounter() {
|
|
168
|
-
this.
|
|
168
|
+
this.i4n_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.a3n_1.g4n_1);
|
|
180
|
+
$this$createClientPlugin.z3m_1.b3d_1.o2h(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().wb(), arrayOf([]), false))]), false);
|
|
190
190
|
} catch ($p) {
|
|
191
191
|
var tmp_1;
|
|
192
192
|
if ($p instanceof Error) {
|
|
@@ -200,9 +200,9 @@
|
|
|
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.b42(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
204
204
|
var tmp_2 = Send_instance;
|
|
205
|
-
$this$createClientPlugin.
|
|
205
|
+
$this$createClientPlugin.d3n(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
206
206
|
return Unit_instance;
|
|
207
207
|
}
|
|
208
208
|
function Auth$lambda$refreshTokenIfNeeded$lambda() {
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
return LinkedHashMap_init_$Create$();
|
|
216
216
|
}
|
|
217
217
|
function invoke$findProvider(call, candidateProviders) {
|
|
218
|
-
var headerValues = call.
|
|
218
|
+
var headerValues = call.x3d().b2x().p2l(HttpHeaders_getInstance().z2v_1);
|
|
219
219
|
var tmp;
|
|
220
220
|
if (headerValues == null) {
|
|
221
221
|
tmp = null;
|
|
@@ -241,8 +241,8 @@
|
|
|
241
241
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
242
242
|
var this_0 = get_LOGGER();
|
|
243
243
|
if (get_isTraceEnabled(this_0)) {
|
|
244
|
-
var tmp$ret$3 = 'Unauthorized response ' + call.
|
|
245
|
-
this_0.
|
|
244
|
+
var tmp$ret$3 = 'Unauthorized response ' + call.f3g().o3g().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
245
|
+
this_0.f2q(tmp$ret$3);
|
|
246
246
|
}
|
|
247
247
|
tmp_0 = null;
|
|
248
248
|
} else {
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
var _iterator__ex2g4s_1 = candidateProviders.t();
|
|
260
260
|
while (_iterator__ex2g4s_1.u()) {
|
|
261
261
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
262
|
-
if (element_0.
|
|
262
|
+
if (element_0.j4n(element)) {
|
|
263
263
|
tmp$ret$6 = element_0;
|
|
264
264
|
break $l$block;
|
|
265
265
|
}
|
|
@@ -288,15 +288,15 @@
|
|
|
288
288
|
}
|
|
289
289
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
290
290
|
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
291
|
-
tmp.
|
|
292
|
-
tmp.
|
|
293
|
-
return tmp.
|
|
291
|
+
tmp.c9_1 = Unit_instance;
|
|
292
|
+
tmp.d9_1 = null;
|
|
293
|
+
return tmp.i9();
|
|
294
294
|
}
|
|
295
295
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
296
296
|
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
297
|
-
tmp.
|
|
298
|
-
tmp.
|
|
299
|
-
return tmp.
|
|
297
|
+
tmp.c9_1 = Unit_instance;
|
|
298
|
+
tmp.d9_1 = null;
|
|
299
|
+
return tmp.i9();
|
|
300
300
|
}
|
|
301
301
|
function Auth$lambda$slambda$lambda() {
|
|
302
302
|
return new AtomicCounter();
|
|
@@ -306,136 +306,136 @@
|
|
|
306
306
|
return LinkedHashMap_init_$Create$();
|
|
307
307
|
}
|
|
308
308
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
309
|
+
this.v4o_1 = $providers;
|
|
310
|
+
this.w4o_1 = $tokenVersions;
|
|
311
|
+
this.x4o_1 = $tokenVersionsAttributeKey;
|
|
312
312
|
CoroutineImpl.call(this, resultContinuation);
|
|
313
313
|
}
|
|
314
|
-
protoOf(Auth$lambda$slambda).
|
|
315
|
-
var tmp = this.
|
|
316
|
-
tmp.
|
|
317
|
-
tmp.
|
|
318
|
-
return tmp.
|
|
314
|
+
protoOf(Auth$lambda$slambda).p42 = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
315
|
+
var tmp = this.q42($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
316
|
+
tmp.c9_1 = Unit_instance;
|
|
317
|
+
tmp.d9_1 = null;
|
|
318
|
+
return tmp.i9();
|
|
319
319
|
};
|
|
320
|
-
protoOf(Auth$lambda$slambda).
|
|
320
|
+
protoOf(Auth$lambda$slambda).r42 = function (p1, p2, p3, $completion) {
|
|
321
321
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
322
322
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
323
|
-
return this.
|
|
323
|
+
return this.p42(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
324
324
|
};
|
|
325
|
-
protoOf(Auth$lambda$slambda).
|
|
326
|
-
var suspendResult = this.
|
|
325
|
+
protoOf(Auth$lambda$slambda).i9 = function () {
|
|
326
|
+
var suspendResult = this.c9_1;
|
|
327
327
|
$sm: do
|
|
328
328
|
try {
|
|
329
|
-
var tmp = this.
|
|
329
|
+
var tmp = this.a9_1;
|
|
330
330
|
switch (tmp) {
|
|
331
331
|
case 0:
|
|
332
|
-
this.
|
|
333
|
-
var tmp0 = this.
|
|
332
|
+
this.b9_1 = 4;
|
|
333
|
+
var tmp0 = this.v4o_1;
|
|
334
334
|
var destination = ArrayList_init_$Create$();
|
|
335
335
|
var _iterator__ex2g4s = tmp0.t();
|
|
336
336
|
while (_iterator__ex2g4s.u()) {
|
|
337
337
|
var element = _iterator__ex2g4s.v();
|
|
338
|
-
if (element.
|
|
338
|
+
if (element.c4p(this.z4o_1)) {
|
|
339
339
|
destination.j1(element);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
343
|
+
this.b4p_1 = destination.t();
|
|
344
|
+
this.a9_1 = 1;
|
|
345
345
|
continue $sm;
|
|
346
346
|
case 1:
|
|
347
|
-
if (!this.
|
|
348
|
-
this.
|
|
347
|
+
if (!this.b4p_1.u()) {
|
|
348
|
+
this.a9_1 = 3;
|
|
349
349
|
continue $sm;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
var element_0 = this.
|
|
352
|
+
var element_0 = this.b4p_1.v();
|
|
353
353
|
var this_0 = get_LOGGER();
|
|
354
354
|
if (get_isTraceEnabled(this_0)) {
|
|
355
|
-
this_0.
|
|
355
|
+
this_0.f2q('Adding auth headers for ' + this.z4o_1.x3e_1.toString() + ' from provider ' + toString(element_0));
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
var tokenVersion = this.
|
|
359
|
-
var requestTokenVersions = this.
|
|
360
|
-
var value = tokenVersion.
|
|
358
|
+
var tokenVersion = this.w4o_1.u2p(element_0, Auth$lambda$slambda$lambda);
|
|
359
|
+
var requestTokenVersions = this.z4o_1.c3f_1.q2h(this.x4o_1, Auth$lambda$slambda$lambda_0);
|
|
360
|
+
var value = tokenVersion.i4n_1.kotlinx$atomicfu$value;
|
|
361
361
|
requestTokenVersions.y2(element_0, value);
|
|
362
|
-
this.
|
|
363
|
-
suspendResult = element_0.
|
|
362
|
+
this.a9_1 = 2;
|
|
363
|
+
suspendResult = element_0.d4p(this.z4o_1, VOID, this);
|
|
364
364
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
365
365
|
return suspendResult;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
continue $sm;
|
|
369
369
|
case 2:
|
|
370
|
-
this.
|
|
370
|
+
this.a9_1 = 1;
|
|
371
371
|
continue $sm;
|
|
372
372
|
case 3:
|
|
373
373
|
return Unit_instance;
|
|
374
374
|
case 4:
|
|
375
|
-
throw this.
|
|
375
|
+
throw this.d9_1;
|
|
376
376
|
}
|
|
377
377
|
} catch ($p) {
|
|
378
378
|
var e = $p;
|
|
379
|
-
if (this.
|
|
379
|
+
if (this.b9_1 === 4) {
|
|
380
380
|
throw e;
|
|
381
381
|
} else {
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
382
|
+
this.a9_1 = this.b9_1;
|
|
383
|
+
this.d9_1 = e;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
while (true);
|
|
387
387
|
};
|
|
388
|
-
protoOf(Auth$lambda$slambda).
|
|
389
|
-
var i = new Auth$lambda$slambda(this.
|
|
390
|
-
i.
|
|
391
|
-
i.
|
|
392
|
-
i.
|
|
388
|
+
protoOf(Auth$lambda$slambda).q42 = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
389
|
+
var i = new Auth$lambda$slambda(this.v4o_1, this.w4o_1, this.x4o_1, completion);
|
|
390
|
+
i.y4o_1 = $this$onRequest;
|
|
391
|
+
i.z4o_1 = request;
|
|
392
|
+
i.a4p_1 = _unused_var__etf5q3;
|
|
393
393
|
return i;
|
|
394
394
|
};
|
|
395
395
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
396
396
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
397
397
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
398
|
-
return i.
|
|
398
|
+
return i.p42($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
399
399
|
};
|
|
400
400
|
l.$arity = 3;
|
|
401
401
|
return l;
|
|
402
402
|
}
|
|
403
403
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
404
|
+
this.m4p_1 = $this_createClientPlugin;
|
|
405
|
+
this.n4p_1 = $providers;
|
|
406
|
+
this.o4p_1 = $tokenVersions;
|
|
407
|
+
this.p4p_1 = $tokenVersionsAttributeKey;
|
|
408
408
|
CoroutineImpl.call(this, resultContinuation);
|
|
409
409
|
}
|
|
410
|
-
protoOf(Auth$lambda$slambda_1).
|
|
411
|
-
var tmp = this.
|
|
412
|
-
tmp.
|
|
413
|
-
tmp.
|
|
414
|
-
return tmp.
|
|
410
|
+
protoOf(Auth$lambda$slambda_1).f3u = function ($this$on, originalRequest, $completion) {
|
|
411
|
+
var tmp = this.g3u($this$on, originalRequest, $completion);
|
|
412
|
+
tmp.c9_1 = Unit_instance;
|
|
413
|
+
tmp.d9_1 = null;
|
|
414
|
+
return tmp.i9();
|
|
415
415
|
};
|
|
416
|
-
protoOf(Auth$lambda$slambda_1).
|
|
416
|
+
protoOf(Auth$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
417
417
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
418
|
-
return this.
|
|
418
|
+
return this.f3u(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
419
419
|
};
|
|
420
|
-
protoOf(Auth$lambda$slambda_1).
|
|
421
|
-
var suspendResult = this.
|
|
420
|
+
protoOf(Auth$lambda$slambda_1).i9 = function () {
|
|
421
|
+
var suspendResult = this.c9_1;
|
|
422
422
|
$sm: do
|
|
423
423
|
try {
|
|
424
|
-
var tmp = this.
|
|
424
|
+
var tmp = this.a9_1;
|
|
425
425
|
switch (tmp) {
|
|
426
426
|
case 0:
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
suspendResult = this.
|
|
427
|
+
this.b9_1 = 10;
|
|
428
|
+
this.a9_1 = 1;
|
|
429
|
+
suspendResult = this.q4p_1.j3u(this.r4p_1, this);
|
|
430
430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
431
431
|
return suspendResult;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
continue $sm;
|
|
435
435
|
case 1:
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
suspendResult = this.
|
|
436
|
+
this.w4p_1 = suspendResult;
|
|
437
|
+
this.a9_1 = 2;
|
|
438
|
+
suspendResult = this.m4p_1.a3n_1.h4n_1(this.w4p_1.x3d(), this);
|
|
439
439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
440
440
|
return suspendResult;
|
|
441
441
|
}
|
|
@@ -443,22 +443,22 @@
|
|
|
443
443
|
continue $sm;
|
|
444
444
|
case 2:
|
|
445
445
|
if (!suspendResult) {
|
|
446
|
-
return this.
|
|
446
|
+
return this.w4p_1;
|
|
447
447
|
} else {
|
|
448
|
-
this.
|
|
448
|
+
this.a9_1 = 3;
|
|
449
449
|
continue $sm;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
case 3:
|
|
453
|
-
if (this.
|
|
454
|
-
return this.
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
453
|
+
if (this.w4p_1.f3g().g3g().n2h(get_AuthCircuitBreaker()))
|
|
454
|
+
return this.w4p_1;
|
|
455
|
+
this.s4p_1 = this.w4p_1;
|
|
456
|
+
this.v4p_1 = HashSet_init_$Create$(this.n4p_1);
|
|
457
|
+
this.a9_1 = 4;
|
|
458
458
|
continue $sm;
|
|
459
459
|
case 4:
|
|
460
|
-
this.
|
|
461
|
-
suspendResult = this.
|
|
460
|
+
this.a9_1 = 5;
|
|
461
|
+
suspendResult = this.m4p_1.a3n_1.h4n_1(this.s4p_1.x3d(), this);
|
|
462
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
463
463
|
return suspendResult;
|
|
464
464
|
}
|
|
@@ -466,39 +466,39 @@
|
|
|
466
466
|
continue $sm;
|
|
467
467
|
case 5:
|
|
468
468
|
if (!suspendResult) {
|
|
469
|
-
this.
|
|
469
|
+
this.a9_1 = 9;
|
|
470
470
|
continue $sm;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
var this_0 = get_LOGGER();
|
|
474
474
|
if (get_isTraceEnabled(this_0)) {
|
|
475
|
-
this_0.
|
|
475
|
+
this_0.f2q('Unauthorized response for ' + this.s4p_1.f3g().o3g().toString());
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
478
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.s4p_1, this.v4p_1);
|
|
479
479
|
var tmp_0;
|
|
480
480
|
if (tmp0_elvis_lhs == null) {
|
|
481
|
-
this.
|
|
481
|
+
this.q4p_1;
|
|
482
482
|
var this_1 = get_LOGGER();
|
|
483
483
|
if (get_isTraceEnabled(this_1)) {
|
|
484
|
-
this_1.
|
|
484
|
+
this_1.f2q('Can not find auth provider for ' + this.s4p_1.f3g().o3g().toString());
|
|
485
485
|
}
|
|
486
|
-
return this.
|
|
486
|
+
return this.s4p_1;
|
|
487
487
|
} else {
|
|
488
488
|
tmp_0 = tmp0_elvis_lhs;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
var _destruct__k2r9zo = tmp_0;
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
492
|
+
this.u4p_1 = _destruct__k2r9zo.fg();
|
|
493
|
+
this.t4p_1 = _destruct__k2r9zo.gg();
|
|
494
494
|
var this_2 = get_LOGGER();
|
|
495
495
|
if (get_isTraceEnabled(this_2)) {
|
|
496
|
-
this_2.
|
|
496
|
+
this_2.f2q('Using provider ' + toString(this.u4p_1) + ' for ' + this.s4p_1.f3g().o3g().toString());
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
499
|
+
this.v4p_1.i3(this.u4p_1);
|
|
500
|
+
this.a9_1 = 6;
|
|
501
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.o4p_1, this.p4p_1, this.s4p_1, this.u4p_1, this.r4p_1, this);
|
|
502
502
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
503
503
|
return suspendResult;
|
|
504
504
|
}
|
|
@@ -506,88 +506,88 @@
|
|
|
506
506
|
continue $sm;
|
|
507
507
|
case 6:
|
|
508
508
|
if (!suspendResult) {
|
|
509
|
-
return this.
|
|
509
|
+
return this.s4p_1;
|
|
510
510
|
} else {
|
|
511
|
-
this.
|
|
511
|
+
this.a9_1 = 7;
|
|
512
512
|
continue $sm;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
case 7:
|
|
516
|
-
this.
|
|
517
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
516
|
+
this.a9_1 = 8;
|
|
517
|
+
suspendResult = invoke$executeWithNewToken(this.q4p_1, this.s4p_1, this.u4p_1, this.r4p_1, this.t4p_1, this);
|
|
518
518
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
519
519
|
return suspendResult;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
continue $sm;
|
|
523
523
|
case 8:
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
524
|
+
this.s4p_1 = suspendResult;
|
|
525
|
+
this.a9_1 = 4;
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 9:
|
|
528
|
-
return this.
|
|
528
|
+
return this.s4p_1;
|
|
529
529
|
case 10:
|
|
530
|
-
throw this.
|
|
530
|
+
throw this.d9_1;
|
|
531
531
|
}
|
|
532
532
|
} catch ($p) {
|
|
533
533
|
var e = $p;
|
|
534
|
-
if (this.
|
|
534
|
+
if (this.b9_1 === 10) {
|
|
535
535
|
throw e;
|
|
536
536
|
} else {
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
537
|
+
this.a9_1 = this.b9_1;
|
|
538
|
+
this.d9_1 = e;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
while (true);
|
|
542
542
|
};
|
|
543
|
-
protoOf(Auth$lambda$slambda_1).
|
|
544
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
545
|
-
i.
|
|
546
|
-
i.
|
|
543
|
+
protoOf(Auth$lambda$slambda_1).g3u = function ($this$on, originalRequest, completion) {
|
|
544
|
+
var i = new Auth$lambda$slambda_1(this.m4p_1, this.n4p_1, this.o4p_1, this.p4p_1, completion);
|
|
545
|
+
i.q4p_1 = $this$on;
|
|
546
|
+
i.r4p_1 = originalRequest;
|
|
547
547
|
return i;
|
|
548
548
|
};
|
|
549
549
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
550
550
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
551
551
|
var l = function ($this$on, originalRequest, $completion) {
|
|
552
|
-
return i.
|
|
552
|
+
return i.f3u($this$on, originalRequest, $completion);
|
|
553
553
|
};
|
|
554
554
|
l.$arity = 2;
|
|
555
555
|
return l;
|
|
556
556
|
}
|
|
557
557
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
558
558
|
CoroutineImpl.call(this, resultContinuation);
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
559
|
+
this.s4n_1 = tokenVersions;
|
|
560
|
+
this.t4n_1 = tokenVersionsAttributeKey;
|
|
561
|
+
this.u4n_1 = call;
|
|
562
|
+
this.v4n_1 = provider;
|
|
563
|
+
this.w4n_1 = request;
|
|
564
564
|
}
|
|
565
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).
|
|
566
|
-
var suspendResult = this.
|
|
565
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).i9 = function () {
|
|
566
|
+
var suspendResult = this.c9_1;
|
|
567
567
|
$sm: do
|
|
568
568
|
try {
|
|
569
|
-
var tmp = this.
|
|
569
|
+
var tmp = this.a9_1;
|
|
570
570
|
switch (tmp) {
|
|
571
571
|
case 0:
|
|
572
|
-
this.
|
|
572
|
+
this.b9_1 = 4;
|
|
573
573
|
var tmp_0 = this;
|
|
574
|
-
tmp_0.
|
|
574
|
+
tmp_0.x4n_1 = this.s4n_1.u2p(this.v4n_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
575
575
|
var tmp_1 = this;
|
|
576
|
-
tmp_1.
|
|
577
|
-
var requestTokenVersion = this.
|
|
578
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
576
|
+
tmp_1.y4n_1 = this.w4n_1.c3f_1.q2h(this.t4n_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
577
|
+
var requestTokenVersion = this.y4n_1.g3(this.v4n_1);
|
|
578
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.x4n_1.i4n_1.kotlinx$atomicfu$value) {
|
|
579
579
|
var this_0 = get_LOGGER();
|
|
580
580
|
if (get_isTraceEnabled(this_0)) {
|
|
581
|
-
this_0.
|
|
581
|
+
this_0.f2q('Refreshing token for ' + this.u4n_1.f3g().o3g().toString());
|
|
582
582
|
}
|
|
583
|
-
this.
|
|
584
|
-
suspendResult = this.
|
|
583
|
+
this.a9_1 = 1;
|
|
584
|
+
suspendResult = this.v4n_1.x4p(this.u4n_1.x3d(), this);
|
|
585
585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
586
586
|
return suspendResult;
|
|
587
587
|
}
|
|
588
588
|
continue $sm;
|
|
589
589
|
} else {
|
|
590
|
-
this.
|
|
590
|
+
this.a9_1 = 3;
|
|
591
591
|
continue $sm;
|
|
592
592
|
}
|
|
593
593
|
|
|
@@ -595,71 +595,71 @@
|
|
|
595
595
|
if (!suspendResult) {
|
|
596
596
|
var this_1 = get_LOGGER();
|
|
597
597
|
if (get_isTraceEnabled(this_1)) {
|
|
598
|
-
this_1.
|
|
598
|
+
this_1.f2q('Refreshing token failed for ' + this.u4n_1.f3g().o3g().toString());
|
|
599
599
|
}
|
|
600
600
|
return false;
|
|
601
601
|
} else {
|
|
602
|
-
var tmp0 = this.
|
|
603
|
-
var tmp2 = this.
|
|
604
|
-
var value = this.
|
|
602
|
+
var tmp0 = this.y4n_1;
|
|
603
|
+
var tmp2 = this.v4n_1;
|
|
604
|
+
var value = this.x4n_1.i4n_1.atomicfu$incrementAndGet();
|
|
605
605
|
tmp0.y2(tmp2, value);
|
|
606
|
-
this.
|
|
606
|
+
this.a9_1 = 2;
|
|
607
607
|
continue $sm;
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
case 2:
|
|
611
|
-
this.
|
|
611
|
+
this.a9_1 = 3;
|
|
612
612
|
continue $sm;
|
|
613
613
|
case 3:
|
|
614
614
|
return true;
|
|
615
615
|
case 4:
|
|
616
|
-
throw this.
|
|
616
|
+
throw this.d9_1;
|
|
617
617
|
}
|
|
618
618
|
} catch ($p) {
|
|
619
619
|
var e = $p;
|
|
620
|
-
if (this.
|
|
620
|
+
if (this.b9_1 === 4) {
|
|
621
621
|
throw e;
|
|
622
622
|
} else {
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
623
|
+
this.a9_1 = this.b9_1;
|
|
624
|
+
this.d9_1 = e;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
while (true);
|
|
628
628
|
};
|
|
629
629
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
630
630
|
CoroutineImpl.call(this, resultContinuation);
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
631
|
+
this.h4o_1 = _this__u8e3s4;
|
|
632
|
+
this.i4o_1 = call;
|
|
633
|
+
this.j4o_1 = provider;
|
|
634
|
+
this.k4o_1 = oldRequest;
|
|
635
|
+
this.l4o_1 = authHeader;
|
|
636
636
|
}
|
|
637
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$).
|
|
638
|
-
var suspendResult = this.
|
|
637
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).i9 = function () {
|
|
638
|
+
var suspendResult = this.c9_1;
|
|
639
639
|
$sm: do
|
|
640
640
|
try {
|
|
641
|
-
var tmp = this.
|
|
641
|
+
var tmp = this.a9_1;
|
|
642
642
|
switch (tmp) {
|
|
643
643
|
case 0:
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
suspendResult = this.
|
|
644
|
+
this.b9_1 = 3;
|
|
645
|
+
this.m4o_1 = new HttpRequestBuilder();
|
|
646
|
+
this.m4o_1.p3k(this.k4o_1);
|
|
647
|
+
this.a9_1 = 1;
|
|
648
|
+
suspendResult = this.j4o_1.y4p(this.m4o_1, this.l4o_1, this);
|
|
649
649
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
650
650
|
return suspendResult;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
continue $sm;
|
|
654
654
|
case 1:
|
|
655
|
-
this.
|
|
655
|
+
this.m4o_1.c3f_1.o2h(get_AuthCircuitBreaker(), Unit_instance);
|
|
656
656
|
var this_0 = get_LOGGER();
|
|
657
657
|
if (get_isTraceEnabled(this_0)) {
|
|
658
|
-
this_0.
|
|
658
|
+
this_0.f2q('Sending new request to ' + this.i4o_1.f3g().o3g().toString());
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
this.
|
|
662
|
-
suspendResult = this.
|
|
661
|
+
this.a9_1 = 2;
|
|
662
|
+
suspendResult = this.h4o_1.j3u(this.m4o_1, this);
|
|
663
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
664
|
return suspendResult;
|
|
665
665
|
}
|
|
@@ -668,15 +668,15 @@
|
|
|
668
668
|
case 2:
|
|
669
669
|
return suspendResult;
|
|
670
670
|
case 3:
|
|
671
|
-
throw this.
|
|
671
|
+
throw this.d9_1;
|
|
672
672
|
}
|
|
673
673
|
} catch ($p) {
|
|
674
674
|
var e = $p;
|
|
675
|
-
if (this.
|
|
675
|
+
if (this.b9_1 === 3) {
|
|
676
676
|
throw e;
|
|
677
677
|
} else {
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
678
|
+
this.a9_1 = this.b9_1;
|
|
679
|
+
this.d9_1 = e;
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
while (true);
|
|
@@ -746,28 +746,28 @@
|
|
|
746
746
|
return Companion_instance;
|
|
747
747
|
};
|
|
748
748
|
function AuthTokenHolder$setToken$slambda($block, resultContinuation) {
|
|
749
|
-
this.
|
|
749
|
+
this.i4q_1 = $block;
|
|
750
750
|
CoroutineImpl.call(this, resultContinuation);
|
|
751
751
|
}
|
|
752
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
753
|
-
var tmp = this.
|
|
754
|
-
tmp.
|
|
755
|
-
tmp.
|
|
756
|
-
return tmp.
|
|
752
|
+
protoOf(AuthTokenHolder$setToken$slambda).k4q = function ($this$withContext, $completion) {
|
|
753
|
+
var tmp = this.w1u($this$withContext, $completion);
|
|
754
|
+
tmp.c9_1 = Unit_instance;
|
|
755
|
+
tmp.d9_1 = null;
|
|
756
|
+
return tmp.i9();
|
|
757
757
|
};
|
|
758
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
759
|
-
return this.
|
|
758
|
+
protoOf(AuthTokenHolder$setToken$slambda).u9 = function (p1, $completion) {
|
|
759
|
+
return this.k4q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
760
760
|
};
|
|
761
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
762
|
-
var suspendResult = this.
|
|
761
|
+
protoOf(AuthTokenHolder$setToken$slambda).i9 = function () {
|
|
762
|
+
var suspendResult = this.c9_1;
|
|
763
763
|
$sm: do
|
|
764
764
|
try {
|
|
765
|
-
var tmp = this.
|
|
765
|
+
var tmp = this.a9_1;
|
|
766
766
|
switch (tmp) {
|
|
767
767
|
case 0:
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
770
|
-
suspendResult = this.
|
|
768
|
+
this.b9_1 = 2;
|
|
769
|
+
this.a9_1 = 1;
|
|
770
|
+
suspendResult = this.i4q_1(this);
|
|
771
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
772
772
|
return suspendResult;
|
|
773
773
|
}
|
|
@@ -776,59 +776,59 @@
|
|
|
776
776
|
case 1:
|
|
777
777
|
return suspendResult;
|
|
778
778
|
case 2:
|
|
779
|
-
throw this.
|
|
779
|
+
throw this.d9_1;
|
|
780
780
|
}
|
|
781
781
|
} catch ($p) {
|
|
782
782
|
var e = $p;
|
|
783
|
-
if (this.
|
|
783
|
+
if (this.b9_1 === 2) {
|
|
784
784
|
throw e;
|
|
785
785
|
} else {
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
786
|
+
this.a9_1 = this.b9_1;
|
|
787
|
+
this.d9_1 = e;
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
while (true);
|
|
791
791
|
};
|
|
792
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
793
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
794
|
-
i.
|
|
792
|
+
protoOf(AuthTokenHolder$setToken$slambda).w1u = function ($this$withContext, completion) {
|
|
793
|
+
var i = new AuthTokenHolder$setToken$slambda(this.i4q_1, completion);
|
|
794
|
+
i.j4q_1 = $this$withContext;
|
|
795
795
|
return i;
|
|
796
796
|
};
|
|
797
797
|
function AuthTokenHolder$setToken$slambda_0($block, resultContinuation) {
|
|
798
798
|
var i = new AuthTokenHolder$setToken$slambda($block, resultContinuation);
|
|
799
799
|
var l = function ($this$withContext, $completion) {
|
|
800
|
-
return i.
|
|
800
|
+
return i.k4q($this$withContext, $completion);
|
|
801
801
|
};
|
|
802
802
|
l.$arity = 1;
|
|
803
803
|
return l;
|
|
804
804
|
}
|
|
805
805
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
806
806
|
CoroutineImpl.call(this, resultContinuation);
|
|
807
|
-
this.
|
|
807
|
+
this.t4q_1 = _this__u8e3s4;
|
|
808
808
|
}
|
|
809
|
-
protoOf($loadTokenCOROUTINE$).
|
|
810
|
-
var suspendResult = this.
|
|
809
|
+
protoOf($loadTokenCOROUTINE$).i9 = function () {
|
|
810
|
+
var suspendResult = this.c9_1;
|
|
811
811
|
$sm: do
|
|
812
812
|
try {
|
|
813
|
-
var tmp = this.
|
|
813
|
+
var tmp = this.a9_1;
|
|
814
814
|
switch (tmp) {
|
|
815
815
|
case 0:
|
|
816
|
-
this.
|
|
817
|
-
if (!(this.
|
|
818
|
-
return this.
|
|
819
|
-
this.
|
|
820
|
-
if (!(this.
|
|
821
|
-
this.
|
|
822
|
-
suspendResult = this.
|
|
816
|
+
this.b9_1 = 12;
|
|
817
|
+
if (!(this.t4q_1.a4r_1 == null))
|
|
818
|
+
return this.t4q_1.a4r_1;
|
|
819
|
+
this.y4q_1 = this.t4q_1.a4r_1;
|
|
820
|
+
if (!(this.g9().n9(Companion_instance) == null)) {
|
|
821
|
+
this.a9_1 = 10;
|
|
822
|
+
suspendResult = this.t4q_1.z4q_1(this);
|
|
823
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
824
|
return suspendResult;
|
|
825
825
|
}
|
|
826
826
|
continue $sm;
|
|
827
827
|
} else {
|
|
828
|
-
this.
|
|
829
|
-
this.
|
|
830
|
-
this.
|
|
831
|
-
suspendResult = this.
|
|
828
|
+
this.w4q_1 = this.t4q_1.c4r_1;
|
|
829
|
+
this.v4q_1 = null;
|
|
830
|
+
this.a9_1 = 1;
|
|
831
|
+
suspendResult = this.w4q_1.x1g(this.v4q_1, this);
|
|
832
832
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
833
833
|
return suspendResult;
|
|
834
834
|
}
|
|
@@ -836,207 +836,207 @@
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
case 1:
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
839
|
+
this.x4q_1 = Unit_instance;
|
|
840
|
+
this.a9_1 = 2;
|
|
841
841
|
continue $sm;
|
|
842
842
|
case 2:
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
843
|
+
this.b9_1 = 9;
|
|
844
|
+
this.t4q_1.b4r_1 = true;
|
|
845
|
+
this.a9_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 3:
|
|
848
|
-
this.
|
|
849
|
-
if (equals(this.
|
|
850
|
-
this.
|
|
851
|
-
suspendResult = this.
|
|
848
|
+
this.b9_1 = 8;
|
|
849
|
+
if (equals(this.y4q_1, this.t4q_1.a4r_1)) {
|
|
850
|
+
this.a9_1 = 4;
|
|
851
|
+
suspendResult = this.t4q_1.z4q_1(this);
|
|
852
852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
853
853
|
return suspendResult;
|
|
854
854
|
}
|
|
855
855
|
continue $sm;
|
|
856
856
|
} else {
|
|
857
|
-
this.
|
|
857
|
+
this.a9_1 = 5;
|
|
858
858
|
continue $sm;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
case 4:
|
|
862
862
|
var ARGUMENT = suspendResult;
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
863
|
+
this.t4q_1.a4r_1 = ARGUMENT;
|
|
864
|
+
this.a9_1 = 5;
|
|
865
865
|
continue $sm;
|
|
866
866
|
case 5:
|
|
867
|
-
this.
|
|
867
|
+
this.a9_1 = 6;
|
|
868
868
|
continue $sm;
|
|
869
869
|
case 6:
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
870
|
+
this.b9_1 = 9;
|
|
871
|
+
this.t4q_1.b4r_1 = false;
|
|
872
|
+
this.x4q_1 = this.t4q_1.a4r_1;
|
|
873
|
+
this.b9_1 = 12;
|
|
874
|
+
this.a9_1 = 7;
|
|
875
875
|
continue $sm;
|
|
876
876
|
case 7:
|
|
877
|
-
var tmp_0 = this.
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
877
|
+
var tmp_0 = this.x4q_1;
|
|
878
|
+
this.b9_1 = 12;
|
|
879
|
+
this.w4q_1.j1g(this.v4q_1);
|
|
880
|
+
this.u4q_1 = tmp_0;
|
|
881
|
+
this.a9_1 = 11;
|
|
882
882
|
continue $sm;
|
|
883
883
|
case 8:
|
|
884
|
-
this.
|
|
885
|
-
var t = this.
|
|
886
|
-
this.
|
|
884
|
+
this.b9_1 = 9;
|
|
885
|
+
var t = this.d9_1;
|
|
886
|
+
this.t4q_1.b4r_1 = false;
|
|
887
887
|
throw t;
|
|
888
888
|
case 9:
|
|
889
|
-
this.
|
|
890
|
-
var t_0 = this.
|
|
891
|
-
this.
|
|
889
|
+
this.b9_1 = 12;
|
|
890
|
+
var t_0 = this.d9_1;
|
|
891
|
+
this.w4q_1.j1g(this.v4q_1);
|
|
892
892
|
throw t_0;
|
|
893
893
|
case 10:
|
|
894
894
|
var ARGUMENT_0 = suspendResult;
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
895
|
+
this.t4q_1.a4r_1 = ARGUMENT_0;
|
|
896
|
+
this.u4q_1 = this.t4q_1.a4r_1;
|
|
897
|
+
this.a9_1 = 11;
|
|
898
898
|
continue $sm;
|
|
899
899
|
case 11:
|
|
900
|
-
return this.
|
|
900
|
+
return this.u4q_1;
|
|
901
901
|
case 12:
|
|
902
|
-
throw this.
|
|
902
|
+
throw this.d9_1;
|
|
903
903
|
}
|
|
904
904
|
} catch ($p) {
|
|
905
905
|
var e = $p;
|
|
906
|
-
if (this.
|
|
906
|
+
if (this.b9_1 === 12) {
|
|
907
907
|
throw e;
|
|
908
908
|
} else {
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
909
|
+
this.a9_1 = this.b9_1;
|
|
910
|
+
this.d9_1 = e;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
while (true);
|
|
914
914
|
};
|
|
915
915
|
function $setTokenCOROUTINE$(_this__u8e3s4, block, resultContinuation) {
|
|
916
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
|
-
this.
|
|
918
|
-
this.
|
|
917
|
+
this.m4r_1 = _this__u8e3s4;
|
|
918
|
+
this.n4r_1 = block;
|
|
919
919
|
}
|
|
920
|
-
protoOf($setTokenCOROUTINE$).
|
|
921
|
-
var suspendResult = this.
|
|
920
|
+
protoOf($setTokenCOROUTINE$).i9 = function () {
|
|
921
|
+
var suspendResult = this.c9_1;
|
|
922
922
|
$sm: do
|
|
923
923
|
try {
|
|
924
|
-
var tmp = this.
|
|
924
|
+
var tmp = this.a9_1;
|
|
925
925
|
switch (tmp) {
|
|
926
926
|
case 0:
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
933
|
-
suspendResult = this.
|
|
927
|
+
this.b9_1 = 7;
|
|
928
|
+
this.s4r_1 = this.m4r_1.a4r_1;
|
|
929
|
+
this.r4r_1 = this.m4r_1.b4r_1;
|
|
930
|
+
this.p4r_1 = this.m4r_1.c4r_1;
|
|
931
|
+
this.o4r_1 = null;
|
|
932
|
+
this.a9_1 = 1;
|
|
933
|
+
suspendResult = this.p4r_1.x1g(this.o4r_1, this);
|
|
934
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
935
|
return suspendResult;
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
continue $sm;
|
|
939
939
|
case 1:
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
940
|
+
this.q4r_1 = Unit_instance;
|
|
941
|
+
this.a9_1 = 2;
|
|
942
942
|
continue $sm;
|
|
943
943
|
case 2:
|
|
944
|
-
this.
|
|
945
|
-
if (equals(this.
|
|
946
|
-
this.
|
|
947
|
-
var tmp_0 = this.
|
|
948
|
-
suspendResult = withContext(tmp_0, AuthTokenHolder$setToken$slambda_0(this.
|
|
944
|
+
this.b9_1 = 6;
|
|
945
|
+
if (equals(this.s4r_1, this.m4r_1.a4r_1) || this.r4r_1) {
|
|
946
|
+
this.a9_1 = 3;
|
|
947
|
+
var tmp_0 = this.g9().ch(this.m4r_1.d4r_1);
|
|
948
|
+
suspendResult = withContext(tmp_0, AuthTokenHolder$setToken$slambda_0(this.n4r_1, null), this);
|
|
949
949
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
950
950
|
return suspendResult;
|
|
951
951
|
}
|
|
952
952
|
continue $sm;
|
|
953
953
|
} else {
|
|
954
|
-
this.
|
|
954
|
+
this.a9_1 = 4;
|
|
955
955
|
continue $sm;
|
|
956
956
|
}
|
|
957
957
|
|
|
958
958
|
case 3:
|
|
959
959
|
var ARGUMENT = suspendResult;
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
960
|
+
this.m4r_1.a4r_1 = ARGUMENT;
|
|
961
|
+
this.a9_1 = 4;
|
|
962
962
|
continue $sm;
|
|
963
963
|
case 4:
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
964
|
+
this.q4r_1 = this.m4r_1.a4r_1;
|
|
965
|
+
this.b9_1 = 7;
|
|
966
|
+
this.a9_1 = 5;
|
|
967
967
|
continue $sm;
|
|
968
968
|
case 5:
|
|
969
|
-
var tmp_1 = this.
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
969
|
+
var tmp_1 = this.q4r_1;
|
|
970
|
+
this.b9_1 = 7;
|
|
971
|
+
this.p4r_1.j1g(this.o4r_1);
|
|
972
972
|
return tmp_1;
|
|
973
973
|
case 6:
|
|
974
|
-
this.
|
|
975
|
-
var t = this.
|
|
976
|
-
this.
|
|
974
|
+
this.b9_1 = 7;
|
|
975
|
+
var t = this.d9_1;
|
|
976
|
+
this.p4r_1.j1g(this.o4r_1);
|
|
977
977
|
throw t;
|
|
978
978
|
case 7:
|
|
979
|
-
throw this.
|
|
979
|
+
throw this.d9_1;
|
|
980
980
|
}
|
|
981
981
|
} catch ($p) {
|
|
982
982
|
var e = $p;
|
|
983
|
-
if (this.
|
|
983
|
+
if (this.b9_1 === 7) {
|
|
984
984
|
throw e;
|
|
985
985
|
} else {
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
986
|
+
this.a9_1 = this.b9_1;
|
|
987
|
+
this.d9_1 = e;
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
while (true);
|
|
991
991
|
};
|
|
992
992
|
function AuthTokenHolder(loadTokens) {
|
|
993
|
-
this.
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
993
|
+
this.z4q_1 = loadTokens;
|
|
994
|
+
this.a4r_1 = null;
|
|
995
|
+
this.b4r_1 = false;
|
|
996
|
+
this.c4r_1 = Mutex();
|
|
997
|
+
this.d4r_1 = new SetTokenContext();
|
|
998
998
|
}
|
|
999
|
-
protoOf(AuthTokenHolder).
|
|
999
|
+
protoOf(AuthTokenHolder).t4r = function ($completion) {
|
|
1000
1000
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
1001
|
-
tmp.
|
|
1002
|
-
tmp.
|
|
1003
|
-
return tmp.
|
|
1001
|
+
tmp.c9_1 = Unit_instance;
|
|
1002
|
+
tmp.d9_1 = null;
|
|
1003
|
+
return tmp.i9();
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(AuthTokenHolder).
|
|
1005
|
+
protoOf(AuthTokenHolder).u4r = function (block, $completion) {
|
|
1006
1006
|
var tmp = new $setTokenCOROUTINE$(this, block, $completion);
|
|
1007
|
-
tmp.
|
|
1008
|
-
tmp.
|
|
1009
|
-
return tmp.
|
|
1007
|
+
tmp.c9_1 = Unit_instance;
|
|
1008
|
+
tmp.d9_1 = null;
|
|
1009
|
+
return tmp.i9();
|
|
1010
1010
|
};
|
|
1011
1011
|
function bearer(_this__u8e3s4, block) {
|
|
1012
1012
|
// Inline function 'kotlin.apply' call
|
|
1013
1013
|
var this_0 = new BearerAuthConfig();
|
|
1014
1014
|
block(this_0);
|
|
1015
1015
|
// Inline function 'kotlin.with' call
|
|
1016
|
-
_this__u8e3s4.
|
|
1016
|
+
_this__u8e3s4.g4n_1.j1(new BearerAuthProvider(this_0.v4r_1, this_0.w4r_1, this_0.x4r_1, this_0.y4r_1));
|
|
1017
1017
|
}
|
|
1018
1018
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1019
1019
|
CoroutineImpl.call(this, resultContinuation);
|
|
1020
1020
|
}
|
|
1021
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1022
|
-
var tmp = this.
|
|
1023
|
-
tmp.
|
|
1024
|
-
tmp.
|
|
1025
|
-
return tmp.
|
|
1021
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).i4s = function (_this__u8e3s4, $completion) {
|
|
1022
|
+
var tmp = this.j4s(_this__u8e3s4, $completion);
|
|
1023
|
+
tmp.c9_1 = Unit_instance;
|
|
1024
|
+
tmp.d9_1 = null;
|
|
1025
|
+
return tmp.i9();
|
|
1026
1026
|
};
|
|
1027
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1028
|
-
return this.
|
|
1027
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).u9 = function (p1, $completion) {
|
|
1028
|
+
return this.i4s(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1029
1029
|
};
|
|
1030
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1031
|
-
var suspendResult = this.
|
|
1030
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).i9 = function () {
|
|
1031
|
+
var suspendResult = this.c9_1;
|
|
1032
1032
|
$sm: do
|
|
1033
1033
|
try {
|
|
1034
|
-
var tmp = this.
|
|
1034
|
+
var tmp = this.a9_1;
|
|
1035
1035
|
if (tmp === 0) {
|
|
1036
|
-
this.
|
|
1036
|
+
this.b9_1 = 1;
|
|
1037
1037
|
return null;
|
|
1038
1038
|
} else if (tmp === 1) {
|
|
1039
|
-
throw this.
|
|
1039
|
+
throw this.d9_1;
|
|
1040
1040
|
}
|
|
1041
1041
|
} catch ($p) {
|
|
1042
1042
|
var e = $p;
|
|
@@ -1044,15 +1044,15 @@
|
|
|
1044
1044
|
}
|
|
1045
1045
|
while (true);
|
|
1046
1046
|
};
|
|
1047
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1047
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).j4s = function (_this__u8e3s4, completion) {
|
|
1048
1048
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1049
|
-
i.
|
|
1049
|
+
i.h4s_1 = _this__u8e3s4;
|
|
1050
1050
|
return i;
|
|
1051
1051
|
};
|
|
1052
1052
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1053
1053
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1054
1054
|
var l = function (_this__u8e3s4, $completion) {
|
|
1055
|
-
return i.
|
|
1055
|
+
return i.i4s(_this__u8e3s4, $completion);
|
|
1056
1056
|
};
|
|
1057
1057
|
l.$arity = 1;
|
|
1058
1058
|
return l;
|
|
@@ -1060,25 +1060,25 @@
|
|
|
1060
1060
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1061
1061
|
CoroutineImpl.call(this, resultContinuation);
|
|
1062
1062
|
}
|
|
1063
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1064
|
-
var tmp = this.
|
|
1065
|
-
tmp.
|
|
1066
|
-
tmp.
|
|
1067
|
-
return tmp.
|
|
1063
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).s4s = function ($completion) {
|
|
1064
|
+
var tmp = this.t4s($completion);
|
|
1065
|
+
tmp.c9_1 = Unit_instance;
|
|
1066
|
+
tmp.d9_1 = null;
|
|
1067
|
+
return tmp.i9();
|
|
1068
1068
|
};
|
|
1069
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1070
|
-
return this.
|
|
1069
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).ra = function ($completion) {
|
|
1070
|
+
return this.s4s($completion);
|
|
1071
1071
|
};
|
|
1072
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1073
|
-
var suspendResult = this.
|
|
1072
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).i9 = function () {
|
|
1073
|
+
var suspendResult = this.c9_1;
|
|
1074
1074
|
$sm: do
|
|
1075
1075
|
try {
|
|
1076
|
-
var tmp = this.
|
|
1076
|
+
var tmp = this.a9_1;
|
|
1077
1077
|
if (tmp === 0) {
|
|
1078
|
-
this.
|
|
1078
|
+
this.b9_1 = 1;
|
|
1079
1079
|
return null;
|
|
1080
1080
|
} else if (tmp === 1) {
|
|
1081
|
-
throw this.
|
|
1081
|
+
throw this.d9_1;
|
|
1082
1082
|
}
|
|
1083
1083
|
} catch ($p) {
|
|
1084
1084
|
var e = $p;
|
|
@@ -1086,13 +1086,13 @@
|
|
|
1086
1086
|
}
|
|
1087
1087
|
while (true);
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1089
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).t4s = function (completion) {
|
|
1090
1090
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1091
1091
|
};
|
|
1092
1092
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1093
1093
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1094
1094
|
var l = function ($completion) {
|
|
1095
|
-
return i.
|
|
1095
|
+
return i.s4s($completion);
|
|
1096
1096
|
};
|
|
1097
1097
|
l.$arity = 0;
|
|
1098
1098
|
return l;
|
|
@@ -1102,73 +1102,73 @@
|
|
|
1102
1102
|
}
|
|
1103
1103
|
function BearerAuthConfig() {
|
|
1104
1104
|
var tmp = this;
|
|
1105
|
-
tmp.
|
|
1105
|
+
tmp.v4r_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1106
1106
|
var tmp_0 = this;
|
|
1107
|
-
tmp_0.
|
|
1107
|
+
tmp_0.w4r_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1108
1108
|
var tmp_1 = this;
|
|
1109
|
-
tmp_1.
|
|
1110
|
-
this.
|
|
1109
|
+
tmp_1.x4r_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1110
|
+
this.y4r_1 = null;
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(BearerAuthConfig).
|
|
1113
|
-
this.
|
|
1112
|
+
protoOf(BearerAuthConfig).u4s = function (block) {
|
|
1113
|
+
this.v4r_1 = block;
|
|
1114
1114
|
};
|
|
1115
1115
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1116
|
-
this.
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1116
|
+
this.v4s_1 = client;
|
|
1117
|
+
this.w4s_1 = response;
|
|
1118
|
+
this.x4s_1 = oldTokens;
|
|
1119
1119
|
}
|
|
1120
|
-
protoOf(RefreshTokensParams).
|
|
1121
|
-
_this__u8e3s4.
|
|
1120
|
+
protoOf(RefreshTokensParams).y4s = function (_this__u8e3s4) {
|
|
1121
|
+
_this__u8e3s4.c3f_1.o2h(get_AuthCircuitBreaker(), Unit_instance);
|
|
1122
1122
|
};
|
|
1123
1123
|
function BearerTokens(accessToken, refreshToken) {
|
|
1124
|
-
this.
|
|
1125
|
-
this.
|
|
1124
|
+
this.z4s_1 = accessToken;
|
|
1125
|
+
this.a4t_1 = refreshToken;
|
|
1126
1126
|
}
|
|
1127
1127
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1128
1128
|
return true;
|
|
1129
1129
|
}
|
|
1130
1130
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1131
1131
|
return function ($this$headers) {
|
|
1132
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1132
|
+
var tokenValue = 'Bearer ' + $token.z4s_1;
|
|
1133
1133
|
var tmp;
|
|
1134
|
-
if ($this$headers.
|
|
1135
|
-
$this$headers.
|
|
1134
|
+
if ($this$headers.k2l(HttpHeaders_getInstance().g2t_1)) {
|
|
1135
|
+
$this$headers.z2l(HttpHeaders_getInstance().g2t_1);
|
|
1136
1136
|
tmp = Unit_instance;
|
|
1137
1137
|
}
|
|
1138
1138
|
var tmp_0;
|
|
1139
|
-
if (!$request.
|
|
1140
|
-
$this$headers.
|
|
1139
|
+
if (!$request.c3f_1.n2h(get_AuthCircuitBreaker())) {
|
|
1140
|
+
$this$headers.l2l(HttpHeaders_getInstance().g2t_1, tokenValue);
|
|
1141
1141
|
tmp_0 = Unit_instance;
|
|
1142
1142
|
}
|
|
1143
1143
|
return Unit_instance;
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1147
|
+
this.j4t_1 = this$0;
|
|
1148
|
+
this.k4t_1 = $response;
|
|
1149
1149
|
CoroutineImpl.call(this, resultContinuation);
|
|
1150
1150
|
}
|
|
1151
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1152
|
-
var tmp = this.
|
|
1153
|
-
tmp.
|
|
1154
|
-
tmp.
|
|
1155
|
-
return tmp.
|
|
1151
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).n4t = function ($completion) {
|
|
1152
|
+
var tmp = this.t4s($completion);
|
|
1153
|
+
tmp.c9_1 = Unit_instance;
|
|
1154
|
+
tmp.d9_1 = null;
|
|
1155
|
+
return tmp.i9();
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1158
|
-
return this.
|
|
1157
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).ra = function ($completion) {
|
|
1158
|
+
return this.n4t($completion);
|
|
1159
1159
|
};
|
|
1160
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1161
|
-
var suspendResult = this.
|
|
1160
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).i9 = function () {
|
|
1161
|
+
var suspendResult = this.c9_1;
|
|
1162
1162
|
$sm: do
|
|
1163
1163
|
try {
|
|
1164
|
-
var tmp = this.
|
|
1164
|
+
var tmp = this.a9_1;
|
|
1165
1165
|
switch (tmp) {
|
|
1166
1166
|
case 0:
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1171
|
-
suspendResult = this.
|
|
1167
|
+
this.b9_1 = 3;
|
|
1168
|
+
this.l4t_1 = this.j4t_1.o4t_1;
|
|
1169
|
+
this.m4t_1 = this.k4t_1.m3g().s3d_1;
|
|
1170
|
+
this.a9_1 = 1;
|
|
1171
|
+
suspendResult = this.j4t_1.r4t_1.t4r(this);
|
|
1172
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1173
1173
|
return suspendResult;
|
|
1174
1174
|
}
|
|
@@ -1176,9 +1176,9 @@
|
|
|
1176
1176
|
continue $sm;
|
|
1177
1177
|
case 1:
|
|
1178
1178
|
var ARGUMENT = suspendResult;
|
|
1179
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1180
|
-
this.
|
|
1181
|
-
suspendResult = this.
|
|
1179
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.m4t_1, this.k4t_1, ARGUMENT);
|
|
1180
|
+
this.a9_1 = 2;
|
|
1181
|
+
suspendResult = this.l4t_1(ARGUMENT_0, this);
|
|
1182
1182
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1183
1183
|
return suspendResult;
|
|
1184
1184
|
}
|
|
@@ -1187,46 +1187,46 @@
|
|
|
1187
1187
|
case 2:
|
|
1188
1188
|
return suspendResult;
|
|
1189
1189
|
case 3:
|
|
1190
|
-
throw this.
|
|
1190
|
+
throw this.d9_1;
|
|
1191
1191
|
}
|
|
1192
1192
|
} catch ($p) {
|
|
1193
1193
|
var e = $p;
|
|
1194
|
-
if (this.
|
|
1194
|
+
if (this.b9_1 === 3) {
|
|
1195
1195
|
throw e;
|
|
1196
1196
|
} else {
|
|
1197
|
-
this.
|
|
1198
|
-
this.
|
|
1197
|
+
this.a9_1 = this.b9_1;
|
|
1198
|
+
this.d9_1 = e;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
while (true);
|
|
1202
1202
|
};
|
|
1203
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1204
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1203
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).t4s = function (completion) {
|
|
1204
|
+
return new BearerAuthProvider$refreshToken$slambda(this.j4t_1, this.k4t_1, completion);
|
|
1205
1205
|
};
|
|
1206
1206
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1207
1207
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1208
1208
|
var l = function ($completion) {
|
|
1209
|
-
return i.
|
|
1209
|
+
return i.n4t($completion);
|
|
1210
1210
|
};
|
|
1211
1211
|
l.$arity = 0;
|
|
1212
1212
|
return l;
|
|
1213
1213
|
}
|
|
1214
1214
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1215
1215
|
CoroutineImpl.call(this, resultContinuation);
|
|
1216
|
-
this.
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1216
|
+
this.a4u_1 = _this__u8e3s4;
|
|
1217
|
+
this.b4u_1 = request;
|
|
1218
|
+
this.c4u_1 = authHeader;
|
|
1219
1219
|
}
|
|
1220
|
-
protoOf($addRequestHeadersCOROUTINE$).
|
|
1221
|
-
var suspendResult = this.
|
|
1220
|
+
protoOf($addRequestHeadersCOROUTINE$).i9 = function () {
|
|
1221
|
+
var suspendResult = this.c9_1;
|
|
1222
1222
|
$sm: do
|
|
1223
1223
|
try {
|
|
1224
|
-
var tmp = this.
|
|
1224
|
+
var tmp = this.a9_1;
|
|
1225
1225
|
switch (tmp) {
|
|
1226
1226
|
case 0:
|
|
1227
|
-
this.
|
|
1228
|
-
this.
|
|
1229
|
-
suspendResult = this.
|
|
1227
|
+
this.b9_1 = 2;
|
|
1228
|
+
this.a9_1 = 1;
|
|
1229
|
+
suspendResult = this.a4u_1.r4t_1.t4r(this);
|
|
1230
1230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1231
1231
|
return suspendResult;
|
|
1232
1232
|
}
|
|
@@ -1242,37 +1242,37 @@
|
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
var token = tmp_0;
|
|
1245
|
-
headers(this.
|
|
1245
|
+
headers(this.b4u_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.b4u_1));
|
|
1246
1246
|
return Unit_instance;
|
|
1247
1247
|
case 2:
|
|
1248
|
-
throw this.
|
|
1248
|
+
throw this.d9_1;
|
|
1249
1249
|
}
|
|
1250
1250
|
} catch ($p) {
|
|
1251
1251
|
var e = $p;
|
|
1252
|
-
if (this.
|
|
1252
|
+
if (this.b9_1 === 2) {
|
|
1253
1253
|
throw e;
|
|
1254
1254
|
} else {
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1255
|
+
this.a9_1 = this.b9_1;
|
|
1256
|
+
this.d9_1 = e;
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
while (true);
|
|
1260
1260
|
};
|
|
1261
1261
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1262
1262
|
CoroutineImpl.call(this, resultContinuation);
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1263
|
+
this.l4u_1 = _this__u8e3s4;
|
|
1264
|
+
this.m4u_1 = response;
|
|
1265
1265
|
}
|
|
1266
|
-
protoOf($refreshTokenCOROUTINE$).
|
|
1267
|
-
var suspendResult = this.
|
|
1266
|
+
protoOf($refreshTokenCOROUTINE$).i9 = function () {
|
|
1267
|
+
var suspendResult = this.c9_1;
|
|
1268
1268
|
$sm: do
|
|
1269
1269
|
try {
|
|
1270
|
-
var tmp = this.
|
|
1270
|
+
var tmp = this.a9_1;
|
|
1271
1271
|
switch (tmp) {
|
|
1272
1272
|
case 0:
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1275
|
-
suspendResult = this.
|
|
1273
|
+
this.b9_1 = 2;
|
|
1274
|
+
this.a9_1 = 1;
|
|
1275
|
+
suspendResult = this.l4u_1.r4t_1.u4r(BearerAuthProvider$refreshToken$slambda_0(this.l4u_1, this.m4u_1, null), this);
|
|
1276
1276
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1277
1277
|
return suspendResult;
|
|
1278
1278
|
}
|
|
@@ -1282,15 +1282,15 @@
|
|
|
1282
1282
|
var newToken = suspendResult;
|
|
1283
1283
|
return !(newToken == null);
|
|
1284
1284
|
case 2:
|
|
1285
|
-
throw this.
|
|
1285
|
+
throw this.d9_1;
|
|
1286
1286
|
}
|
|
1287
1287
|
} catch ($p) {
|
|
1288
1288
|
var e = $p;
|
|
1289
|
-
if (this.
|
|
1289
|
+
if (this.b9_1 === 2) {
|
|
1290
1290
|
throw e;
|
|
1291
1291
|
} else {
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1292
|
+
this.a9_1 = this.b9_1;
|
|
1293
|
+
this.d9_1 = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
while (true);
|
|
@@ -1303,57 +1303,57 @@
|
|
|
1303
1303
|
tmp = sendWithoutRequestCallback;
|
|
1304
1304
|
}
|
|
1305
1305
|
sendWithoutRequestCallback = tmp;
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1306
|
+
this.o4t_1 = refreshTokens;
|
|
1307
|
+
this.p4t_1 = sendWithoutRequestCallback;
|
|
1308
|
+
this.q4t_1 = realm;
|
|
1309
|
+
this.r4t_1 = new AuthTokenHolder(loadTokens);
|
|
1310
1310
|
}
|
|
1311
|
-
protoOf(BearerAuthProvider).
|
|
1311
|
+
protoOf(BearerAuthProvider).z4p = function () {
|
|
1312
1312
|
var message = 'Deprecated';
|
|
1313
1313
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1314
1314
|
};
|
|
1315
|
-
protoOf(BearerAuthProvider).
|
|
1316
|
-
return this.
|
|
1315
|
+
protoOf(BearerAuthProvider).c4p = function (request) {
|
|
1316
|
+
return this.p4t_1(request);
|
|
1317
1317
|
};
|
|
1318
|
-
protoOf(BearerAuthProvider).
|
|
1319
|
-
if (!(auth.
|
|
1320
|
-
get_LOGGER().
|
|
1318
|
+
protoOf(BearerAuthProvider).j4n = function (auth) {
|
|
1319
|
+
if (!(auth.o32_1 === 'Bearer')) {
|
|
1320
|
+
get_LOGGER().f2q('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1321
1321
|
return false;
|
|
1322
1322
|
}
|
|
1323
1323
|
var tmp;
|
|
1324
|
-
if (this.
|
|
1324
|
+
if (this.q4t_1 == null) {
|
|
1325
1325
|
tmp = true;
|
|
1326
1326
|
} else {
|
|
1327
1327
|
if (!(auth instanceof Parameterized)) {
|
|
1328
1328
|
tmp = false;
|
|
1329
1329
|
} else {
|
|
1330
|
-
tmp = auth.
|
|
1330
|
+
tmp = auth.s2s('realm') == this.q4t_1;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
var isSameRealm = tmp;
|
|
1334
1334
|
if (!isSameRealm) {
|
|
1335
|
-
get_LOGGER().
|
|
1335
|
+
get_LOGGER().f2q('Bearer Auth Provider is not applicable for this realm');
|
|
1336
1336
|
}
|
|
1337
1337
|
return isSameRealm;
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(BearerAuthProvider).
|
|
1339
|
+
protoOf(BearerAuthProvider).y4p = function (request, authHeader, $completion) {
|
|
1340
1340
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1341
|
-
tmp.
|
|
1342
|
-
tmp.
|
|
1343
|
-
return tmp.
|
|
1341
|
+
tmp.c9_1 = Unit_instance;
|
|
1342
|
+
tmp.d9_1 = null;
|
|
1343
|
+
return tmp.i9();
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf(BearerAuthProvider).
|
|
1345
|
+
protoOf(BearerAuthProvider).x4p = function (response, $completion) {
|
|
1346
1346
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1347
|
-
tmp.
|
|
1348
|
-
tmp.
|
|
1349
|
-
return tmp.
|
|
1347
|
+
tmp.c9_1 = Unit_instance;
|
|
1348
|
+
tmp.d9_1 = null;
|
|
1349
|
+
return tmp.i9();
|
|
1350
1350
|
};
|
|
1351
1351
|
//region block: post-declaration
|
|
1352
|
-
protoOf(SetTokenContext).
|
|
1353
|
-
protoOf(SetTokenContext).
|
|
1354
|
-
protoOf(SetTokenContext).
|
|
1355
|
-
protoOf(SetTokenContext).
|
|
1356
|
-
protoOf(BearerAuthProvider).
|
|
1352
|
+
protoOf(SetTokenContext).n9 = get;
|
|
1353
|
+
protoOf(SetTokenContext).bh = fold;
|
|
1354
|
+
protoOf(SetTokenContext).ah = minusKey;
|
|
1355
|
+
protoOf(SetTokenContext).ch = plus;
|
|
1356
|
+
protoOf(BearerAuthProvider).d4p = addRequestHeaders$default;
|
|
1357
1357
|
//endregion
|
|
1358
1358
|
//region block: init
|
|
1359
1359
|
Companion_instance = new Companion();
|