Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMDocument::loadXML(): Argument #1 ($source) must not be empty #431

Open
dimasdikii opened this issue Jan 16, 2023 · 2 comments
Open

DOMDocument::loadXML(): Argument #1 ($source) must not be empty #431

dimasdikii opened this issue Jan 16, 2023 · 2 comments

Comments

@dimasdikii
Copy link

image

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
@phy25
Copy link
Member

phy25 commented Jan 16, 2023

Could you provide debug logs by any chance? It’s a config on the phpCAS class that you can turn on.

@dimasdikii
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants