Remove web duo implementation
This commit is contained in:
parent
3e70ca84c5
commit
f0de1e72d0
|
@ -50,17 +50,6 @@ export class TwoFactorAuthDuoComponent extends TwoFactorAuthDuoBaseComponent {
|
|||
this.token.emit(msg.data.code + "|" + msg.data.state);
|
||||
};
|
||||
|
||||
override async launchDuoFrameless() {
|
||||
const duoHandOffMessage = {
|
||||
title: this.i18nService.t("youSuccessfullyLoggedIn"),
|
||||
message: this.i18nService.t("thisWindowWillCloseIn5Seconds"),
|
||||
buttonText: this.i18nService.t("close"),
|
||||
isCountdown: true,
|
||||
};
|
||||
document.cookie = `duoHandOffMessage=${JSON.stringify(duoHandOffMessage)}; SameSite=strict;`;
|
||||
this.platformUtilsService.launchUri(this.duoFramelessUrl);
|
||||
}
|
||||
|
||||
async ngOnDestroy() {
|
||||
if (this.duoResultChannel) {
|
||||
// clean up duo listener if it was initialized.
|
||||
|
|
|
@ -63,5 +63,7 @@ export class TwoFactorAuthDuoComponent {
|
|||
|
||||
// Each client will have own implementation
|
||||
protected setupDuoResultListener(): void {}
|
||||
async launchDuoFrameless(): Promise<void> {}
|
||||
async launchDuoFrameless(): Promise<void> {
|
||||
this.platformUtilsService.launchUri(this.duoFramelessUrl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue