{"action":"created","issue":{"url":"https://api.github.com/repos/apereo/phpCAS/issues/299","repository_url":"https://api.github.com/repos/apereo/phpCAS","labels_url":"https://api.github.com/repos/apereo/phpCAS/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/apereo/phpCAS/issues/299/comments","events_url":"https://api.github.com/repos/apereo/phpCAS/issues/299/events","html_url":"https://github.com/apereo/phpCAS/issues/299","id":395355402,"node_id":"MDU6SXNzdWUzOTUzNTU0MDI=","number":299,"title":"Invalid request","user":{"login":"lrobinson33","id":46328701,"node_id":"MDQ6VXNlcjQ2MzI4NzAx","avatar_url":"https://avatars2.githubusercontent.com/u/46328701?v=4","gravatar_id":"","url":"https://api.github.com/users/lrobinson33","html_url":"https://github.com/lrobinson33","followers_url":"https://api.github.com/users/lrobinson33/followers","following_url":"https://api.github.com/users/lrobinson33/following{/other_user}","gists_url":"https://api.github.com/users/lrobinson33/gists{/gist_id}","starred_url":"https://api.github.com/users/lrobinson33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrobinson33/subscriptions","organizations_url":"https://api.github.com/users/lrobinson33/orgs","repos_url":"https://api.github.com/users/lrobinson33/repos","events_url":"https://api.github.com/users/lrobinson33/events{/privacy}","received_events_url":"https://api.github.com/users/lrobinson33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-02T19:36:36Z","updated_at":"2019-01-03T03:31:56Z","closed_at":null,"author_association":"NONE","body":"I am not able to authenticate through CAS. I do receive a ticket. Please see log below.\r\n\r\nE20F .START (2019-01-02 14:30:51) phpCAS-1.3.3+ ****************** [CAS.php:469]\r\nE20F .=> phpCAS::client('S1', 'cas-test.gatech.edu', 443, '/cas') [auth.php:21]\r\nE20F .|    => CAS_Client::__construct('S1', false, 'cas-test.gatech.edu', 443, '/cas', true) [CAS.php:360]\r\nE20F .|    |    Starting a new session fvd66skrupea6ujv2hmi6eqia0 [Client.php:906]\r\nE20F .|    <= ''\r\nE20F .<= ''\r\nE20F .=> phpCAS::setCasServerCACert('C:/apps/Apache24x32/htdocs/test/includes/login.gatech.edu.pem') [auth.php:25]\r\nE20F .<= ''\r\nE20F .=> phpCAS::setServerSamlValidateURL('https://cas-test.gatech.edu/cas/serviceValidate') [auth.php:34]\r\nE20F .<= ''\r\nE20F .=> CAS_Client::handleLogoutRequests(true, array (  0 => 'cas-test5.gatech.edu',  1 => 'cas-test6.gatech.edu',)) [CAS.php:1258]\r\nE20F .|    Not a logout request [Client.php:1701]\r\nE20F .<= ''\r\nE20F .=> phpCAS::forceAuthentication() [auth.php:43]\r\nE20F .|    => CAS_Client::forceAuthentication() [CAS.php:1080]\r\nE20F .|    |    => CAS_Client::isAuthenticated() [Client.php:1249]\r\nE20F .|    |    |    => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1362]\r\nE20F .|    |    |    |    no user found [Client.php:1604]\r\nE20F .|    |    |    <= false\r\nE20F .|    |    |    no ticket found [Client.php:1463]\r\nE20F .|    |    <= false\r\nE20F .|    |    => CAS_Client::redirectToCas(false) [Client.php:1258]\r\nE20F .|    |    |    => CAS_Client::getServerLoginURL(false, false) [Client.php:1625]\r\nE20F .|    |    |    |    => CAS_Client::getURL() [Client.php:342]\r\nE20F .|    |    |    |    |    Final URI: https://sisapps-lrobinson33.gatech.edu/test/index.php [Client.php:3498]\r\nE20F .|    |    |    |    <= 'https://sisapps-lrobinson33.gatech.edu/test/index.php'\r\nE20F .|    |    |    <= 'https://cas-test.gatech.edu/cas/login?service=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php'\r\nE20F .|    |    |    Redirect to : https://cas-test.gatech.edu/cas/login?service=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php [Client.php:1632]\r\nE20F .|    |    |    exit()\r\nE20F .|    |    |    -\r\nE20F .|    |    -\r\nE20F .|    -\r\nFE09 .START (2019-01-02 14:31:26) phpCAS-1.3.3+ ****************** [CAS.php:469]\r\nFE09 .=> phpCAS::client('S1', 'cas-test.gatech.edu', 443, '/cas') [auth.php:21]\r\nFE09 .|    => CAS_Client::__construct('S1', false, 'cas-test.gatech.edu', 443, '/cas', true) [CAS.php:360]\r\nFE09 .|    |    Starting a new session fvd66skrupea6ujv2hmi6eqia0 [Client.php:906]\r\nFE09 .|    |    Ticket 'ST-7-ApsvEch2ZTiaghSCCiyE-cas-test5.gatech.edu' found [Client.php:989]\r\nFE09 .|    <= ''\r\nFE09 .<= ''\r\nFE09 .=> phpCAS::setCasServerCACert('C:/apps/Apache24x32/htdocs/test/includes/login.gatech.edu.pem') [auth.php:25]\r\nFE09 .<= ''\r\nFE09 .=> phpCAS::setServerSamlValidateURL('https://cas-test.gatech.edu/cas/serviceValidate') [auth.php:34]\r\nFE09 .<= ''\r\nFE09 .=> CAS_Client::handleLogoutRequests(true, array (  0 => 'cas-test5.gatech.edu',  1 => 'cas-test6.gatech.edu',)) [CAS.php:1258]\r\nFE09 .|    Not a logout request [Client.php:1701]\r\nFE09 .<= ''\r\nFE09 .=> phpCAS::forceAuthentication() [auth.php:43]\r\nFE09 .|    => CAS_Client::forceAuthentication() [CAS.php:1080]\r\nFE09 .|    |    => CAS_Client::isAuthenticated() [Client.php:1249]\r\nFE09 .|    |    |    => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1362]\r\nFE09 .|    |    |    |    no user found [Client.php:1604]\r\nFE09 .|    |    |    <= false\r\nFE09 .|    |    |    SAML 1.1 ticket `ST-7-ApsvEch2ZTiaghSCCiyE-cas-test5.gatech.edu' is present [Client.php:1444]\r\nFE09 .|    |    |    => CAS_Client::validateSA('', NULL, NULL, false) [Client.php:1447]\r\nFE09 .|    |    |    |    => CAS_Client::getServerSamlValidateURL() [Client.php:2028]\r\nFE09 .|    |    |    |    |    => CAS_Client::getURL() [Client.php:477]\r\nFE09 .|    |    |    |    |    |    Final URI: https://sisapps-lrobinson33.gatech.edu/test/index.php [Client.php:3498]\r\nFE09 .|    |    |    |    |    <= 'https://sisapps-lrobinson33.gatech.edu/test/index.php'\r\nFE09 .|    |    |    |    <= 'https://cas-test.gatech.edu/cas/serviceValidate?TARGET=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php'\r\nFE09 .|    |    |    |    => CAS_Client::_readURL('https://cas-test.gatech.edu/cas/serviceValidate?TARGET=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php', NULL, NULL, NULL) [Client.php:2036]\r\nFE09 .|    |    |    |    |    => CAS_Client::_buildSAMLPayload() [Client.php:2781]\r\nFE09 .|    |    |    |    |    <= '<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Header/><SOAP-ENV:Body><samlp:Request xmlns:samlp=\"urn:oasis:names:tc:SAML:1.0:protocol\"  MajorVersion=\"1\" MinorVersion=\"1\" RequestID=\"_192.168.16.51.1024506224022\" IssueInstant=\"2002-06-19T17:03:44.022Z\"><samlp:AssertionArtifact>ST-7-ApsvEch2ZTiaghSCCiyE-cas-test5.gatech.edu</samlp:AssertionArtifact></samlp:Request></SOAP-ENV:Body></SOAP-ENV:Envelope>'\r\nFE09 .|    |    |    |    |    => CAS_Request_CurlRequest::sendRequest() [AbstractRequest.php:242]\r\nFE09 .|    |    |    |    |    |    CURL: Set CURLOPT_CAINFO C:/apps/Apache24x32/htdocs/test/includes/login.gatech.edu.pem [CurlRequest.php:129]\r\nFE09 .|    |    |    |    |    |    Response Body: \r\nFE09 .|    |    |    |    |    |    \r\nFE09 .|    |    |    |    |    |    \r\nFE09 .|    |    |    |    |    |    \r\nFE09 .|    |    |    |    |    |    <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>\r\nFE09 .|    |    |    |    |    |    \t<cas:authenticationFailure code='INVALID_REQUEST'>\r\nFE09 .|    |    |    |    |    |    \t\t&#039;service&#039; and &#039;ticket&#039; parameters are both required\r\nFE09 .|    |    |    |    |    |    \t</cas:authenticationFailure>\r\nFE09 .|    |    |    |    |    |    </cas:serviceResponse>\r\nFE09 .|    |    |    |    |    |    \r\nFE09 .|    |    |    |    |    |     [CurlRequest.php:84]\r\nFE09 .|    |    |    |    |    <= true\r\nFE09 .|    |    |    |    <= true\r\nFE09 .|    |    |    |    server version: S1 [Client.php:2045]\r\nFE09 .|    |    |    |    bad XML root node (should be `Envelope' instead of `serviceResponse' [Client.php:2077]\r\nFE09 .|    |    |    |    => CAS_AuthenticationException::__construct(CAS_Client, 'SA not validated', 'https://cas-test.gatech.edu/cas/serviceValidate?TARGET=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php', false, true, '<cas:serviceResponse xmlns:cas=\\'http://www.yale.edu/tp/cas\\'>\t<cas:authenticationFailure code=\\'INVALID_REQUEST\\'>\t\t&#039;service&#039; and &#039;ticket&#039; parameters are both required\t</cas:authenticationFailure></cas:serviceResponse>') [Client.php:2082]\r\nFE09 .|    |    |    |    |    => CAS_Client::getURL() [AuthenticationException.php:76]\r\nFE09 .|    |    |    |    |    <= 'https://sisapps-lrobinson33.gatech.edu/test/index.php'\r\nFE09 .|    |    |    |    |    CAS URL: https://cas-test.gatech.edu/cas/serviceValidate?TARGET=https%3A%2F%2Fsisapps-lrobinson33.gatech.edu%2Ftest%2Findex.php [AuthenticationException.php:79]\r\nFE09 .|    |    |    |    |    Authentication failure: SA not validated [AuthenticationException.php:80]\r\nFE09 .|    |    |    |    |    Reason: bad response from the CAS server [AuthenticationException.php:85]\r\nFE09 .|    |    |    |    |    CAS response: \r\nFE09 .|    |    |    |    |    \r\nFE09 .|    |    |    |    |    \r\nFE09 .|    |    |    |    |    <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>\r\nFE09 .|    |    |    |    |    \t<cas:authenticationFailure code='INVALID_REQUEST'>\r\nFE09 .|    |    |    |    |    \t\t&#039;service&#039; and &#039;ticket&#039; parameters are both required\r\nFE09 .|    |    |    |    |    \t</cas:authenticationFailure>\r\nFE09 .|    |    |    |    |    </cas:serviceResponse>\r\nFE09 .|    |    |    |    |     [AuthenticationException.php:101]\r\nFE09 .|    |    |    |    |    exit()\r\nFE09 .|    |    |    |    |    -\r\nFE09 .|    |    |    |    -\r\nFE09 .|    |    |    -\r\nFE09 .|    |    -\r\nFE09 .|    -\r\n"},"comment":{"url":"https://api.github.com/repos/apereo/phpCAS/issues/comments/451048701","html_url":"https://github.com/apereo/phpCAS/issues/299#issuecomment-451048701","issue_url":"https://api.github.com/repos/apereo/phpCAS/issues/299","id":451048701,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTA0ODcwMQ==","user":{"login":"jfritschi","id":1036402,"node_id":"MDQ6VXNlcjEwMzY0MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1036402?v=4","gravatar_id":"","url":"https://api.github.com/users/jfritschi","html_url":"https://github.com/jfritschi","followers_url":"https://api.github.com/users/jfritschi/followers","following_url":"https://api.github.com/users/jfritschi/following{/other_user}","gists_url":"https://api.github.com/users/jfritschi/gists{/gist_id}","starred_url":"https://api.github.com/users/jfritschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfritschi/subscriptions","organizations_url":"https://api.github.com/users/jfritschi/orgs","repos_url":"https://api.github.com/users/jfritschi/repos","events_url":"https://api.github.com/users/jfritschi/events{/privacy}","received_events_url":"https://api.github.com/users/jfritschi/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T03:31:56Z","updated_at":"2019-01-03T03:31:56Z","author_association":"CONTRIBUTOR","body":"You are using SAML mode and you have manually configured the wrong validation URL. Servicevalidate does not do SAML.\r\n\r\nPlease use our examples to debug your issues \r\n\r\n"}}
{"actor":{"display_login":"jfritschi"}}