@@ -163,21 +163,21 @@ def login(request,
163
163
# ensure our selected binding is supported by the IDP
164
164
supported_bindings = get_idp_sso_supported_bindings (selected_idp )
165
165
if binding not in supported_bindings :
166
- logger .debug ('Binding %s not in IDP %s supported bindings: %s' % (
167
- binding , selected_idp , supported_bindings ) )
166
+ logger .debug ('Binding %s not in IDP %s supported bindings: %s' ,
167
+ binding , selected_idp , supported_bindings )
168
168
if binding == BINDING_HTTP_POST :
169
- logger .warning ('IDP %s does not support %s, trying %s' % (
170
- selected_idp , binding , BINDING_HTTP_REDIRECT ) )
169
+ logger .warning ('IDP %s does not support %s, trying %s' ,
170
+ selected_idp , binding , BINDING_HTTP_REDIRECT )
171
171
binding = BINDING_HTTP_REDIRECT
172
172
if sign_requests :
173
173
sign_requests = False
174
- logger .warning ('sp_authn_requests_signed is True, but ignoring because pysaml2 does not support it for %s' % BINDING_HTTP_REDIRECT )
174
+ logger .warning ('sp_authn_requests_signed is True, but ignoring because pysaml2 does not support it for %s' , BINDING_HTTP_REDIRECT )
175
175
else :
176
176
binding = BINDING_HTTP_POST
177
177
# if switched binding still not supported, give up
178
178
if binding not in supported_bindings :
179
- raise UnsupportedBinding ('IDP does not support %s or %s' % (
180
- BINDING_HTTP_POST , BINDING_HTTP_REDIRECT ) )
179
+ raise UnsupportedBinding ('IDP does not support %s or %s' ,
180
+ BINDING_HTTP_POST , BINDING_HTTP_REDIRECT )
181
181
182
182
client = Saml2Client (conf )
183
183
try :
0 commit comments