title: Infinite Redirect with OKTA
body: <p>I have a simple php application which displays a form for user onboarding. I used SimpleSamlPhp as the SP and OKTA as the IDP. I get an infinite redirect when I access the url of the application. These are my settings in OKTA:</p>
  
  <p>My application's url is:<a href="http://service.example.com/Analytics/ui/onboard.php" rel="nofollow">http://service.example.com/Analytics/ui/onboard.php</a>. The same url is set for PostBack url, destination, recipient and Audience Restriction
  On the SP-side I have this piece of code:</p>
  
  <p>require_once('/Applications/XAMPP/xamppfiles/htdocs/simplesamlphp/lib/_autoload.php');
  $as = new SimpleSAML_Auth_Simple('default-sp');
  $as->requireAuth();</p>
  
  <p>Is there something that I am missing?</p>