-
Notifications
You must be signed in to change notification settings - Fork 391
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
phpCAS::getAttributes gives me an empty array #390
Comments
The phpcas debug contains a raw text dump of the server response that is logged before any processing. If you don't see any attributes there the issues is on the server side and this is nothing we can diagnose/fix. On the CAS server side you typically have to configure per application if any attributes are shared. There is a service registry where this is normally configured. |
When we look at the log of the CAS server, it sends the attributes. |
Please have a look at the phpcas debug log what data phpcas retrieves via HTTP from the CAS server. There is a very good reason we store the original text response.... Having attributes in the CAS server does not mean they are actually transmitted to a specific service. |
Here's what the log says : I don't have more on the application side, while on the CAS server side, we see that the attributes were sent at each connexion... |
You can see XML serviceResponse from you CAS server that is following the: Response Body This is the unprocessed html body of the serviceValidate response from your CAS server. As I expected there are no attributes present. That means the CAS server is not releasing them .... I also can see that the response is malformed. No sure if you doctored with some items to remove sensitive URL/data but the XML is broken. (e.g. missing < > ) In one of our phpunit tests you can see examples of such responses incl. attributes https://github.com/apereo/phpCAS/blob/master/test/CAS/Tests/Cas20AttributesTest.php We support multiple different styles...
|
Can we close the ticket? |
Closing due to inactivity... |
Hello !
I'm using phpCAS for the authentication on my symfony application. The connection works well as I have a ticket and I have the username.
But I don't have the attributes that I should also get. We checked the log of the CAS server, it sends the attributes, but on the application side, the response I have is this one.
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationSuccess> <cas:user>...</cas:user> </cas:authenticationSuccess> </cas:serviceResponse>
I don't understand why I don't have the attributes I should get.
`\phpCAS::setDebug('/temp_log/log.txt');
I tried with CAS_Client also, but I still don't get the attributes. If you could help me please understand why it doesn't work, it would so cool ! Thank you in advance !
The text was updated successfully, but these errors were encountered: