File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -446,12 +446,9 @@ export default class ElectronPlatform extends VectorBasePlatform {
446
446
447
447
public async getOidcClientMetadata ( ) : Promise < OidcRegistrationClientMetadata > {
448
448
const baseMetadata = await super . getOidcClientMetadata ( ) ;
449
- const redirectUri = this . getSSOCallbackUrl ( ) ;
450
- redirectUri . searchParams . delete ( SSO_ID_KEY ) ; // it will be shuttled via the state param instead
451
449
return {
452
450
...baseMetadata ,
453
451
applicationType : "native" ,
454
- redirectUris : [ redirectUri . href ] ,
455
452
// XXX: This should be overridable in config
456
453
clientUri : "https://element.io" ,
457
454
} ;
@@ -460,4 +457,13 @@ export default class ElectronPlatform extends VectorBasePlatform {
460
457
public getOidcClientState ( ) : string {
461
458
return `:${ SSO_ID_KEY } :${ this . ssoID } ` ;
462
459
}
460
+
461
+ /**
462
+ * The URL to return to after a successful OIDC authentication
463
+ */
464
+ public getOidcCallbackUrl ( ) : URL {
465
+ const url = super . getOidcCallbackUrl ( ) ;
466
+ url . protocol = "io.element.desktop" ;
467
+ return url ;
468
+ }
463
469
}
You can’t perform that action at this time.
0 commit comments