Hi ! Thanks for your answer,
I've just change replace CAS_VERSION_2_0 with SAML_VERSION_1_1 and it work. The solution was there : http://www.mail-archive.com/[email protected]/msg05903.html Thanx for your help ! Michael. Le 02/07/2013 08:34, Francisco Pascual a écrit : > 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] <mailto:[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] > <mailto:[email protected]> as: [email protected] > <mailto:[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 -- 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
