<div dir="ltr">We're getting pulled in to some AWS work by our virtualization group.  They've been scouring google for command line tools, and would rather not invest in a lot of local development.  One of said tools was written to authenticate to AWS against a Shibboleth IdP using ECP (<a href="https://github.com/aziz/dotfiles/blob/master/bash/plugins/aws.plugin.bash">https://github.com/aziz/dotfiles/blob/master/bash/plugins/aws.plugin.bash</a>)<div><div><br></div><div>I'm not sure how it would even work because the script specifies the HTTP-POST binding.. and the AWS metadata doesn't have a POAS (ECP) binding / endpoint.  If we try it using the POST binding, the IDP complains (unsurprisingly?):</div></div><div><br></div><div><div>2016-02-04 15:26:26,255 - ERROR [net.shibboleth.utilities.java.support.xml.BasicParserPool:50] - 141.213.171.204 - XML Parsing Error</div><div>org.xml.sax.SAXParseException: Premature end of file.</div><div><span class="" style="white-space:pre"> </span>at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)</div><div>2016-02-04 15:26:26,257 - ERROR [org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder:151] - 141.213.171.204 - Error unmarshalling message from input stream</div><div>net.shibboleth.utilities.java.support.xml.XMLParserException: Unable to parse inputstream, it contained invalid XML</div></div><div>...</div><div><div>2016-02-04 15:26:26,266 - DEBUG [org.opensaml.saml.saml2.binding.impl.AddECPResponseHeaderHandler:60] - 141.213.171.204 - Message Handler:  No ACS location available in message context</div><div>2016-02-04 15:26:26,266 - DEBUG [org.opensaml.saml.common.binding.impl.AddChannelBindingsHeaderHandler:83] - 141.213.171.204 - Message Handler:  No ChannelBindings to add, nothing to do</div></div><div><br></div><div><br></div><div>/Should/ this work?  Seems like it shouldn't... IdP ECP endpoint + SP HTTP-POST endpoint?  </div><div><br></div><div>Does anyone have command line tools for interacting with shibboleth authenticated AWS that they'd recommend or point me at?</div><div><br></div><div>thanks!</div><div><br></div><div>Liam</div></div>