diff --git a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts index 967d3d192..16b3ce01a 100644 --- a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts +++ b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts @@ -2,8 +2,7 @@ import { msg } from "@lit/localize"; import { TemplateResult, html } from "lit"; import type { ProviderModelEnum as ProviderModelEnumType, TypeCreate } from "@goauthentik/api"; -import { ProviderModelEnum, ProxyMode, - } from "@goauthentik/api"; +import { ProviderModelEnum, ProxyMode } from "@goauthentik/api"; import type { LDAPProviderRequest, ModelRequest, @@ -20,7 +19,14 @@ type ProviderRenderer = () => TemplateResult; type ModelConverter = (provider: OneOfProvider) => ModelRequest; -type ProviderType = [string, string, string, ProviderRenderer, ProviderModelEnumType, ModelConverter]; +type ProviderType = [ + string, + string, + string, + ProviderRenderer, + ProviderModelEnumType, + ModelConverter, +]; export type LocalTypeCreate = TypeCreate & { formName: string; @@ -128,21 +134,28 @@ const _providerModelsTable: ProviderType[] = [ ], ]; -function mapProviders([formName, name, description, _, modelName, converter]: ProviderType): LocalTypeCreate { +function mapProviders([ + formName, + name, + description, + _, + modelName, + converter, +]: ProviderType): LocalTypeCreate { return { formName, name, description, component: "", modelName, - converter + converter, }; } export const providerModelsList = _providerModelsTable.map(mapProviders); export const providerRendererList = new Map( - _providerModelsTable.map(([modelName, _0, _1, renderer]) => [modelName, renderer]) + _providerModelsTable.map(([modelName, _0, _1, renderer]) => [modelName, renderer]), ); export default providerModelsList; diff --git a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts index e7c6b3d6a..72723db5f 100644 --- a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts +++ b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts @@ -23,7 +23,7 @@ import { TransactionApplicationRequest, TransactionApplicationResponse, } from "@goauthentik/api"; -import type { ModelRequest, ResponseError } from "@goauthentik/api"; +import type { ModelRequest } from "@goauthentik/api"; import BasePanel from "../BasePanel"; import providerModelsList from "../auth-method-choice/ak-application-wizard-authentication-method-choice.choices"; @@ -113,7 +113,7 @@ export class ApplicationWizardCommitApplication extends BasePanel { const request: TransactionApplicationRequest = { providerModel: providerModel.modelName as ProviderModelType, app: cleanApplication(this.wizard.app), - provider: providerModel.converter(this.wizard.provider) + provider: providerModel.converter(this.wizard.provider), }; this.send(request); diff --git a/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts b/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts index 36d412315..9b7e813bf 100644 --- a/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts +++ b/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts @@ -4,9 +4,9 @@ import BasePanel from "../BasePanel"; import { providerRendererList } from "../auth-method-choice/ak-application-wizard-authentication-method-choice.choices"; import "./ldap/ak-application-wizard-authentication-by-ldap"; import "./oauth/ak-application-wizard-authentication-by-oauth"; +import "./proxy/ak-application-wizard-authentication-for-forward-domain-proxy"; import "./proxy/ak-application-wizard-authentication-for-reverse-proxy"; import "./proxy/ak-application-wizard-authentication-for-single-forward-proxy"; -import "./proxy/ak-application-wizard-authentication-for-forward-domain-proxy"; import "./radius/ak-application-wizard-authentication-by-radius"; import "./saml/ak-application-wizard-authentication-by-saml-configuration"; import "./scim/ak-application-wizard-authentication-by-scim"; diff --git a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts index fe305d8c7..e794cd7d4 100644 --- a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts +++ b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts @@ -12,7 +12,7 @@ export class AkForwardDomainProxyApplicationWizardPage extends AkTypeProxyApplic renderModeDescription() { return html`

${msg( - "Use this provider with nginx's auth_request or traefik's forwardAuth. Only a single provider is required per root domain. You can't do per-application authorization, but you don't have to create a provider for each application." + "Use this provider with nginx's auth_request or traefik's forwardAuth. Only a single provider is required per root domain. You can't do per-application authorization, but you don't have to create a provider for each application.", )}

@@ -22,7 +22,7 @@ export class AkForwardDomainProxyApplicationWizardPage extends AkTypeProxyApplic
  • ${msg("app1 running on app1.example.com")}
  • ${msg( - "In this case, you'd set the Authentication URL to auth.example.com and Cookie domain to example.com." + "In this case, you'd set the Authentication URL to auth.example.com and Cookie domain to example.com.", )}
    `; } @@ -32,10 +32,10 @@ export class AkForwardDomainProxyApplicationWizardPage extends AkTypeProxyApplic @@ -45,7 +45,7 @@ value=${ifDefined(this.instance?.externalHost)} value="${ifDefined(this.instance?.cookieDomain)}" required help=${msg( - "Set this to the domain you wish the authentication to be valid for. Must be a parent domain of the URL above. If you're running applications as app1.domain.tld, app2.domain.tld, set this to 'domain.tld'." + "Set this to the domain you wish the authentication to be valid for. Must be a parent domain of the URL above. If you're running applications as app1.domain.tld, app2.domain.tld, set this to 'domain.tld'.", )} > `;