diff options
| author | Jamie Lennox <jamielennox@redhat.com> | 2015-08-26 12:25:31 +1000 |
|---|---|---|
| committer | Jamie Lennox <jamielennox@redhat.com> | 2015-08-27 10:57:05 +1000 |
| commit | 3cc752937e322e4f16eebf048f74c58aec2b2f73 (patch) | |
| tree | 1ae51ea0a6d30328489964c76619fe006ee463d2 | |
| parent | a0e7391a10beff1afd6f37329a627c12994b38f2 (diff) | |
| download | python-keystoneclient-3cc752937e322e4f16eebf048f74c58aec2b2f73.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
(cherry picked from commit e0276c65364bcb8a4a3fe1ad1c91899b1325836c)
| -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 f3bb105..cff1ced 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"') } |
