fgf2001
Forum Replies Created
-
Perfect I am clear about what you tell me, please one more question, where do you map the data that I get from the CAS server, with the wordpress user, I need to make a request to a service of mine, before I map your plugin , with my updated data.
Thx!!!!
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=sharingThe 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.!!Hello Paul, Thank you for answering me, without a doubt when you solve this, I will tell you the solution
Do you have any idea how I can do to see the data that is coming to wordpress, since I know what I am sending, and in the Authorizer configuration, I am placing the name of the email field that I am Sending from my cas server, I am placing it correctly, do you know in any way where I can write in the log, or see a message, or some other way, so I can see what is data coming to wordpress?