From 6dab31ace8cc5dbac4c24d1d1b1376a3c32765d4 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 29 Apr 2015 23:38:22 +0200 Subject: [PATCH] views: fix setting of isPassive and forceAuthn (fixes #7100) --- mellon/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mellon/views.py b/mellon/views.py index 6ccaa7c..b9289d8 100644 --- a/mellon/views.py +++ b/mellon/views.py @@ -155,9 +155,9 @@ class LoginView(LogMixin, View): policy.format = utils.get_setting(idp, 'NAME_ID_POLICY_FORMAT') force_authn = utils.get_setting(idp, 'FORCE_AUTHN') if force_authn: - policy.forceAuthn = True + authn_request.forceAuthn = True if request.GET.get('passive') == '1': - policy.isPassive = True + authn_request.isPassive = True # configure requested AuthnClassRef authn_classref = utils.get_setting(idp, 'AUTHN_CLASSREF') if authn_classref: