From 69668a2a05d4ddd000f8b26333b83e5dd630a5af Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 16 May 2021 18:46:04 +0200 Subject: [PATCH] web: fix designation for flow lookups Signed-off-by: Jens Langhammer --- web/src/pages/providers/ldap/LDAPProviderForm.ts | 4 ++-- web/src/pages/providers/oauth2/OAuth2ProviderForm.ts | 4 ++-- web/src/pages/providers/proxy/ProxyProviderForm.ts | 4 ++-- web/src/pages/providers/saml/SAMLProviderForm.ts | 4 ++-- web/src/pages/providers/saml/SAMLProviderImportForm.ts | 4 ++-- web/src/pages/sources/oauth/OAuthSourceForm.ts | 6 +++--- web/src/pages/sources/plex/PlexSourceForm.ts | 6 +++--- web/src/pages/sources/saml/SAMLSourceForm.ts | 8 ++++---- .../authenticator_static/AuthenticatorStaticStageForm.ts | 4 ++-- .../authenticator_totp/AuthenticatorTOTPStageForm.ts | 4 ++-- .../stages/identification/IdentificationStageForm.ts | 6 +++--- web/src/pages/stages/password/PasswordStageForm.ts | 4 ++-- 12 files changed, 29 insertions(+), 29 deletions(-) diff --git a/web/src/pages/providers/ldap/LDAPProviderForm.ts b/web/src/pages/providers/ldap/LDAPProviderForm.ts index 304c8ffe7..492c461ba 100644 --- a/web/src/pages/providers/ldap/LDAPProviderForm.ts +++ b/web/src/pages/providers/ldap/LDAPProviderForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, ProvidersApi, LDAPProvider, CoreApi } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, ProvidersApi, LDAPProvider, CoreApi, FlowsInstancesListDesignationEnum } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -55,7 +55,7 @@ export class LDAPProviderFormPage extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Authorization, + designation: FlowsInstancesListDesignationEnum.Authorization, }).then(flows => { return flows.results.map(flow => { return html``; diff --git a/web/src/pages/providers/proxy/ProxyProviderForm.ts b/web/src/pages/providers/proxy/ProxyProviderForm.ts index 9d9c85929..e1aa9cb4c 100644 --- a/web/src/pages/providers/proxy/ProxyProviderForm.ts +++ b/web/src/pages/providers/proxy/ProxyProviderForm.ts @@ -1,4 +1,4 @@ -import { CryptoApi, FlowDesignationEnum, FlowsApi, ProvidersApi, ProxyProvider } from "authentik-api"; +import { CryptoApi, FlowDesignationEnum, FlowsApi, FlowsInstancesListDesignationEnum, ProvidersApi, ProxyProvider } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement, property } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -105,7 +105,7 @@ export class ProxyProviderFormPage extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Authorization, + designation: FlowsInstancesListDesignationEnum.Authorization, }).then(flows => { return flows.results.map(flow => { return html``; diff --git a/web/src/pages/providers/saml/SAMLProviderImportForm.ts b/web/src/pages/providers/saml/SAMLProviderImportForm.ts index 9b04da89e..ab02339db 100644 --- a/web/src/pages/providers/saml/SAMLProviderImportForm.ts +++ b/web/src/pages/providers/saml/SAMLProviderImportForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, ProvidersApi, SAMLProvider } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, FlowsInstancesListDesignationEnum, ProvidersApi, SAMLProvider } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -43,7 +43,7 @@ export class SAMLProviderImportForm extends Form { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Authentication, + designation: FlowsInstancesListDesignationEnum.Authentication, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.authenticationFlow === flow.pk; @@ -250,7 +250,7 @@ export class OAuthSourceForm extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Authentication, + designation: FlowsInstancesListDesignationEnum.Authentication, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.authenticationFlow === flow.pk; @@ -201,7 +201,7 @@ export class PlexSourceForm extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.StageConfiguration, + designation: FlowsInstancesListDesignationEnum.StageConfiguration, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.preAuthenticationFlow === flow.pk; @@ -238,7 +238,7 @@ export class SAMLSourceForm extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Enrollment, + designation: FlowsInstancesListDesignationEnum.Enrollment, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.enrollmentFlow === flow.pk; diff --git a/web/src/pages/stages/authenticator_static/AuthenticatorStaticStageForm.ts b/web/src/pages/stages/authenticator_static/AuthenticatorStaticStageForm.ts index 8aee2b761..523a1656f 100644 --- a/web/src/pages/stages/authenticator_static/AuthenticatorStaticStageForm.ts +++ b/web/src/pages/stages/authenticator_static/AuthenticatorStaticStageForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, AuthenticatorStaticStage, StagesApi } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, AuthenticatorStaticStage, StagesApi, FlowsInstancesListDesignationEnum } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -69,7 +69,7 @@ export class AuthenticatorStaticStageForm extends ModelForm--------- ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.StageConfiguration, + designation: FlowsInstancesListDesignationEnum.StageConfiguration, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.configureFlow === flow.pk; diff --git a/web/src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts b/web/src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts index 9ea2ad4f1..3cb921037 100644 --- a/web/src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts +++ b/web/src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, AuthenticatorTOTPStage, StagesApi } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, AuthenticatorTOTPStage, StagesApi, FlowsInstancesListDesignationEnum } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -75,7 +75,7 @@ export class AuthenticatorTOTPStageForm extends ModelForm--------- ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.StageConfiguration, + designation: FlowsInstancesListDesignationEnum.StageConfiguration, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.configureFlow === flow.pk; diff --git a/web/src/pages/stages/identification/IdentificationStageForm.ts b/web/src/pages/stages/identification/IdentificationStageForm.ts index e87675ee1..1cd1691b1 100644 --- a/web/src/pages/stages/identification/IdentificationStageForm.ts +++ b/web/src/pages/stages/identification/IdentificationStageForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, IdentificationStage, UserFieldsEnum, StagesApi } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, IdentificationStage, UserFieldsEnum, StagesApi, FlowsInstancesListDesignationEnum } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -101,7 +101,7 @@ export class IdentificationStageForm extends ModelForm--------- ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Enrollment, + designation: FlowsInstancesListDesignationEnum.Enrollment, }).then(flows => { return flows.results.map(flow => { const selected = this.instance?.enrollmentFlow === flow.pk; @@ -118,7 +118,7 @@ export class IdentificationStageForm extends ModelForm--------- ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.Recovery, + designation: FlowsInstancesListDesignationEnum.Recovery, }).then(flows => { return flows.results.map(flow => { const selected = this.instance?.recoveryFlow === flow.pk; diff --git a/web/src/pages/stages/password/PasswordStageForm.ts b/web/src/pages/stages/password/PasswordStageForm.ts index 2a0b68d31..a4bfa97df 100644 --- a/web/src/pages/stages/password/PasswordStageForm.ts +++ b/web/src/pages/stages/password/PasswordStageForm.ts @@ -1,4 +1,4 @@ -import { FlowDesignationEnum, FlowsApi, PasswordStage, BackendsEnum, StagesApi } from "authentik-api"; +import { FlowDesignationEnum, FlowsApi, PasswordStage, BackendsEnum, StagesApi, FlowsInstancesListDesignationEnum } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -85,7 +85,7 @@ export class PasswordStageForm extends ModelForm { ${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({ ordering: "pk", - designation: FlowDesignationEnum.StageConfiguration, + designation: FlowsInstancesListDesignationEnum.StageConfiguration, }).then(flows => { return flows.results.map(flow => { let selected = this.instance?.configureFlow === flow.pk;