PHP Consumer Example/ Extension Arguments

Zhang Yining yining at zhangyining.net
Tue Apr 10 04:01:15 PDT 2007


Hi Paul,

the optional extension argument are comma-separated.

so you just need one line like the following:

$auth_request->addExtensionArg('sreg', 'optional', 'email,postcode');

> To test Extension Arguments I added in try_auth.php
> 
>   $auth_request->addExtensionArg('sreg', 'optional', 'postcode); # 
> just after the similar line for email
> 
> This had the effect of correctly passing the postcode from my OpenID 
> through to finish_auth.php.  However , it caused the email address to 
> no longer be passed.  Is this a defect or is there a problem with 
> passing more than one extension argument?
-- 

Zhang Yining
URL:         http://www.zhangyining.net | http://www.yining.org
mailto:      yining at zhangyining.net | yining at ectoplasm.org
Fingerprint: 25C8 47AE 30D5 4C0D A4BB  8CF2 3C2D 585F A905 F033


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.openidenabled.com/pipermail/dev/attachments/20070410/08f4d07e/attachment.pgp 


More information about the Dev mailing list