From 2d842c71743078cd49f2705edab716b8862e8c25 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 19 Aug 2021 20:39:20 +0530 Subject: [PATCH] rename ssoEndpointLink to createSSORedirectURL Signed-off-by: RMidhunSuresh --- src/domain/login/StartSSOLoginViewModel.js | 2 +- src/matrix/login/SSOLoginHelper.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}`; } }