OpenClemson / SwiftECP

A simple Shibboleth ECP client for iOS.
Other
17 stars 3 forks source link

IDP3 requires request to have Content-Type: text/xml #7

Closed nawatts closed 7 years ago

nawatts commented 8 years ago

See https://wiki.shibboleth.net/confluence/display/IDP30/IDP3+ECP+with+Tomcat+and+Apache-Managed+Authentication

Note that for IDP 3, all the test scripts have been modified to set the content type header to text/xml. This is because curl by default will set an inappropriate content type application/x-www-form-urlencoded) that IDP 2 would tolerate, but IDP 3 will not.

The content type is currently set to application/vnd.paos+xml (ECP.swift#L193), so I'm not sure how IDP3 will respond to that.

tptee commented 8 years ago

Last I remember, application/vnd.paos+xml is what actually triggers the ECP profile, but maybe Tomcat/Apache complicates this?

nawatts commented 8 years ago

It has to send that header to the SP.

tptee commented 8 years ago

That makes sense :+1:

twstokes commented 7 years ago

Fixed