Commit 58b7900e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Saml fixes.

parent 519f0e7a
......@@ -68,7 +68,18 @@ def prepare_flask_request(request):
if hostname == 'enc-production-nomad':
return {
'https': 'on' if request.scheme == 'https' else 'off',
'http_host': request.host,
'http_host': request.host + '/api',
'server_port': 443,
'script_name': request.path,
'get_data': request.args.copy(),
# Uncomment if using ADFS as IdP, https://github.com/onelogin/python-saml/pull/144
# 'lowercase_urlencoding': True,
'post_data': request.form.copy()
}
elif hostname == 'enc-production-hv-nomad':
return {
'https': 'on' if request.scheme == 'https' else 'off',
'http_host': request.host + '/api',
'server_port': 443,
'script_name': request.path,
'get_data': request.args.copy(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment