sources/saml: use STAGE_CONFIGURATION for default-source-pre-authentication flow

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-24 17:12:41 +01:00
parent 17f7a97ef3
commit f41f2bfdab
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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