Net::OpenID::Extension - Base class for OpenID extensions
version 1.16
Return a hashref mapping namespace URIs to the aliases you will use to refer to them in the other methods. For example:
return { 'http://example.com/some-extension' => 'someext', };
When your extension is added to the Net::OpenID::ClaimedIdentity object in consumer-land, this method will be called to create a request object. Any additional arguments passed when adding the extension will be passed through verbatim in @parameters.
@parameters
The object you return here should at minimum provide the interface defined in Net::OpenID::ExtensionMessage.
You can return undef here if you have nothing useful to return.
undef
In server-land, when a caller asks for the request object for your extension this method will be called to create a request object. %args maps the aliases you returned from the namespace_uris method to a hashref of the key-value pairs provided in that namespace.
%args
namespace_uris
The object you return here should at minimum provide the interface defined in Net::OpenID::ExtensionMessage, and should behave identically to the corresponding object returned from new_request.
new_request
When your extension is added to the response in server-land, this method will be called to create a response object. Any additional arguments passed when adding the extension will be passed through verbatim in @parameters.
In consumer-land, when a caller asks for the request object for your extension in Net::OpenID::VerifiedIdentity this method will be called to create a response object. %args maps the aliases you returned from the namespace_uris method to a hashref of the key-value pairs provided in that namespace.
To install Net::OpenID::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OpenID::Common
CPAN shell
perl -MCPAN -e shell install Net::OpenID::Common
For more information on module installation, please visit the detailed CPAN module installation guide.