Skip to content

Commit f4222b2

Browse files
committed
Minor code cleanup
1 parent b3ebe02 commit f4222b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def login(request,
170170
try:
171171
# do not sign the xml itself, instead us the sigalg to
172172
# generate the signature as a URL param
173-
sigalg = SIG_RSA_SHA1 if getattr(conf, '_sp_authn_requests_signed', False) else None
173+
sigalg = SIG_RSA_SHA1 if sign_requests else None
174174
session_id, result = client.prepare_for_authenticate(
175175
entityid=selected_idp, relay_state=came_from,
176176
binding=binding, sign=False, sigalg=sigalg)

0 commit comments

Comments
 (0)