diff options
author | Jamie Lennox <jamielennox@redhat.com> | 2015-08-26 12:25:31 +1000 |
---|---|---|
committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-08-26 06:24:27 +0000 |
commit | e0276c65364bcb8a4a3fe1ad1c91899b1325836c (patch) | |
tree | 2136da5568f1c7a05ef79d5cee3d669d00976eda /keystoneclient/contrib | |
parent | ce7aea4dd074e32d1dde164a40c64b0bd8e1dbc6 (diff) | |
download | python-keystoneclient-e0276c65364bcb8a4a3fe1ad1c91899b1325836c.tar.gz |
Fix Accept header in SAML2 requests
The ; separator allows providing parameters to a type not separating
type options. This means that in strict type checks like those performed
by mod_auth_mellon the check for accept type fails.
Change-Id: Ieeaa74b304921daef68497fec77cc6629ab2f0a2
Closes-Bug: #1488722
Diffstat (limited to 'keystoneclient/contrib')
-rw-r--r-- | keystoneclient/contrib/auth/v3/saml2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/contrib/auth/v3/saml2.py b/keystoneclient/contrib/auth/v3/saml2.py index fc85f49..929d99e 100644 --- a/keystoneclient/contrib/auth/v3/saml2.py +++ b/keystoneclient/contrib/auth/v3/saml2.py @@ -126,7 +126,7 @@ class Saml2UnscopedToken(_BaseSAMLPlugin): SAML2_HEADER_INDEX = 0 ECP_SP_EMPTY_REQUEST_HEADERS = { - 'Accept': 'text/html; application/vnd.paos+xml', + 'Accept': 'text/html, application/vnd.paos+xml', 'PAOS': ('ver="urn:liberty:paos:2003-08";"urn:oasis:names:tc:' 'SAML:2.0:profiles:SSO:ecp"') } |