diff --git a/web/src/api/Config.ts b/web/src/api/Config.ts index 7c222c345..ade459d8b 100644 --- a/web/src/api/Config.ts +++ b/web/src/api/Config.ts @@ -10,7 +10,7 @@ import { MessageMiddleware } from "../elements/messages/Middleware"; export class LoggingMiddleware implements Middleware { post(context: ResponseContext): Promise { - console.debug(`authentik/api: ${context.init.method} ${context.url} => ${context.response.status}`); + console.debug(`authentik/api: ${context.response.status} ${context.init.method} ${context.url}`); return Promise.resolve(context.response); } } diff --git a/web/src/pages/events/TransportForm.ts b/web/src/pages/events/TransportForm.ts index 2a9773491..a919f9ffa 100644 --- a/web/src/pages/events/TransportForm.ts +++ b/web/src/pages/events/TransportForm.ts @@ -6,6 +6,7 @@ import { DEFAULT_CONFIG } from "../../api/Config"; import { Form } from "../../elements/forms/Form"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; +import { first } from "../../utils"; @customElement("ak-event-transport-form") export class TransportForm extends Form { @@ -92,7 +93,7 @@ export class TransportForm extends Form {
- + diff --git a/web/src/pages/flows/StageBindingForm.ts b/web/src/pages/flows/StageBindingForm.ts index f6d8f9e86..d4359396b 100644 --- a/web/src/pages/flows/StageBindingForm.ts +++ b/web/src/pages/flows/StageBindingForm.ts @@ -7,7 +7,7 @@ import { Form } from "../../elements/forms/Form"; import { until } from "lit-html/directives/until"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; -import { groupBy } from "../../utils"; +import { first, groupBy } from "../../utils"; @customElement("ak-stage-binding-form") export class StageBindingForm extends Form { @@ -104,7 +104,7 @@ export class StageBindingForm extends Form {
- + @@ -113,7 +113,7 @@ export class StageBindingForm extends Form {
- + diff --git a/web/src/pages/groups/GroupForm.ts b/web/src/pages/groups/GroupForm.ts index b71acc2fb..eb397beec 100644 --- a/web/src/pages/groups/GroupForm.ts +++ b/web/src/pages/groups/GroupForm.ts @@ -9,6 +9,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; import "../../elements/CodeMirror"; import YAML from "yaml"; +import { first } from "../../utils"; @customElement("ak-group-form") export class GroupForm extends Form { @@ -47,7 +48,7 @@ export class GroupForm extends Form {
- + diff --git a/web/src/pages/outposts/ServiceConnectionDockerForm.ts b/web/src/pages/outposts/ServiceConnectionDockerForm.ts index c1a937b33..584dd4513 100644 --- a/web/src/pages/outposts/ServiceConnectionDockerForm.ts +++ b/web/src/pages/outposts/ServiceConnectionDockerForm.ts @@ -7,6 +7,7 @@ import { Form } from "../../elements/forms/Form"; import { until } from "lit-html/directives/until"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; +import { first } from "../../utils"; @customElement("ak-service-connection-docker-form") export class ServiceConnectionDockerForm extends Form { @@ -53,7 +54,7 @@ export class ServiceConnectionDockerForm extends Form {
- + diff --git a/web/src/pages/outposts/ServiceConnectionKubernetesForm.ts b/web/src/pages/outposts/ServiceConnectionKubernetesForm.ts index 667212cd2..6ca48e661 100644 --- a/web/src/pages/outposts/ServiceConnectionKubernetesForm.ts +++ b/web/src/pages/outposts/ServiceConnectionKubernetesForm.ts @@ -8,6 +8,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; import "../../elements/CodeMirror"; import YAML from "yaml"; +import { first } from "../../utils"; @customElement("ak-service-connection-kubernetes-form") export class ServiceConnectionKubernetesForm extends Form { @@ -54,7 +55,7 @@ export class ServiceConnectionKubernetesForm extends Form
- + diff --git a/web/src/pages/policies/PolicyBindingForm.ts b/web/src/pages/policies/PolicyBindingForm.ts index 4a14eaa81..650e662cc 100644 --- a/web/src/pages/policies/PolicyBindingForm.ts +++ b/web/src/pages/policies/PolicyBindingForm.ts @@ -114,7 +114,7 @@ export class PolicyBindingForm extends Form {
- + diff --git a/web/src/pages/policies/dummy/DummyPolicyForm.ts b/web/src/pages/policies/dummy/DummyPolicyForm.ts index 85c26a476..d87d0898f 100644 --- a/web/src/pages/policies/dummy/DummyPolicyForm.ts +++ b/web/src/pages/policies/dummy/DummyPolicyForm.ts @@ -54,7 +54,7 @@ export class DummyPolicyForm extends Form {
- + @@ -68,7 +68,7 @@ export class DummyPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/event_matcher/EventMatcherPolicyForm.ts b/web/src/pages/policies/event_matcher/EventMatcherPolicyForm.ts index a880cd725..885047488 100644 --- a/web/src/pages/policies/event_matcher/EventMatcherPolicyForm.ts +++ b/web/src/pages/policies/event_matcher/EventMatcherPolicyForm.ts @@ -8,6 +8,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; import { until } from "lit-html/directives/until"; +import { first } from "../../../utils"; @customElement("ak-policy-event-matcher-form") export class EventMatcherPolicyForm extends Form { @@ -54,7 +55,7 @@ export class EventMatcherPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/expiry/ExpiryPolicyForm.ts b/web/src/pages/policies/expiry/ExpiryPolicyForm.ts index 921252ea9..e24faf9d1 100644 --- a/web/src/pages/policies/expiry/ExpiryPolicyForm.ts +++ b/web/src/pages/policies/expiry/ExpiryPolicyForm.ts @@ -7,6 +7,7 @@ import { Form } from "../../../elements/forms/Form"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; +import { first } from "../../../utils"; @customElement("ak-policy-password-expiry-form") export class PasswordExpiryPolicyForm extends Form { @@ -53,7 +54,7 @@ export class PasswordExpiryPolicyForm extends Form {
- + @@ -73,7 +74,7 @@ export class PasswordExpiryPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/expression/ExpressionPolicyForm.ts b/web/src/pages/policies/expression/ExpressionPolicyForm.ts index 533c3b65f..6d3270d83 100644 --- a/web/src/pages/policies/expression/ExpressionPolicyForm.ts +++ b/web/src/pages/policies/expression/ExpressionPolicyForm.ts @@ -8,6 +8,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; import "../../../elements/CodeMirror"; +import { first } from "../../../utils"; @customElement("ak-policy-expression-form") export class ExpressionPolicyForm extends Form { @@ -54,7 +55,7 @@ export class ExpressionPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/hibp/HaveIBeenPwnedPolicyForm.ts b/web/src/pages/policies/hibp/HaveIBeenPwnedPolicyForm.ts index 182f6f7f2..2296787d0 100644 --- a/web/src/pages/policies/hibp/HaveIBeenPwnedPolicyForm.ts +++ b/web/src/pages/policies/hibp/HaveIBeenPwnedPolicyForm.ts @@ -54,7 +54,7 @@ export class HaveIBeenPwnedPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/password/PasswordPolicyForm.ts b/web/src/pages/policies/password/PasswordPolicyForm.ts index 2221c3868..8c63bb5d7 100644 --- a/web/src/pages/policies/password/PasswordPolicyForm.ts +++ b/web/src/pages/policies/password/PasswordPolicyForm.ts @@ -54,7 +54,7 @@ export class PasswordPolicyForm extends Form {
- + diff --git a/web/src/pages/policies/reputation/ReputationPolicyForm.ts b/web/src/pages/policies/reputation/ReputationPolicyForm.ts index eab6f70fc..1b2e766ab 100644 --- a/web/src/pages/policies/reputation/ReputationPolicyForm.ts +++ b/web/src/pages/policies/reputation/ReputationPolicyForm.ts @@ -7,6 +7,7 @@ import { Form } from "../../../elements/forms/Form"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; +import { first } from "../../../utils"; @customElement("ak-policy-reputation-form") export class ReputationPolicyForm extends Form { @@ -53,7 +54,7 @@ export class ReputationPolicyForm extends Form {
- + @@ -67,7 +68,7 @@ export class ReputationPolicyForm extends Form {
- + @@ -75,7 +76,7 @@ export class ReputationPolicyForm extends Form {
- + diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index ab77649da..0ed846e2a 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -205,7 +205,7 @@ export class OAuth2ProviderFormPage extends Form {
- + diff --git a/web/src/pages/sources/ldap/LDAPSourceForm.ts b/web/src/pages/sources/ldap/LDAPSourceForm.ts index 296da34fe..4218b26e2 100644 --- a/web/src/pages/sources/ldap/LDAPSourceForm.ts +++ b/web/src/pages/sources/ldap/LDAPSourceForm.ts @@ -8,6 +8,7 @@ import "../../../elements/forms/FormGroup"; import "../../../elements/forms/HorizontalFormElement"; import { ifDefined } from "lit-html/directives/if-defined"; import { until } from "lit-html/directives/until"; +import { first } from "../../../utils"; @customElement("ak-source-ldap-form") export class LDAPSourceForm extends Form { @@ -60,7 +61,7 @@ export class LDAPSourceForm extends Form {
- + @@ -68,7 +69,7 @@ export class LDAPSourceForm extends Form {
- + @@ -76,7 +77,7 @@ export class LDAPSourceForm extends Form {
- + @@ -84,7 +85,7 @@ export class LDAPSourceForm extends Form {
- + @@ -103,7 +104,7 @@ export class LDAPSourceForm extends Form {
- + @@ -140,7 +141,7 @@ export class LDAPSourceForm extends Form { name="propertyMappings"> + diff --git a/web/src/pages/sources/saml/SAMLSourceForm.ts b/web/src/pages/sources/saml/SAMLSourceForm.ts index d917be3fe..87de1617e 100644 --- a/web/src/pages/sources/saml/SAMLSourceForm.ts +++ b/web/src/pages/sources/saml/SAMLSourceForm.ts @@ -8,6 +8,7 @@ import "../../../elements/forms/FormGroup"; import "../../../elements/forms/HorizontalFormElement"; import { ifDefined } from "lit-html/directives/if-defined"; import { until } from "lit-html/directives/until"; +import { first } from "../../../utils"; @customElement("ak-source-saml-form") export class SAMLSourceForm extends Form { @@ -60,7 +61,7 @@ export class SAMLSourceForm extends Form {
- + @@ -131,7 +132,7 @@ export class SAMLSourceForm extends Form {
- + diff --git a/web/src/pages/stages/email/EmailStageForm.ts b/web/src/pages/stages/email/EmailStageForm.ts index 816f5908d..8449dee9e 100644 --- a/web/src/pages/stages/email/EmailStageForm.ts +++ b/web/src/pages/stages/email/EmailStageForm.ts @@ -82,7 +82,7 @@ export class EmailStageForm extends Form {
- + @@ -90,7 +90,7 @@ export class EmailStageForm extends Form {
- + @@ -127,7 +127,7 @@ export class EmailStageForm extends Form {
- { + { const target = ev.target as HTMLInputElement; this.showConnectionSettings = !target.checked; }}> diff --git a/web/src/pages/stages/identification/IdentificationStageForm.ts b/web/src/pages/stages/identification/IdentificationStageForm.ts index 020aec362..154910d18 100644 --- a/web/src/pages/stages/identification/IdentificationStageForm.ts +++ b/web/src/pages/stages/identification/IdentificationStageForm.ts @@ -8,6 +8,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; import { until } from "lit-html/directives/until"; +import { first } from "../../../utils"; @customElement("ak-stage-identification-form") export class IdentificationStageForm extends Form { @@ -80,7 +81,7 @@ export class IdentificationStageForm extends Form {
- + @@ -89,7 +90,7 @@ export class IdentificationStageForm extends Form {
- + diff --git a/web/src/pages/stages/invitation/InvitationStageForm.ts b/web/src/pages/stages/invitation/InvitationStageForm.ts index e62596fd7..90ebcbd25 100644 --- a/web/src/pages/stages/invitation/InvitationStageForm.ts +++ b/web/src/pages/stages/invitation/InvitationStageForm.ts @@ -7,6 +7,7 @@ import { Form } from "../../../elements/forms/Form"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; import "../../../elements/forms/FormGroup"; +import { first } from "../../../utils"; @customElement("ak-stage-invitation-form") export class InvitationStageForm extends Form { @@ -58,7 +59,7 @@ export class InvitationStageForm extends Form {
- + diff --git a/web/src/pages/stages/prompt/PromptForm.ts b/web/src/pages/stages/prompt/PromptForm.ts index 1376cb5ee..db68fe6cf 100644 --- a/web/src/pages/stages/prompt/PromptForm.ts +++ b/web/src/pages/stages/prompt/PromptForm.ts @@ -6,6 +6,7 @@ import { DEFAULT_CONFIG } from "../../../api/Config"; import { Form } from "../../../elements/forms/Form"; import { ifDefined } from "lit-html/directives/if-defined"; import "../../../elements/forms/HorizontalFormElement"; +import { first } from "../../../utils"; @customElement("ak-prompt-form") export class PromptForm extends Form { @@ -98,7 +99,7 @@ export class PromptForm extends Form {
- + diff --git a/web/src/pages/users/UserForm.ts b/web/src/pages/users/UserForm.ts index 02e93d0bc..1d7aaf558 100644 --- a/web/src/pages/users/UserForm.ts +++ b/web/src/pages/users/UserForm.ts @@ -8,6 +8,7 @@ import { ifDefined } from "lit-html/directives/if-defined"; import "../../elements/forms/HorizontalFormElement"; import "../../elements/CodeMirror"; import YAML from "yaml"; +import { first } from "../../utils"; @customElement("ak-user-form") export class UserForm extends Form { @@ -61,7 +62,7 @@ export class UserForm extends Form {
- +