Net::OpenID::VerifiedIdentity(3pm) | User Contributed Perl Documentation | Net::OpenID::VerifiedIdentity(3pm) |
Net::OpenID::VerifiedIdentity - Object representing a verified OpenID identity
version 1.18
use Net::OpenID::Consumer; my $csr = Net::OpenID::Consumer->new; .... my $vident = $csr->verified_identity or die $csr->err; my $url = $vident->url;
After Net::OpenID::Consumer verifies a user's identity and does the signature checks, it gives you this Net::OpenID::VerifiedIdentity object, from which you can learn more about the user.
Suggestions for improving this function are welcome, but you'll probably get more satisfying results if you make use of the data returned by the Simple Registration (SREG) extension, which allows the user to choose a preferred nickname to use on your site.
In most cases you'll probably want to use signed_extension_fields instead, to avoid attacks where a man-in-the-middle alters the extension fields in transit.
Note that for OpenID 1.1 transactions only Simple Registration (SREG) 1.1 is supported.
$sreg = $vident->signed_extension_fields( 'http://openid.net/extensions/sreg/1.1', );
An important gotcha to bear in mind is that for OpenID 2.0 responses no extension fields can be considered signed unless the corresponding extension namespace declaration is also signed. If that is not the case, this method will behave as if no extension fields for that URI were signed.
2005-05-24: A future module will take a Net::OpenID::VerifiedIdentity object and create an OpenID profile object so you don't have to manually parse all those documents to get profile information.
See Net::OpenID::Consumer for author, copyrignt and licensing information.
Net::OpenID::Consumer
Net::OpenID::ClaimedIdentity
Net::OpenID::Server
Website: <http://openid.net/>
2022-06-30 | perl v5.34.0 |