Skip to content

Commit 39017b2

Browse files
author
John Dennis
committed
Fix Content-Type, should be "text/xml" not "application/soap+xml"
There was an error in the example for POST'ing the the AuthnRequest to the IdP, the Content-Type header erroneously was "application/soap+xml" when in fact it should have been "text/xml". As background the Content-Type for SOAP 1.1 is "text/xml" but in SOAP 1.2 it was changed to "application/soap+xml". ECP is specificed to used SOAP 1.1. Signed-off-by: John Dennis <[email protected]>
1 parent fe0eb56 commit 39017b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ECP.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ operations.
140140
response = session.post(ecp.msgUrl,
141141
data=ecp.msgBody,
142142
auth=requests.auth.HTTPDigestAuth(user, password)
143-
headers={'Content-Type': 'application/soap+xml'})
143+
headers={'Content-Type': 'text/xml'})
144144
145145
# Process returned SOAP wrapped <Assertion> from IdP
146146
ecp.processResponseMsg(response.text)

0 commit comments

Comments
 (0)