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 3a32eea7d9e10d7e781d77e6a9734fd26a43db4d..2e6b4c8c4bb0671977816a67320e415994146020 100644 (file)
@@ -201,6 +201,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
 
     try {
         $o = new \OpenID_RelyingParty($returnTo, $realm, $me);
 
     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");
         $authRequest = $o->prepare();
         $url = $authRequest->getAuthorizeURL();
         header("Location: $url");