TF-1074 Handle go to path /login
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class AuthenticateOidcOnBrowserLoading extends LoadingState {
|
||||
|
||||
AuthenticateOidcOnBrowserLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class AuthenticateOidcOnBrowserSuccess extends UIState {
|
||||
|
||||
AuthenticateOidcOnBrowserSuccess();
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class AuthenticationUserViewState extends UIState {
|
||||
class AuthenticationUserLoading extends LoadingState {
|
||||
AuthenticationUserLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class AuthenticationUserSuccess extends UIState {
|
||||
final UserProfile userProfile;
|
||||
|
||||
AuthenticationUserViewState(this.userProfile);
|
||||
AuthenticationUserSuccess(this.userProfile);
|
||||
|
||||
@override
|
||||
List<Object> get props => [userProfile];
|
||||
}
|
||||
|
||||
class AuthenticationUserFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
AuthenticationUserFailure(this.exception);
|
||||
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/response/oidc_response.dart';
|
||||
|
||||
class CheckOIDCIsAvailableLoading extends LoadingState {
|
||||
|
||||
CheckOIDCIsAvailableLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class CheckOIDCIsAvailableSuccess extends UIState {
|
||||
final OIDCResponse oidcResponse;
|
||||
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class GetAuthenticationInfoLoading extends LoadingState {
|
||||
|
||||
GetAuthenticationInfoLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetAuthenticationInfoSuccess extends UIState {
|
||||
|
||||
GetAuthenticationInfoSuccess();
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class GetOIDCConfigurationLoading extends LoadingState {
|
||||
|
||||
GetOIDCConfigurationLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetOIDCConfigurationSuccess extends UIState {
|
||||
|
||||
final OIDCConfiguration oidcConfiguration;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/response/oidc_response.dart';
|
||||
|
||||
class GetOIDCIsAvailableLoading extends LoadingState {
|
||||
|
||||
GetOIDCIsAvailableLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetOIDCIsAvailableSuccess extends UIState {
|
||||
final OIDCResponse oidcResponse;
|
||||
|
||||
GetOIDCIsAvailableSuccess(this.oidcResponse);
|
||||
|
||||
@override
|
||||
List<Object> get props => [oidcResponse];
|
||||
}
|
||||
|
||||
class GetOIDCIsAvailableFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetOIDCIsAvailableFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
@@ -2,6 +2,14 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/oidc_configuration.dart';
|
||||
|
||||
class GetStoredOidcConfigurationLoading extends LoadingState {
|
||||
|
||||
GetStoredOidcConfigurationLoading();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class GetStoredOidcConfigurationSuccess extends UIState {
|
||||
final OIDCConfiguration oidcConfiguration;
|
||||
|
||||
|
||||
@@ -1,14 +1,23 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class GetTokenOIDCLoading extends LoadingState {
|
||||
|
||||
GetTokenOIDCLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetTokenOIDCSuccess extends UIState {
|
||||
|
||||
final TokenOIDC tokenOIDC;
|
||||
final OIDCConfiguration configuration;
|
||||
|
||||
GetTokenOIDCSuccess(this.tokenOIDC);
|
||||
GetTokenOIDCSuccess(this.tokenOIDC, this.configuration);
|
||||
|
||||
@override
|
||||
List<Object> get props => [tokenOIDC];
|
||||
List<Object> get props => [tokenOIDC, configuration];
|
||||
}
|
||||
|
||||
class GetTokenOIDCFailure extends FeatureFailure {
|
||||
|
||||
Reference in New Issue
Block a user