TF-886 Implement GetAuthenticationInfo stored in repository and datasource
This commit is contained in:
@@ -46,10 +46,7 @@ class DownloadAttachmentForWebInteractor {
|
||||
if (currentAccount.authenticationType == AuthenticationType.oidc)
|
||||
_authenticationOIDCRepository.getStoredTokenOIDC(currentAccount.id)
|
||||
else
|
||||
...[
|
||||
credentialRepository.getUserName(),
|
||||
credentialRepository.getPassword()
|
||||
]
|
||||
credentialRepository.getAuthenticationInfoStored()
|
||||
], eagerError: true).then((List responses) async {
|
||||
AccountRequest accountRequest;
|
||||
|
||||
|
||||
@@ -40,10 +40,7 @@ class DownloadAttachmentsInteractor {
|
||||
if (account.authenticationType == AuthenticationType.oidc)
|
||||
_authenticationOIDCRepository.getStoredTokenOIDC(account.id)
|
||||
else
|
||||
...[
|
||||
credentialRepository.getUserName(),
|
||||
credentialRepository.getPassword()
|
||||
]
|
||||
credentialRepository.getAuthenticationInfoStored()
|
||||
], eagerError: true
|
||||
).then((List responses) async {
|
||||
AccountRequest accountRequest;
|
||||
|
||||
@@ -39,10 +39,7 @@ class ExportAttachmentInteractor {
|
||||
if (account.authenticationType == AuthenticationType.oidc)
|
||||
_authenticationOIDCRepository.getStoredTokenOIDC(account.id)
|
||||
else
|
||||
...[
|
||||
credentialRepository.getUserName(),
|
||||
credentialRepository.getPassword()
|
||||
]
|
||||
credentialRepository.getAuthenticationInfoStored()
|
||||
], eagerError: true
|
||||
).then((List responses) async {
|
||||
AccountRequest accountRequest;
|
||||
|
||||
Reference in New Issue
Block a user