[HOT-FIX] Webfinger is recalled many times

(cherry picked from commit 1873e0f199c29965543a7504f30308e0024c725c)
This commit is contained in:
dab246
2023-06-29 16:45:29 +07:00
committed by Dat Vu
parent 7c1f8cc2c7
commit bc8a03cbce
5 changed files with 75 additions and 69 deletions
@@ -143,6 +143,17 @@ class AuthorizationInterceptors extends InterceptorsWrapper {
String _getTokenAsBearerHeader(String token) => 'Bearer $token';
bool get isAppRunning {
switch(_authenticationType) {
case AuthenticationType.basic:
return _authorization != null;
case AuthenticationType.oidc:
return _configOIDC != null && _token != null;
case AuthenticationType.none:
return false;
}
}
void clear() {
_authorization = null;
_token = null;