3

I setup the demo with a modified login I found called open-id selector. the login works fine and the identity url comes back, but the SREG data I ask for is never populated, required or optional. I am logging into my page with a gmail account. Here is the code from my try_auth.php that I edited

$sreg_request = Auth_OpenID_SRegRequest::build( // Required array('email'), // Optional array('fullname', 'gender', 'timezone', 'dob', 'country'));

what gives?

AFK
  • 4,333
  • 4
  • 23
  • 22
  • Where you able to get SREG from myopenid? For some reason it comes blank for me from there too. – jayarjo Jul 10 '10 at 15:20

1 Answers1

5

Google's OpenID identity provider doesn't support SREG.

Instead, they support OpenID Attribute Exchange for limited attributes (username and e-mail address, I think). It's newer than SREG, although I'm not sure which is more common in the wild. The Janrain library should support both though, I'd imagine.

If you want to test with an IdP that definitely does support SREG, try MyOpenID.

Chris
  • 10,337
  • 1
  • 38
  • 46
  • Thank you, I wasn't aware it supported only AX and this library does support AX. – AFK Mar 17 '10 at 03:35