Net::Op...tension(3)
πΈ NAME πΈ
okay bestie, this page is literally Net::Op...tension(3) β yes, that's the manual name, abbreviations and all π
β and it's part of the User Contributed Perl Documentation. The actual module is Net::OpenID::Extension, and it's the base class for OpenID extensions. That's the whole NAME vibe, and it ate. π¦
β¨ VERSION β¨
version 1.20 β that's the version, no cap. π
π METHODS π
okay so these are the CLASS->... methods, bestie. Lowkey the whole extension personality lives here, and I'm obsessed. β¨
π¦ CLASS->namespace_uris π¦
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',
};
π CLASS->new_request(@parameters) π
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.
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. Yes bestie, the undef escape hatch is valid. π«Ά
π CLASS->received_request(\%args) π
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.
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".
You can return "undef" here if you have nothing useful to return. π
πΈ CLASS->new_response(@parameters) πΈ
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.
You can return "undef" here if you have nothing useful to return. π
β CLASS->received_response(\%args) β
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.
You can return "undef" here if you have nothing useful to return. π
mwah π this page is from perl v5.42.0, dated 2016-02-13, and it's literally the Net::Op...tension(3) manual β user-contributed Perl documentation energy, periodt. β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-OpenID-Common 1.20-bp160.1.4 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms