1Net::OpenID::Extension(U3s)er Contributed Perl DocumentatNieotn::OpenID::Extension(3)
2
3
4

NAME

6       Net::OpenID::Extension - Base class for OpenID extensions
7

VERSION

9       version 1.20
10

METHODS

12   CLASS->namespace_uris
13       Return a hashref mapping namespace URIs to the aliases you will use to
14       refer to them in the other methods. For example:
15
16           return {
17               'http://example.com/some-extension' => 'someext',
18           };
19
20   CLASS->new_request(@parameters)
21       When your extension is added to the Net::OpenID::ClaimedIdentity object
22       in consumer-land, this method will be called to create a request
23       object. Any additional arguments passed when adding the extension will
24       be passed through verbatim in @parameters.
25
26       The object you return here should at minimum provide the interface
27       defined in Net::OpenID::ExtensionMessage.
28
29       You can return "undef" here if you have nothing useful to return.
30
31   CLASS->received_request(\%args)
32       In server-land, when a caller asks for the request object for your
33       extension this method will be called to create a request object.  %args
34       maps the aliases you returned from the "namespace_uris" method to a
35       hashref of the key-value pairs provided in that namespace.
36
37       The object you return here should at minimum provide the interface
38       defined in Net::OpenID::ExtensionMessage, and should behave identically
39       to the corresponding object returned from "new_request".
40
41       You can return "undef" here if you have nothing useful to return.
42
43   CLASS->new_response(@parameters)
44       When your extension is added to the response in server-land, this
45       method will be called to create a response object. Any additional
46       arguments passed when adding the extension will be passed through
47       verbatim in @parameters.
48
49       You can return "undef" here if you have nothing useful to return.
50
51   CLASS->received_response(\%args)
52       In consumer-land, when a caller asks for the request object for your
53       extension in Net::OpenID::VerifiedIdentity this method will be called
54       to create a response object.  %args maps the aliases you returned from
55       the "namespace_uris" method to a hashref of the key-value pairs
56       provided in that namespace.
57
58       You can return "undef" here if you have nothing useful to return.
59
60
61
62perl v5.32.0                      2020-07-28         Net::OpenID::Extension(3)
Impressum