phpCAS
phpCAS copied to clipboard
DOMDocument::loadXML(): Argument #1 ($source) must not be empty

I've got ticket response from cas server after login, but I got this error when I'm trying to do phpCAS::checkAuthentication()
I'm using
- Laravel 9
- Latest phpCAS
Could you provide debug logs by any chance? It’s a config on the phpCAS class that you can turn on.
@phy25 this is the debug logs. ticket response & hostname is hidden for security
D534 .START (2023-01-16 20:27:30) phpCAS-1.6.0 ****************** [CAS.php:512] D534 .=> phpCAS::checkAuthentication() [SsoLoginController.php:25] D534 .| => CAS_Client::checkAuthentication() [CAS.php:1141] D534 .| | => CAS_Client::isAuthenticated() [Client.php:1530] D534 .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1588] D534 .| | | | no user found [Client.php:1834] D534 .| | | <= false D534 .| | | CAS 2.0 ticket `ST-595-nl1HXO0ruDchXXXX-XXXX' is present [Client.php:1645] D534 .| | | => CAS_Client::validateCAS20('', '', '', false) [Client.php:1648] D534 .| | | | [Client.php:3428] D534 .| | | | => CAS_Client::getServerServiceValidateURL() [Client.php:3434] D534 .| | | | | => CAS_Client::getURL() [Client.php:475] D534 .| | | | | | => CAS_ServiceBaseUrl_Static::get() [Client.php:3960] D534 .| | | | | | | Returning static server name: http://localhost:8000/ [Static.php:65] D534 .| | | | | | <= true D534 .| | | | | | Final URI: http://localhost:8000/api/sso/login [Client.php:3974] D534 .| | | | | <= 'http://localhost:8000/api/sso/login' D534 .| | | | <= 'https://xxx.xxx/cas/serviceValidate?service=http%3A%2F%2Flocalhost%3A8000%2Fapi%2Fsso%2Flogin' D534 .| | | | => CAS_Client::_readURL('https://xxx.xxx/cas/serviceValidate?service=http%3A%2F%2Flocalhost%3A8000%2Fapi%2Fsso%2Flogin&ticket=ST-595-nl1HXO0ruDchXXXX-XXXX', NULL, '', NULL) [Client.php:3449] D534 .| | | | | => CAS_Request_CurlRequest::sendRequest() [AbstractRequest.php:242] D534 .| | | | | | Response Body: D534 .| | | | | | D534 .| | | | | | [CurlRequest.php:84] D534 .| | | | | <= true D534 .| | | | <= true