title: How to integrate Okta SignIn widget and SAML SSO with a Angularjs SPA?
body: <p>I've been trying to implement Okta SSO using SAML with my AngularJS SPA (using the Okta Sign-in widget) with no success.</p>
  
  <p>The widget works OK by itself (without the SAML integration, just the widget). I'm able to authenticate my user's credentials, set the session cookie and redirect to my app homepage.</p>
  
  <p>I followed the instructions from this link (<a href="https://stackoverflow.com/questions/40170464/okta-signin-widget-with-saml">Okta SignIn Widget with SAML</a>) to integrate SAML with no luck.</p>
  
  <p>The widget is able to authenticate my user's credentials but when the IDP (in this case the Okta site) redirects to my app using the "App Embed Link" I got a blank screen and I can see a POST to my app URL with the SAML assertion as a parameter with status 405 (method not allowed).</p>
  
  <p>I'm really lost about this, and the Okta documentation is kind of loose around this matter. Some of my doubts are:</p>
  
  <ol>
  <li>When configuring my app in the Okta admin: What should I put on the
  "Single sign on URL" field? my app login page URL?, or, an endpoint
  URL on my backend in charge of processing the SAML assertion?</li>
  <li>Where should I place my Okta app's X.509 Certificate and IDP login URL?</li>
  </ol>