Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Net::OpenID::ExtensionUsermContributedOPerlDD:Extension::SimpleRegistration(3)

NAME
       Net::OpenID::Extension::SimpleRegistration - Support for	the Simple
       Registration extension (SREG)

VERSION
       version 1.20

SYNOPSIS
       In Consumer...

	   my $sreg_req	= $claimed_identity->add_extension_request('Net::OpenID::Extension::SimpleRegistration', (
	       required_fields => [qw(nickname email)],
	       optional_fields => [qw(country language timezone)],
	       policy_url => "http://example.com/policy.html",
	   ));

       Then, in	Server,	when handling the authentication request...

	   # FIXME: What object	do we have in ::Server that can	hold this method?
	   my $sreg_req	= $something->get_extension_request('Net::OpenID::Extension::SimpleRegistration');
	   my $required_fields = $sreg_req->required_fields;
	   my $optional_fields = $sreg_req->optional_fields;
	   my $policy_url = $sreg_req->policy_url;

       When Server sends back its response...

	   # FIXME: Again, what	object do we have to hold this method?
	   my $sreg_res	= $something->add_extension_response('Net::OpenID::Extension::SimpleRegistration', (
	       nickname	=> $nickname,
	       email =>	$email,
	   ));

       And finally, when back in Consumer receiving the	response:

	   my $sreg_res	= $verified_identity->get_extension_response('Net::OpenID::Extension::SimpleRegistration');
	   my $nickname	= $sreg_res->nickname;
	   my $email = $sreg_res->email;
	   my $country = $sreg_res->country;
	   my $language	= $sreg_res->language;
	   my $timezone	= $sreg_res->timezone;

perl v5.24.1			 Net::OpenID::Extension::SimpleRegistration(3)

NAME | VERSION | SYNOPSIS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Net::OpenID::Extension::SimpleRegistration&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help