From 12dc8a81126a1fab4492d3bfbb96d1b91f662d5e Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Wed, 2 Mar 2022 15:23:39 +0100 Subject: [PATCH] Tests sso login mode --- .../app/features/signout/soft/SoftLogoutController.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt b/vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt index 0cd9cde547..25011ebc8a 100644 --- a/vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt +++ b/vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt @@ -34,6 +34,7 @@ import im.vector.app.features.signout.soft.epoxy.loginRedButtonItem import im.vector.app.features.signout.soft.epoxy.loginTextItem import im.vector.app.features.signout.soft.epoxy.loginTitleItem import im.vector.app.features.signout.soft.epoxy.loginTitleSmallItem +import timber.log.Timber import javax.inject.Inject class SoftLogoutController @Inject constructor( @@ -102,6 +103,8 @@ class SoftLogoutController @Inject constructor( } } is Success -> { + val loginMode = state.asyncHomeServerLoginFlowRequest.invoke() + Timber.i("Login Mode: $loginMode") when (state.asyncHomeServerLoginFlowRequest.invoke()) { LoginMode.Password -> { loginPasswordFormItem { @@ -123,6 +126,11 @@ class SoftLogoutController @Inject constructor( } } is LoginMode.SsoAndPassword -> { + loginCenterButtonItem { + id("sso") + text(host.stringProvider.getString(R.string.login_signin_sso)) + listener { host.listener?.signinFallbackSubmit() } + } } LoginMode.Unsupported -> { loginCenterButtonItem {