diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/Constants.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/Constants.kt index af6e2277f4..f4d6d2505e 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/Constants.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/Constants.kt @@ -32,6 +32,6 @@ const val REGISTER_FALLBACK_PATH = "/_matrix/static/client/register/" * Path to use when the client want to connect using SSO * Ref: https://matrix.org/docs/spec/client_server/latest#sso-client-login */ -const val SSO_FALLBACK_PATH = "/_matrix/client/r0/login/sso/redirect" +const val SSO_REDIRECT_PATH = "/_matrix/client/r0/login/sso/redirect" const val SSO_REDIRECT_URL_PARAM = "redirectUrl" diff --git a/vector/src/main/java/im/vector/riotx/features/login/LoginViewState.kt b/vector/src/main/java/im/vector/riotx/features/login/LoginViewState.kt index 6c20ec8855..944d1f7d82 100644 --- a/vector/src/main/java/im/vector/riotx/features/login/LoginViewState.kt +++ b/vector/src/main/java/im/vector/riotx/features/login/LoginViewState.kt @@ -22,7 +22,7 @@ import com.airbnb.mvrx.MvRxState import com.airbnb.mvrx.PersistState import com.airbnb.mvrx.Success import com.airbnb.mvrx.Uninitialized -import im.vector.matrix.android.api.auth.SSO_FALLBACK_PATH +import im.vector.matrix.android.api.auth.SSO_REDIRECT_PATH import im.vector.matrix.android.api.auth.SSO_REDIRECT_URL_PARAM import im.vector.riotx.core.extensions.appendParamToUrl @@ -71,7 +71,7 @@ data class LoginViewState( fun getSsoUrl(): String { return buildString { append(homeServerUrl?.trim { it == '/' }) - append(SSO_FALLBACK_PATH) + append(SSO_REDIRECT_PATH) // Set a redirect url we will intercept later appendParamToUrl(SSO_REDIRECT_URL_PARAM, RIOTX_REDIRECT_URL) deviceId?.takeIf { it.isNotBlank() }?.let {