Hi, First of all, please refer to documentation in https://wiki.jasig.org/display/CASUM/Attributes.
On the other hand, your problem could be related to administration. You could go to the following page in your cas deployment: /cas/services/manage.html and edit attributes by service to confirm which attributes are selected. Hope this helps 2013/7/1 Michael EDLICH <[email protected]> > Hi ! > > I've some troubles with getAttributes() and getAttribute($key) functions; > > While I have attributes in the ticket returned by CAS, I can not find > anything with phpCAS > > *example PHP:* > > $username = phpCAS::getUser(); => Work fine > print_r(phpCAS::getAttributes()); => gives an empty array > > (same thing with phpCAS::getAttributes('roleAttributeNames') ) > > Where can be the error? Is there a way to view these additional attributes > in PHP? > > Thanks in advance ! > > Michael. > > *ticket** :* > > <Attribute AttributeName="roleAttributeNames" AttributeNamespace= > "http://www.ja-sig.org/products/cas/"<http://www.ja-sig.org/products/cas/>><AttributeValue>UserRole</AttributeValue><AttributeValue>Group1</AttributeValue><AttributeValue>Group4</AttributeValue></Attribute></AttributeStatement><AuthenticationStatement > AuthenticationInstant="2013-07-01T17:12:08.136Z" > AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified"><Subject><NameIdentifier>user1</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:artifact</ConfirmationMethod></SubjectConfirmation></Subject></AuthenticationStatement></Assertion></Response></SOAP-ENV:Body></SOAP-ENV:Envelope> > > > -- > You are currently subscribed to [email protected] as: [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
