hi
my json file is:
....
"attributeReleasePolicy" : {
"@class" : "org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy",
"principalAttributesRepository" : {
"@class" :
"org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
}
"allowedAttributes" : [ "java.util.ArrayList", [ "mail", "givenName"] ]
"authorizedToReleaseCredentialPassword" : false,
"authorizedToReleaseProxyGrantingTicket" : false
},
...
and in client side i have:
phpCAS::client(CAS_VERSION_3_0,'xxx',443,'cas');
...
$attr = phpCAS::getAttributes();
my response is (don't involve my attribute mail and givenName) :
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
AEF4 .| | | | | | <cas:authenticationSuccess>
AEF4 .| | | | | | <cas:user>xxx</cas:user>
AEF4 .| | | | | |
AEF4 .| | | | | | <cas:attributes>
AEF4 .| | | | | |
AEF4 .| | | | | |
<cas:LdapAuthenticationHandler.dn>xxxxxxxxx</cas:LdapAuthenticationHandler.dn>
AEF4 .| | | | | |
AEF4 .| | | | | |
<cas:longTermAuthenticationRequestTokenUsed>false</cas:longTermAuthenticationRequestTokenUsed>
AEF4 .| | | | | |
AEF4 .| | | | | |
<cas:isFromNewLogin>true</cas:isFromNewLogin>
AEF4 .| | | | | |
AEF4 .| | | | | |
<cas:authenticationDate>2017-02-01T10:46:15.737+03:30</cas:authenticationDate>
AEF4 .| | | | | |
AEF4 .| | | | | |
AEF4 .| | | | | | </cas:attributes>
AEF4 .| | | | | |
AEF4 .| | | | | | </cas:authenticationSuccess>
AEF4 .| | | | | | </cas:serviceResponse>
please help me
thnks
On Fri, Feb 3, 2017 at 4:10 AM, Warren White <[email protected]> wrote:
> Also, you must use PHP CAS 3.0, I have had the same problem, somewhere it
> is documented that CAS 2.0 does not provide attributes with PHP CAS
> So, you must set the server version when you initialize:
> // Initialize phpCAS
> phpCAS::client(CAS_VERSION_3_0, ...
>
> This is what I added in my service registry:
> ...
> "attributeReleasePolicy" : {
> "@class" : "org.jasig.cas.services.ReturnAllAttributeReleasePolicy",
> ...
>
>
> --
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines: https://apereo.github.io/cas/
> Mailing-Lists.html
> - CAS documentation website: https://apereo.github.io/cas
> - CAS project website: https://github.com/apereo/cas
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/57c93d2c-5e27-4b26-8c18-
> 4f6f2e96101a%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/57c93d2c-5e27-4b26-8c18-4f6f2e96101a%40apereo.org?utm_medium=email&utm_source=footer>
> .
>
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAErVME2B%3DPPbaipSDO3vPzX2%2BiJ4aAoSWG_pqWiiF4QxtQq83A%40mail.gmail.com.