Skip to content

Commit

Permalink
deploy: f1565c8
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Jul 17, 2023
1 parent 2bf2934 commit bd34b7e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion 2034/assets/env.file
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SERVER_URL=https://gateway.upn.integration-open-paas.org/
DOMAIN_REDIRECT_URL=https://linagora.github.io/tmail-flutter/2034
WEB_OIDC_CLIENT_ID=teammail-web
OIDC_SCOPES=openid,profile,email
OIDC_SCOPES=openid,profile,email,offline_access
APP_GRID_AVAILABLE=supported
FCM_AVAILABLE=supported
IOS_FCM=supported
8 changes: 4 additions & 4 deletions 2034/flutter_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {
"main.dart.js_18.part.js": "a54a840079a5706b39458f9d29bbe048",
"index.html": "ab68d2c290f4c2930753769d7a9c4612",
"/": "ab68d2c290f4c2930753769d7a9c4612",
"index.html": "b7ca67f1a0df5eb1054ebc4cf16cb371",
"/": "b7ca67f1a0df5eb1054ebc4cf16cb371",
"main.dart.js_2.part.js": "3932255ab53ecb02c05f2098bad477a7",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"main.dart.js_4.part.js": "1fcbe6e13a28bddd18235cbdc675e8a9",
"main.dart.js_13.part.js": "61bef5ae41e50ba74b24655275a2bdd7",
"main.dart.js_12.part.js": "6669258c0eac8670e54f876e5a6c98bc",
"favicon.svg": "836063f2415781870f72c38e4f983e6f",
"main.dart.js": "cc8bf5a9063a73f595874dcf290afd77",
"main.dart.js": "361aab57dd8c1edec763da7e6d086b39",
"version.json": "8f70c113a11ceaf9ceea198aeaa319ea",
"main.dart.js_3.part.js": "19106e5291ce838468621e315a5025df",
"canvaskit/profiling/canvaskit.js": "c21852696bc1cc82e8894d851c01921a",
Expand All @@ -27,7 +27,7 @@ const RESOURCES = {
"main.dart.js_15.part.js": "f86d05c97fdf33cf246f43fb0237e425",
"assets/fonts/MaterialIcons-Regular.otf": "e7069dfd19b331be16bed984668fe080",
"assets/AssetManifest.json": "abe644a74961b76294d2ea34d1911164",
"assets/env.file": "e0100e6ff421325119e68ee31858c8f0",
"assets/env.file": "adf31a5472a8125bdaa9d777c857f045",
"assets/NOTICES": "386ee2a5befa05bd552de009e4bf8b8d",
"assets/FontManifest.json": "4dfd5e5693c0331263a39042fc45fa43",
"assets/packages/html_editor_enhanced/assets/summernote.html": "0a4697b4b9d3eba6074a152e66b83aaf",
Expand Down
2 changes: 1 addition & 1 deletion 2034/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '370115060';
var serviceWorkerVersion = '2415708049';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {
Expand Down
61 changes: 34 additions & 27 deletions 2034/main.dart.js
Original file line number Diff line number Diff line change
Expand Up @@ -308105,7 +308105,7 @@ self.$__dart_deferred_initializers__ = self.$__dart_deferred_initializers__ || O
onError$body$AuthorizationInterceptors(_, err, handler) {
var $async$goto = 0,
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
$async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, newToken, accountCurrent, response, e, t1, t2, t3, exception, requestOptions, $async$exception;
$async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, newToken, accountCurrent, requestOptions, response, e, t1, t2, exception, $async$exception;
var $async$onError$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
if ($async$errorCode === 1) {
$async$currentError = $async$result;
Expand All @@ -308115,22 +308115,25 @@ self.$__dart_deferred_initializers__ = self.$__dart_deferred_initializers__ || O
switch ($async$goto) {
case 0:
// Function start
requestOptions = err.requestOptions;
A.log("AuthorizationInterceptors::onError(): " + err.toString$0(0));
$async$handler = 4;
if ($async$self._authorization_interceptors$_isTokenExpired$0()) {
t1 = err.response;
if (t1 == null || t1.statusCode === 401) {
if (t1 != null)
t1 = t1.statusCode === 401;
else
t1 = true;
if (t1) {
t1 = $async$self._token;
t1 = t1 != null && t1.refreshToken.length !== 0 && $async$self._isAuthenticationOidcValid$0();
} else
t1 = false;
} else
t1 = false;
$async$goto = t1 ? 3 : 5;
$async$goto = t1 ? 7 : 9;
break;
case 3:
case 7:
// then
$async$handler = 7;
t1 = $async$self._configOIDC;
$async$goto = 10;
return A._asyncAwait($async$self._authorization_interceptors$_authenticationClient.refreshingTokensOIDC$5(t1.clientId, A.OidcConfigurationExtensions_get_redirectUrl(t1), $async$self._configOIDC.get$discoveryUrl(), $async$self._configOIDC.scopes, $async$self._token.refreshToken), $async$onError$2);
Expand All @@ -308143,58 +308146,62 @@ self.$__dart_deferred_initializers__ = self.$__dart_deferred_initializers__ || O
case 11:
// returning from await.
accountCurrent = $async$result;
t2 = $async$self._authorization_interceptors$_tokenOidcCacheManager.persistOneTokenOidc$1(newToken);
t3 = B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode($async$self._token.tokenId.uuid));
A.log("AccountCacheManager::deleteSelectedAccount(): " + t3);
t2 = B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode($async$self._token.tokenId.uuid));
A.log("AccountCacheManager::deleteSelectedAccount(): " + t2);
$async$goto = 12;
return A._asyncAwait(A.Future_wait(A._setArrayType([t2, t1._account_cache_manager$_accountCacheClient.deleteItem$1(t3), t1.setSelectedAccount$1(new A.PersonalAccount(B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode(newToken.tokenId.uuid)), B.AuthenticationType_1, true, accountCurrent.accountId, accountCurrent.apiUrl, accountCurrent.userName))], type$.JSArray_Future_void), false, type$.void), $async$onError$2);
return A._asyncAwait(t1._account_cache_manager$_accountCacheClient.deleteItem$1(t2), $async$onError$2);
case 12:
// returning from await.
$async$goto = 13;
return A._asyncAwait(A.Future_wait(A._setArrayType([$async$self._authorization_interceptors$_tokenOidcCacheManager.persistOneTokenOidc$1(newToken), t1.setSelectedAccount$1(new A.PersonalAccount(B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode(newToken.tokenId.uuid)), B.AuthenticationType_1, true, accountCurrent.accountId, accountCurrent.apiUrl, accountCurrent.userName))], type$.JSArray_Future_void), false, type$.void), $async$onError$2);
case 13:
// returning from await.
A.log("AuthorizationInterceptors::onError(): refreshToken: " + A.S(newToken));
A.log("AuthorizationInterceptors::setToken(): refreshTokenId: " + B.JSInt_methods.toString$0(B.JSString_methods.get$hashCode(newToken.tokenId.uuid)));
$async$self._token = A.TokenOIDCExtension_toToken(newToken);
requestOptions = err.requestOptions;
t1 = requestOptions.___RequestConfig__headers_A;
t1 === $ && A.throwUnnamedLateFieldNI();
t1.$indexSet(0, "authorization", "Bearer " + newToken.token);
$async$goto = 13;
$async$goto = 14;
return A._asyncAwait($async$self._authorization_interceptors$_dio.fetch$1$1(0, requestOptions, type$.dynamic), $async$onError$2);
case 13:
case 14:
// returning from await.
response = $async$result;
handler._dio_mixin$_completer.complete$1(0, new A.InterceptorState(response, B.InterceptorResultType_1, type$.InterceptorState_Response_dynamic));
$async$returnValue = null;
// goto return
$async$goto = 1;
break;
// goto join
$async$goto = 8;
break;
case 9:
// else
$async$self.super$_InterceptorWrapperMixin$onError(0, err, handler);
case 8:
// join
$async$handler = 2;
// goto after finally
$async$goto = 9;
$async$goto = 6;
break;
case 7:
case 4:
// catch
$async$handler = 6;
$async$handler = 3;
$async$exception = $async$currentError;
e = A.unwrapException($async$exception);
A.log("AuthorizationInterceptors::onError(): " + A.S(e));
A.log("AuthorizationInterceptors::onError():Exception: " + A.S(e));
$async$self.super$_InterceptorWrapperMixin$onError(0, err, handler);
// goto after finally
$async$goto = 9;
$async$goto = 6;
break;
case 6:
case 3:
// uncaught
// goto rethrow
$async$goto = 2;
break;
case 9:
case 6:
// after finally
// goto join
$async$goto = 4;
break;
case 5:
// else
$async$self.super$_InterceptorWrapperMixin$onError(0, err, handler);
case 4:
// join
case 1:
// return
return A._asyncReturn($async$returnValue, $async$completer);
Expand Down

0 comments on commit bd34b7e

Please sign in to comment.