So I got all of this working on my test linux box (tried windows before and curl would not authenticate over SSL for some reason). However now I’m at the point where I cannot seem to get any user details. I clearly see in the code that it requests username / fullname / email. However the code here:
$sreg_resp = Auth_OpenID_SRegResponse::fromSuccessResponse($response);
$sreg = $sreg_resp->contents();
foreach ($sreg as $key => $value)
{
$data['success'] .= $this->_set_message('openid_content', array($key, $value), array('%s','%t'));
}
Results in an empty array. Am I doing something wrong?
Also, after I get successful sign in (working for google/yahoo/livejournal), how should I proceed with a user account on my end? Would I use the authenticated string as a ref?
https://www.google.com/accounts/o8/id?id=AItOawlla******1x****8X71kSE
That’s my assumption that I use this id to create a referencing user account, so next time the federated string will reference my local account. Is that so?
Thanks any help is appreciated.