Hello again, I have been able to advance a lot, basically what I had to do to send the email from my server cas to the wordpress client, was to add in my service:
“attributeReleasePolicy”: {
“@class”: “org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy”,
“allowedAttributes”: [“java.util.ArrayList”, [“email”, “name”, “first_name”, “last_name”]]
But now the problem I have is the following and here comes my question:
In email are add it correctly, but I also need the username and alias to be the same email, please see the screenshot here: https://drive.google.com/file/d/1Sq0psl1XorhwaCMmpAbcG83NN_aSscD5/view?usp=sharing
The other thing is that the name and surname even though he sent it, he is not take it correctly, leaves it empty.
This is my log:
<cas:authenticationSuccess>
5492 .| | | | | | <cas:user>org.pac4j.oauth.profile.google2.Google2Profile#11</cas:user>
5492 .| | | | | | <cas:attributes>
5492 .| | | | | | <cas:credentialType>ClientCredential</cas:credentialType>
5492 .| | | | | | <cas:isFromNewLogin>true</cas:isFromNewLogin>
5492 .| | | | | | <cas:authenticationDate>2021-08-23T19:05:44.243281Z</cas:authenticationDate>
5492 .| | | | | | <cas:authenticationMethod>DelegatedClientAuthenticationHandler</cas:authenticationMethod>
5492 .| | | | | | <cas:clientName>Google</cas:clientName>
5492 .| | | | | | <cas:successfulAuthenticationHandlers>DelegatedClientAuthenticationHandler</cas:successfulAuthenticationHandlers>
5492 .| | | | | | <cas:name>Fernando Gonzalez</cas:name>
5492 .| | | | | | <cas:longTermAuthenticationRequestTokenUsed>false</cas:longTermAuthenticationRequestTokenUsed>
5492 .| | | | | | <cas:email>[email protected]</cas:email>
5492 .| | | | | | </cas:attributes>
5492 .| | | | | | </cas:authenticationSuccess>
5492 .| | | | | | </cas:serviceResponse>
5492 .| | | | | |
5492 .| | | | | | [CurlRequest.php:84]
5492 .| | | | | <= true
5492 .| | | | <= true
5492 .| | | | => CAS_Client::_readExtraAttributesCas20(DOMNodeList) [Client.php:3470]
5492 .| | | | | Parse extra attributes: [Client.php:3822]
5492 .| | | | | Array
5492 .| | | | | (
5492 .| | | | | [attributes] => Array
5492 .| | | | | (
5492 .| | | | | [credentialType] => ClientCredential
5492 .| | | | | [isFromNewLogin] => true
5492 .| | | | | [authenticationDate] => 2021-08-23T19:05:44.243281Z
5492 .| | | | | [authenticationMethod] => DelegatedClientAuthenticationHandler
5492 .| | | | | [clientName] => Google
5492 .| | | | | [successfulAuthenticationHandlers] => DelegatedClientAuthenticationHandler
5492 .| | | | | [name] => Fernando Gonzalez
5492 .| | | | | [longTermAuthenticationRequestTokenUsed] => false
5492 .| | | | | [email] => [email protected]
5492 .| | | | | )
What I can do?
Thank you very much in advance.!!