CAS Authentication failed phpCAS - php

I get error, after successful login in CAS.
CAS Authentication failed! You were not authenticated.You may submit your request again by clicking here. If the problem persists, you may contact the administrator of this site.
and the error in Log file :
PHP Fatal error: Uncaught exception 'CAS_AuthenticationException' in /var/www/CAS-.3.2/CAS/Client.php:2764\nStack trace:\n#0 /var/www/CAS-1.3.2/CAS/Client.php(1224): CAS_Client->validateCAS20('https://sso.jarko...', '', NULL)\n#1 /var/www/CAS-1.3.2/CAS.php(1151): CAS_Client->isAuthenticated()\n#2 /var/www/login.php(8): phpCAS::isAuthenticated()\n#3 {main}\n thrown in /var/www/CAS-1.3.2/CAS/Client.php on line 2764,
any one can help me....??
please

I had the same error before.
I solved the problem after i configure tomcat ssl using keytool of java-7.
Steps:
create store
create cert
import keystore into java-7

Related

Getting error while trying to implement google authentication in my local website

I'm getting following error while trying to implement google authentication in my local website.
Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\social_login_example\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187.
I surfed the given URL but it didn't provide me any useful information to eliminate the error. What is this error and what can I do to remove it.
I'm using chrome web browser and PHP-5.6.8
$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);
Guzzle version 6

No route to host error while login using google plus in PHP

I wanted Google plus login in my PHP website. I tried to integrate it from : http://www.codexworld.com/login-with-google-api-using-php
When I try to login, It throws error:
Fatal error: Uncaught exception 'Google_IOException' with message 'HTTP Error: (0) Failed to connect to accounts.google.com port 443: No route to host' in /home/thewiref/public_html/mastkids.in/test_google/src/io/Google_CurlIO.php:128 Stack trace: #0 /home/thewiref/public_html/mastkids.in/test_google/src/auth/Google_OAuth2.php(101): Google_CurlIO->makeRequest(Object(Google_HttpRequest)) #1 /home/thewiref/public_html/mastkids.in/test_google/src/Google_Client.php(131): Google_OAuth2->authenticate(Array, NULL) #2 /home/thewiref/public_html/mastkids.in/test_google/index.php(8): Google_Client->authenticate() #3 {main} thrown in /home/thewiref/public_html/mastkids.in/test_google/src/io/Google_CurlIO.php on line 128
Same code is working perfect in different domain and server. So what could be issue in this server?
Check your Firewall settings and network connectivity to see if you are able to connect to the network.
Try running the following
<?php
$read = file_get_contents("https://google.com");
echo $read;
If you are able to see the google page(even if it is distorted).
If not then your system has a network connectivity issue or DNS issues.

Fatal Error: CurlException: couldn't connect to host (PHP)

I've been developing an automatic delivery system for my shopify website on my local machine (EasyPHP) and everything worked fine and I've done multiple tests.
I've now transferred and updated everything for my online host (hostgator) and now I'm getting this error.
Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 7: couldn't connect to host [url] https://pas.mob.v7.easfc.ea.com:8095/pow/auth?timestamp=' in
And I have no idea why.
I think the problem is that you have to enable your openssl module. Otherwise you can't make a SSL connection.
You can enable the openssl module in your php.ini.

Facebook SDK error: uncaught curlexception: 28: connect() timed out! thrown in php

I just follow same code from Facebook SDK example.
If FB App point to my local desktop, it will get Facebook uid and user basic information (ex email) if APP get permission from OAUTH request.
But when I upload files to server, executing $facebook->api('/me');
Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in
/xxx/src/facebook.php on line 622
I still can't figure out why. It comes from CURL or SSL setting?
My remote server support SSL and CURL is enabled. My local is only CURL but no SSL support.
I think my Facebook SDK is old version, only facebook.php without base_facebook.php.
I try to use new version but can't run any program because crt error.
You get this error because your host cannot access the Facebook API. It might have an old version of Open SSL, can you check the current version on the server?
Try to connect using SSL from your local setup as well as it might be easier to debug on your local machine.
Also, see about that crt (CRC?) error and try to fix that first (don't shave too many Yak's though).

Gmail 3-legged OAuth access -- Zend_Mail_Protocol_Exception

I'm trying to access Gmail by using three-legged Oauth PHP code provided by Google ('google-mail-xoauth-tools') here: http://code.google.com/apis/gmail/oauth/code.html. I have my domain registered and everything seems to go fine with OAuth, but after I authorize access I get this error:
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message
'cannot connect to host; error = Connection refused (errno = 111 )'
in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php:100
Stack trace: #0 /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php(61):
Zend_Mail_Protocol_Imap->connect('imap.gmail.com', '993', true)
#1 /home/tchaymor/public_html/gmail/three-legged.php(170):
Zend_Mail_Protocol_Imap->__construct('imap.gmail.com', '993', true)
#2 {main} thrown in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php on line 100
This is my first time using OAuth with any Google products, so it could be something totally brainless I'm missing. Any suggestions would be most welcome (as suggestions for easier alternatives). I'm more on the designer rather than coder end, so the simpler the better.
Effectively, this is failing:
fsockopen('ssl://imap.gmail.com', 993);
Several options:
1) The error would suggest google is actively blocking you, perhaps you have tested & failed a bit to much, and just have to wait untill a temporary blockade is lifted.
2) The error would be different, but just to be sure: allow_url_fopen is enabled?
3) Local firewall? (What does a telnet imap.gmail.com 993 from the server give you?)
4) Broken OpenSLL libraries are also possible, try to connect a valid https site: fsockopen("ssl://google.com",443,$errno,$errstr) or die($errstr);

Categories