rename ssoEndpointLink to createSSORedirectURL

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-19 20:39:20 +05:30
parent daf7af17b1
commit 2d842c7174
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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}`;
}
}