diff --git a/src/domain/login/StartSSOLoginViewModel.js b/src/domain/login/StartSSOLoginViewModel.js index 315106ce..9a54d2c4 100644 --- a/src/domain/login/StartSSOLoginViewModel.js +++ b/src/domain/login/StartSSOLoginViewModel.js @@ -26,7 +26,7 @@ export class StartSSOLoginViewModel extends ViewModel{ async startSSOLogin() { await this.platform.settingsStorage.setString("sso_ongoing_login_homeserver", this._homeserver); - const link = this._sso.ssoEndpointLink(this.urlCreator.createSSOCallbackURL()); + const link = this._sso.createSSORedirectURL(this.urlCreator.createSSOCallbackURL()); this.platform.openUrl(link); } } diff --git a/src/matrix/login/SSOLoginHelper.js b/src/matrix/login/SSOLoginHelper.js index 701d00b4..376e81ba 100644 --- a/src/matrix/login/SSOLoginHelper.js +++ b/src/matrix/login/SSOLoginHelper.js @@ -19,7 +19,7 @@ export class SSOLoginHelper{ this._homeserver = homeserver; } - ssoEndpointLink(redirectURL) { - return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${redirectURL}`; + createSSORedirectURL(returnURL) { + return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${returnURL}`; } }