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": ""}, )