import { first } from "@goauthentik/common/utils"; import "@goauthentik/components/ak-switch-input"; import "@goauthentik/components/ak-text-input"; import { msg } from "@lit/localize"; import { customElement } from "@lit/reactive-element/decorators.js"; import { html } from "lit"; import { ifDefined } from "lit/directives/if-defined.js"; import { ProxyProvider } from "@goauthentik/api"; import AkTypeProxyApplicationWizardPage from "./AuthenticationByProxyPage"; @customElement("ak-application-wizard-authentication-for-reverse-proxy") export class AkReverseProxyApplicationWizardPage extends AkTypeProxyApplicationWizardPage { renderModeDescription() { return html`
${msg( "This provider will behave like a transparent reverse-proxy, except requests must be authenticated. If your upstream application uses HTTPS, make sure to connect to the outpost using HTTPS as well.", )}
`; } renderProxyMode() { const provider = this.wizard.provider as ProxyProvider | undefined; const errors = this.wizard.errors.provider; return html`