use user attribut in php
-
hello i try to have the user attribut in a php widget. But i don’t really understand how it goes.
I have try with : $GLOBALS[‘wp-cassify’]->wp_cassify_get_cas_user_datas()
but the only thing that is in is the userid, no attributes.
my return xml is so :
<cas:serviceResponse xmlns:cas=’https://www.yale.edu/tp/cas’>
<cas:authenticationSuccess>
<cas:user>myuser</cas:user>
<cas:attributes>
<cas:Identite>myidentity</cas:Identite>
<cas:region>myregion</cas:region>
<cas:Prenom>myprenom</cas:Prenom>
<cas:test_var>mytestvar</cas:test_var>
<cas:Groupes>mygroupe</cas:Groupes>
<cas:Email>myemail</cas:Email>
<cas:Nom>mynom</cas:Nom>
</cas:attributes>
</cas:authenticationSuccess>
</cas:serviceResponse>if y make a print_r from the $GLOBALS[‘wp-cassify’]->wp_cassify_get_cas_user_datas()
the result is : Array ( [cas_user_id] => myuser )
So there is no attribute.
i have try with $GLOBALS[‘wp-cassify’]->wp_cassify_get_cas_user_datas(‘Groupes’)
nothing.
It is write that the attribute must be with ‘,’ separated, but where and how ???
- The topic ‘use user attribut in php’ is closed to new replies.