<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">Hello all,</div><div class="gmail_default"><br></div><div class="gmail_default">I'm trying to set up a Shibboleth IdP server to test our application's handling of SAML responses. I'm trying to imitate the following workflow:<br><br></div><div class="gmail_default">1. A user logs in via company portal</div><div class="gmail_default">2. Company portal generates SAML document and redirects user to our application</div><div class="gmail_default">3. User passes SAML document to our application, and our application parses the SAML document, using a pre-configured public key to verify the origin of the SAML document</div><div class="gmail_default">4. Our application parses out user information and returns an authentication token for the user to use for all subsequent interactions with our application</div><div class="gmail_default"><br></div><div class="gmail_default">I'm trying to use the `unicon/shibboleth-idp` Docker image to mock this company portal that generates a SAML document. My understanding is that this is an example of an IdP-initiated workflow, or equivalently, an Unsolicited SSO workflow (SAML2.SSO in <a href="https://wiki.shibboleth.net/confluence/display/IDP30/UnsolicitedSSOConfiguration" target="_blank" style="font-family:Arial,Helvetica,sans-serif">https://wiki.shibboleth.net/confluence/display/IDP30/UnsolicitedSSOConfiguration</a>). The approach I'm thinking is:</div><div class="gmail_default"><br></div><div class="gmail_default">1. Register 'docker.for.mac.internal:8000' as an SP (where 8000 is whatever port our application is running on in development)</div><div class="gmail_default">2. Configure password authentication for that SP<br>3. Upload a file containing users and passwords I'd like to use for authentication</div><div class="gmail_default">4. Access '/idp/profile/SAML2/Unsolicited/SSO?providerId=providerOfSP' with username/password in the request body</div><div class="gmail_default">    * This request will return a 302 HTTP response containing the SAML document<br>    * In development, it would automatically redirect to our application, which would handle the HTTP response containing the SAML document</div><div class="gmail_default">    * In testing, we can just extract the SAML document from the HTTP response and run tests on that</div><div class="gmail_default"><br></div><div class="gmail_default">I'm perusing the documentation, but there's a lot of configuration and I'm not quite sure where to start. I vaguely feel like I'm supposed to edit relying-party.xml and password-authn-config.xml, but I'm not sure what I'm supposed to do. Any help would be much appreciated. Thanks!</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8000001907349px">Brandon Chinn</span><br></div><div>LeapYear Technologies (<a href="http://leapyear.io" target="_blank">http://leapyear.io</a>)</div></div></div></div></div></div></div></div>