diff --git a/web/src/flow/providers/oauth2/DeviceCodeFinish.ts b/web/src/flow/providers/oauth2/DeviceCodeFinish.ts index 199b8aaaf..1813426eb 100644 --- a/web/src/flow/providers/oauth2/DeviceCodeFinish.ts +++ b/web/src/flow/providers/oauth2/DeviceCodeFinish.ts @@ -1,37 +1,25 @@ import "@goauthentik/elements/EmptyState"; import "@goauthentik/flow/FormStatic"; -import { AccessDeniedStage } from "@goauthentik/flow/stages/access_denied/AccessDeniedStage"; +import { BaseStage } from "@goauthentik/flow/stages/base"; import { t } from "@lingui/macro"; import { TemplateResult, html } from "lit"; import { customElement } from "lit/decorators.js"; +import { OAuthDeviceCodeFinishChallenge } from "@goauthentik/api"; + @customElement("ak-flow-provider-oauth2-code-finish") -export class DeviceCodeFinish extends AccessDeniedStage { +export class DeviceCodeFinish extends BaseStage< + OAuthDeviceCodeFinishChallenge, + OAuthDeviceCodeFinishChallenge +> { render(): TemplateResult { if (!this.challenge) { return html` `; } - return html`
-

${this.challenge.flowInfo?.title}

-
-
-
-
-

- -

-

- ${t`You've successfully authenticated your device.`} -

-
-

${t`You can close this tab now.`}

-
-
-
- `; + return html` + ${t`You've successfully authenticated your device.`} + `; } } diff --git a/web/src/flow/stages/RedirectStage.ts b/web/src/flow/stages/RedirectStage.ts index 2181fefcd..591dc66fe 100644 --- a/web/src/flow/stages/RedirectStage.ts +++ b/web/src/flow/stages/RedirectStage.ts @@ -64,9 +64,6 @@ export class RedirectStage extends BaseStage { - window.close(); - }, 500); return html`