title: Integrating with SAML in onelogin
body: <p>I'm trying to understand SAML and building a simple PHP app that will talk to <a href="https://hub.docker.com/r/kristophjunge/test-saml-idp/" rel="nofollow noreferrer">a docker image of a SAML IDP</a>. I set that up an got it running on port 8081.</p>
  
  <p>I setup the IDP config:</p>
  
  <pre><code>'idp' =&gt; [
      // Identifier of the IdP entity  (must be a URI)
      'entityId' =&gt; 'app.example.com',
      // SSO endpoint info of the IdP. (Authentication Request protocol)
      'singleSignOnService' =&gt; [
      // URL Target of the IdP where the Authentication Request Message
      // will be sent.
      'url' =&gt; 'http://localhost:8081/simplesaml/saml2/idp/metadata.php',
  </code></pre>
  
  <p>I'm unsure what to put in the SP config for the URL value though:</p>
  
  <pre><code>'sp' =&gt; [
      // Identifier of the SP entity  (must be a URI)
      'entityId' =&gt; 'http://authproxy.example.com',
      // Specifies info about where and how the &lt;AuthnResponse&gt; message MUST be
      // returned to the requester, in this case our SP.
      'assertionConsumerService' =&gt; [
          // URL Location where the &lt;Response&gt; from the IdP will be returned
          'url' =&gt; '',
  </code></pre>
  
  <p>Do I have to write that endpoint myself? If so what does it have to return?</p>