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/"><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