@@ -108,16 +108,23 @@ def __init__(self, config=None, identity_cache=None, state_cache=None,
108
108
else :
109
109
self .state = state_cache
110
110
111
+ # Handle values which are False by default
111
112
self .logout_requests_signed = False
112
113
self .allow_unsolicited = False
113
114
self .authn_requests_signed = False
114
115
self .want_assertions_signed = False
115
- self .want_response_signed = True
116
- for foo in ["allow_unsolicited" , "authn_requests_signed" ,
117
- "logout_requests_signed" , "want_assertions_signed" ]:
118
- v = self .config .getattr (foo , "sp" )
116
+ for param in ["allow_unsolicited" , "authn_requests_signed" ,
117
+ "logout_requests_signed" , "want_assertions_signed" ]:
118
+ v = self .config .getattr (param , "sp" )
119
119
if v is True or v == 'true' :
120
- setattr (self , foo , True )
120
+ setattr (self , param , True )
121
+
122
+ # Handle values which are True by default
123
+ self .want_response_signed = True
124
+ for param in ["want_assertions_signed" ]:
125
+ v = self .config .getattr (param , "sp" )
126
+ if v is False or v == 'false' :
127
+ setattr (self , param , False )
121
128
122
129
self .artifact2response = {}
123
130
0 commit comments