Remove web duo implementation

This commit is contained in:
Bernd Schoolmann 2024-06-27 15:41:20 +02:00
parent 3e70ca84c5
commit f0de1e72d0
No known key found for this signature in database
2 changed files with 3 additions and 12 deletions

View File

@ -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.

View File

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