1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00
This commit is contained in:
Travis Ralston
2021-06-01 20:10:36 -06:00
parent 48888e530e
commit 07ee256756

View File

@@ -5836,14 +5836,12 @@ export class MatrixClient extends EventEmitter {
* @return {string} The HS URL to hit to begin the SSO login process.
*/
public getSsoLoginUrl(redirectUrl: string, loginType = "sso", idpId?: string): Promise<string> {
let prefix = PREFIX_R0;
let url = "/login/" + loginType + "/redirect";
if (idpId) {
url += "/" + idpId;
prefix = "/_matrix/client/unstable/org.matrix.msc2858";
}
return this.http.getUrl(url, { redirectUrl }, prefix);
return this.http.getUrl(url, { redirectUrl }, PREFIX_R0);
}
/**