From 19a9ca2f5da2756ddcbe3b74431e1b9772e881b6 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Mon, 3 Aug 2026 16:48:29 -0400 Subject: [PATCH] Apply suggested fix to django_forms_workflows/sso_backends.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- django_forms_workflows/sso_backends.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/django_forms_workflows/sso_backends.py b/django_forms_workflows/sso_backends.py index 8e2f514..24688b6 100644 --- a/django_forms_workflows/sso_backends.py +++ b/django_forms_workflows/sso_backends.py @@ -253,6 +253,14 @@ def get_saml_config(): This helper constructs the SAML settings from Django settings, providing sensible defaults for common use cases. + Compatibility note: + The default ``security`` configuration sets + ``wantAttributeStatement`` to ``False``. This is intentional to + support IdPs (including Google SAML in common configurations) that + may authenticate successfully without returning a SAML AttributeStatement. + Projects that require attributes can override this through + ``FORMS_WORKFLOWS_SAML["security"]``. + Returns: dict: SAML configuration for OneLogin's python3-saml """