Skip to content

Commit c5a74c7

Browse files
committed
making previous default still work
1 parent 441b8d1 commit c5a74c7

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
@@ -171,7 +171,7 @@ def login(request,
171171
# do not sign the xml itself, instead use the sigalg to
172172
# generate the signature as a URL param
173173
sig_alg = getattr(conf, '_sp_authn_requests_signed_alg', False)
174-
sigalg = SIG_RSA_SHA1 if sign_requests and sig_alg == 'sha1' else None
174+
sigalg = SIG_RSA_SHA1 if sign_requests and sig_alg == 'sha1' or sig_alg==False else None
175175
sigalg = SIG_RSA_SHA256 if sign_requests and sig_alg == 'sha256' else None
176176
session_id, result = client.prepare_for_authenticate(
177177
entityid=selected_idp, relay_state=came_from,

0 commit comments

Comments
 (0)