TF-605 Use bearer token download attachment on Android

This commit is contained in:
dab246
2022-06-02 17:37:39 +07:00
committed by Dat H. Pham
parent 69b2dbf3cf
commit ba49d7699a
16 changed files with 243 additions and 14 deletions
@@ -62,4 +62,11 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
Future<void> persistAuthorityOidc(String authority) {
return _oidcConfigurationCacheManager.persistAuthorityOidc(authority);
}
@override
Future<TokenOIDC> refreshingTokensOIDC(String clientId, String redirectUrl,
String discoveryUrl, List<String> scopes, String refreshToken) {
return _oidcHttpClient.refreshingTokensOIDC(
clientId, redirectUrl, discoveryUrl, scopes, refreshToken);
}
}
@@ -19,4 +19,9 @@ class HiveAccountDatasourceImpl extends AccountDatasource {
log('HiveAccountDatasourceImpl::setCurrentAccount(): $_accountCacheManager');
return _accountCacheManager.setSelectedAccount(newCurrentAccount);
}
@override
Future<void> deleteCurrentAccount(String accountId) {
return _accountCacheManager.deleteSelectedAccount(accountId);
}
}