I'm just getting started with CAS and I'm having trouble authenticating against 
the demo server @ jasigcas.herokuapp.com

I get redirected to the login page (I use casuser:Mellon). then back to my page 
requiring authentication and see the message:

CAS Authentication failed!
You were not authenticated.
You may submit your request again by clicking here.

my php (I'm using the phpCAS library):
$cas_host = 'jasigcas.herokuapp.com';
$cas_port = 443;
$cas_context = '/cas'; // I've also tried '/login'
phpCAS::setDebug(__DIR__.'/cas_debug.txt');
phpCAS::client(CAS_VERSION_3_0, $cas_host, $cas_port, $cas_context);
phpCAS::setNoCasServerValidation();
phpCAS::forceAuthentication();

In the debug log I see this (empty response body - which seems suspect)

6B4A .|    |    |    |    => 
CAS_Client::_readURL('https://jasigcas.herokuapp.com/login/p3/serviceValidate?service=https%3A%2F%2Fdev.omitted.com%2Ftest%2Fcas.php&ticket=ST-3-SPKfpPmgIPji9VG5moRo-jasigcas.herokuapp.com',
 NULL, NULL, NULL) [Client.php:3123]
6B4A .|    |    |    |    |    => CAS_Request_CurlRequest::sendRequest() 
[AbstractRequest.php:242]
6B4A .|    |    |    |    |    |    Response Body:
6B4A .|    |    |    |    |    |
6B4A .|    |    |    |    |    |     [CurlRequest.php:87]
6B4A .|    |    |    |    |    <= true
6B4A .|    |    |    |    <= true
6B4A .|    |    |    |    => 
CAS_AuthenticationException::__construct(CAS_Client, 'Ticket not validated', 
'https://jasigcas.herokuapp.com/login/p3/serviceValidate?service=https%3A%2F%2Fdev.omitted.com%2Ftest%2Fcas.php&ticket=ST-3-SPKfpPmgIPji9VG5moRo-jasigcas.herokuapp.com',
 false, true, '') [Client.php:3146]
6B4A .

No idea where the problem may lie..

Thanks in advance
-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to