Merge pull request #14513 from vector-im/travis/fix-sso

Use the right protocol for SSO URLs
This commit is contained in:
Travis Ralston 2020-07-15 19:48:17 -06:00 committed by GitHub
commit 8eac445ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,7 +502,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
getSSOCallbackUrl(fragmentAfterLogin: string): URL {
const url = super.getSSOCallbackUrl(fragmentAfterLogin);
url.protocol = "riot";
url.protocol = "element";
url.searchParams.set("riot-desktop-ssoid", this.ssoID);
return url;
}