TF-624 Remove baseUri param not use in GetOIDCConfigurationInteractor

This commit is contained in:
dab246
2022-06-06 13:17:03 +07:00
committed by Dat H. Pham
parent 9da250f9fb
commit f00d3c7569
7 changed files with 12 additions and 17 deletions
@@ -106,12 +106,7 @@ class LoginController extends GetxController {
void handleLoginPressed() {
log('LoginController::handleLoginPressed(): ${loginFormType.value}');
if (loginFormType.value == LoginFormType.ssoForm) {
final baseUri = kIsWeb ? _parseUri(AppConfig.baseUrl) : _parseUri(_urlText);
if (baseUri != null) {
_getOIDCConfiguration(baseUri);
} else {
loginState.value = LoginState(Left(LoginMissUrlAction()));
}
_getOIDCConfiguration();
} else {
final baseUri = kIsWeb ? _parseUri(AppConfig.baseUrl) : _parseUri(_urlText);
final userName = _parseUserName(_userNameText);
@@ -128,10 +123,10 @@ class LoginController extends GetxController {
}
}
void _getOIDCConfiguration(Uri baseUri) async {
void _getOIDCConfiguration() async {
loginState.value = LoginState(Right(LoginLoadingAction()));
if (_oidcResponse != null) {
await _getOIDCConfigurationInteractor.execute(baseUri, _oidcResponse!)
await _getOIDCConfigurationInteractor.execute(_oidcResponse!)
.then((response) => response.fold(
(failure) {
if (failure is GetOIDCConfigurationFailure) {