Skip to content

Commit ce04e77

Browse files
authored
Fix typos
1 parent dfb0f1d commit ce04e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangosaml2/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def login(request,
170170
try:
171171
# do not sign the xml itself, instead use the sigalg to
172172
# generate the signature as a URL param
173-
sig_alg_option_map = {'sha1': SIG_RSA_SHA1',
174-
'sha256': SIG_RSA_SHA256'}
173+
sig_alg_option_map = {'sha1': SIG_RSA_SHA1,
174+
'sha256': SIG_RSA_SHA256}
175175
sig_alg_option = getattr(conf, '_sp_authn_requests_signed_alg', 'sha1')
176176
sigalg = sig_alg_option_map[sig_alg_option] if sign_requests else None
177177
session_id, result = client.prepare_for_authenticate(

0 commit comments

Comments
 (0)