hint about openid timeouts
authorChristian Weiske <christian.weiske@netresearch.de>
Wed, 22 Jul 2015 08:37:09 +0000 (10:37 +0200)
committerChristian Weiske <christian.weiske@netresearch.de>
Wed, 22 Jul 2015 08:37:09 +0000 (10:37 +0200)
www/index.php

index 3a32eea..2e6b4c8 100644 (file)
@@ -201,6 +201,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
 
     try {
         $o = new \OpenID_RelyingParty($returnTo, $realm, $me);
+        //if you get timeouts (errors like
+        // OpenID error: Request timed out after 3 second(s)
+        //) then uncomment the following line which disables
+        // all timeouts:
+        //$o->setRequestOptions(array('follow_redirects' => true));
         $authRequest = $o->prepare();
         $url = $authRequest->getAuthorizeURL();
         header("Location: $url");