TF-607 Implement logoutOidc action when user click signOut
This commit is contained in:
@@ -23,5 +23,5 @@ abstract class AuthenticationOIDCRepository {
|
||||
List<String> scopes,
|
||||
String refreshToken);
|
||||
|
||||
Future<void> logout(TokenId tokenId, OIDCConfiguration config);
|
||||
Future<bool> logout(TokenId tokenId, OIDCConfiguration config);
|
||||
}
|
||||
@@ -24,6 +24,7 @@ class GetAuthenticatedAccountInteractor {
|
||||
try {
|
||||
yield Right<Failure, Success>(LoadingState());
|
||||
final account = await _accountRepository.getCurrentAccount();
|
||||
log('GetAuthenticatedAccountInteractor::execute(): account: $account');
|
||||
yield Right(GetAuthenticatedAccountSuccess(account));
|
||||
if (account.authenticationType == AuthenticationType.oidc) {
|
||||
yield* _getStoredTokenOidcInteractor.execute(account.id);
|
||||
|
||||
@@ -18,6 +18,7 @@ class GetStoredTokenOidcInteractor {
|
||||
|
||||
Stream<Either<Failure, Success>> execute(String tokenIdHash) async* {
|
||||
try {
|
||||
log('GetStoredTokenOidcInteractor::execute(): tokenIdHash: $tokenIdHash');
|
||||
yield Right<Failure, Success>(LoadingState());
|
||||
final futureValue = await Future.wait([
|
||||
_credentialRepository.getBaseUrl(),
|
||||
|
||||
Reference in New Issue
Block a user