From f41f2bfdabd01e8697be06f704cabddc588a9783 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 24 Mar 2021 17:12:41 +0100 Subject: [PATCH] sources/saml: use STAGE_CONFIGURATION for default-source-pre-authentication flow Signed-off-by: Jens Langhammer --- authentik/sources/saml/forms.py | 2 +- .../saml/migrations/0010_samlsource_pre_authentication_flow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/sources/saml/forms.py b/authentik/sources/saml/forms.py index 8afe9c822..5763e9c87 100644 --- a/authentik/sources/saml/forms.py +++ b/authentik/sources/saml/forms.py @@ -15,7 +15,7 @@ class SAMLSourceForm(forms.ModelForm): super().__init__(*args, **kwargs) self.fields["pre_authentication_flow"].queryset = Flow.objects.filter( - designation=FlowDesignation.AUTHENTICATION + designation=FlowDesignation.STAGE_CONFIGURATION ) self.fields["authentication_flow"].queryset = Flow.objects.filter( designation=FlowDesignation.AUTHENTICATION diff --git a/authentik/sources/saml/migrations/0010_samlsource_pre_authentication_flow.py b/authentik/sources/saml/migrations/0010_samlsource_pre_authentication_flow.py index e153fabb8..5b1b8cde6 100644 --- a/authentik/sources/saml/migrations/0010_samlsource_pre_authentication_flow.py +++ b/authentik/sources/saml/migrations/0010_samlsource_pre_authentication_flow.py @@ -19,7 +19,7 @@ def create_default_pre_authentication_flow( # Empty flow for providers where consent is implicitly given flow, _ = Flow.objects.using(db_alias).update_or_create( slug="default-source-pre-authentication", - designation=FlowDesignation.AUTHENTICATION, + designation=FlowDesignation.STAGE_CONFIGURATION, defaults={"name": "Pre-Authentication", "title": ""}, )