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:
parent
17f7a97ef3
commit
f41f2bfdab
|
@ -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
|
||||
|
|
|
@ -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": ""},
|
||||
)
|
||||
|
||||
|
|
Reference in New Issue