TF-607 Add logout method for AuthenticationOidcRepository
This commit is contained in:
@@ -22,4 +22,6 @@ abstract class AuthenticationOIDCDataSource {
|
||||
String discoveryUrl,
|
||||
List<String> scopes,
|
||||
String refreshToken);
|
||||
|
||||
Future<void> logout(TokenId tokenId, OIDCConfiguration config);
|
||||
}
|
||||
@@ -69,4 +69,9 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
|
||||
return _oidcHttpClient.refreshingTokensOIDC(
|
||||
clientId, redirectUrl, discoveryUrl, scopes, refreshToken);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> logout(TokenId tokenId, OIDCConfiguration config) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:model/oidc/oidc_configuration.dart';
|
||||
import 'package:model/oidc/request/oidc_request.dart';
|
||||
import 'package:model/oidc/response/oidc_response.dart';
|
||||
import 'package:model/oidc/token_id.dart';
|
||||
import 'package:model/oidc/token_oidc.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/datasource/authentication_oidc_datasource.dart';
|
||||
import 'package:tmail_ui_user/features/login/domain/repository/authentication_oidc_repository.dart';
|
||||
@@ -60,4 +61,9 @@ class AuthenticationOIDCRepositoryImpl extends AuthenticationOIDCRepository {
|
||||
scopes,
|
||||
refreshToken);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> logout(TokenId tokenId, OIDCConfiguration config) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
@@ -22,4 +22,6 @@ abstract class AuthenticationOIDCRepository {
|
||||
String discoveryUrl,
|
||||
List<String> scopes,
|
||||
String refreshToken);
|
||||
|
||||
Future<void> logout(TokenId tokenId, OIDCConfiguration config);
|
||||
}
|
||||
Reference in New Issue
Block a user