Skip to content

Commit 57bf4b3

Browse files
🐛 [#3680] Fix possible crash in form endpoint(s)
1 parent 73cd898 commit 57bf4b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/openforms/authentication/api/serializers.py

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ def get_attribute(self, form):
8989
if not form.cosign_component:
9090
return None
9191

92+
# cosign component but no auth backends is an invalid config that should
93+
# display a warning in the UI, but we don't have backend constraints for that
94+
# (yet).
95+
if not form.authentication_backends:
96+
return None
97+
9298
auth_plugin_id = form.authentication_backends[0]
9399
auth_url = reverse(
94100
"authentication:start",

0 commit comments

Comments
 (0)