title: How to configuration of IDP metadata and SP metadata in Spring Security SAML sample?
body: <p>I want to deal with Spring Security SAML. For this, I start to explore <a href="http://docs.spring.io/spring-security-saml/docs/1.0.x/reference/html/chapter-quick-start.html" rel="nofollow">Spring Security SAML</a>. At the beginning, I create an account at <a href="http://www.ssocircle.com/en/" rel="nofollow">SSOCircle</a>. Than I  configurated of IDP metadata and generation of SP metadata (4.2.2 and 4.2.3). At <code>entityId</code> I set:</p>
  
  <pre><code> &lt;bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata.MetadataGeneratorFilter"&gt;
      &lt;constructor-arg&gt;
          &lt;bean class="org.springframework.security.saml.metadata.MetadataGenerator"&gt;
              &lt;property name="entityId" value="http://idp.ssocircle.com"/&gt;
          &lt;/bean&gt;
      &lt;/constructor-arg&gt;
   &lt;/bean&gt;
  </code></pre>
  
  <p>When I start application, I have:</p>
  
  <pre><code>Error occurred:
  Reason: Unable to do Single Sign On or Federation.
  </code></pre>
  
  <p>or </p>
  
  <pre><code>Error occurred:
  Reason: Unable to get AuthnRequest.
  </code></pre>
  
  <p>How to configure Spring Security SAML?</p>