We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 726d39f commit 4a05573Copy full SHA for 4a05573
1 file changed
djangosaml2/views.py
@@ -193,7 +193,7 @@ def login(request,
193
http_response = render(request, post_binding_form_template, {
194
'target_url': location,
195
'params': {
196
- 'SAMLRequest': base64.b64encode(binary_type(request_xml)),
+ 'SAMLRequest': base64.b64encode(binary_type(request_xml, 'UTF-8')),
197
'RelayState': came_from,
198
},
199
})
0 commit comments