| Subject: | Great script, though I wish it would... |  
| Summary: | Package rating comment |  
| Messages: | 3 |  
| Author: | Bugmenotter |  
| Date: | 2008-08-10 21:10:24 |  
| Update: | 2008-12-21 03:04:47 |  
|   |  
 
 | 
 | 
Bugmenotter rated this package as follows:
| Utility:  | Good | 
| Consistency:  | Good | 
| Examples:  | Sufficient | 
| 
 | 
  Bugmenotter - 2008-08-10 21:10:24  
Great script, though I wish it would explain how to get the attributes you want from the provider. I recommend adding this to the class file: 
 
	function GetAttribute($val) { 
	    return $_GET["openid_sreg_".$val]; 
	} 
 
and using GetAttribute to retrieve the attributes you want. You can use it like this: $openid->GetAttribute('fullname') or $openid->GetAttribute('email') 
  
  Steve Love - 2008-08-25 07:19:27 -  In reply to message 1 from Bugmenotter 
You'll find the code to do this in openid-example.php on lines 10 and 11. 
 
Steve Love 
  
  Shashank - 2008-12-21 03:04:47 -  In reply to message 2 from Steve Love 
Steve, the lines 10 and 11 in the example are to *set* the attributes to the openid server request before the request.  
 
I think the original poster of this thread is asking (and I want to know too) about how to *get* the attributes from the openid server.  
 
If everything goes well, then the example just displays "Valid". How can I make it display all the attributes it has brought back, especially nickname and email address?  
  
   |