{
    "content": [
        {
            "type": "text",
            "text": "# Net::OpenID::Extension (perldoc)\n\n## NAME\n\nNet::OpenID::Extension - Base class for OpenID extensions\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::OpenID::Extension",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::OpenID::Extension - Base class for OpenID extensions",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 44,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::OpenID::Extension - Base class for OpenID extensions\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 1.20\n",
                "subsections": []
            },
            "METHODS": {
                "content": "CLASS->namespaceuris\nReturn a hashref mapping namespace URIs to the aliases you will use to refer to them in the\nother methods. For example:\n\nreturn {\n'http://example.com/some-extension' => 'someext',\n};\n\nCLASS->newrequest(@parameters)\nWhen your extension is added to the Net::OpenID::ClaimedIdentity object in consumer-land, this\nmethod will be called to create a request object. Any additional arguments passed when adding\nthe extension will be passed through verbatim in @parameters.\n\nThe object you return here should at minimum provide the interface defined in\nNet::OpenID::ExtensionMessage.\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->receivedrequest(\\%args)\nIn server-land, when a caller asks for the request object for your extension this method will be\ncalled to create a request object. %args maps the aliases you returned from the \"namespaceuris\"\nmethod to a hashref of the key-value pairs provided in that namespace.\n\nThe object you return here should at minimum provide the interface defined in\nNet::OpenID::ExtensionMessage, and should behave identically to the corresponding object\nreturned from \"newrequest\".\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->newresponse(@parameters)\nWhen your extension is added to the response in server-land, this method will be called to\ncreate a response object. Any additional arguments passed when adding the extension will be\npassed through verbatim in @parameters.\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->receivedresponse(\\%args)\nIn consumer-land, when a caller asks for the request object for your extension in\nNet::OpenID::VerifiedIdentity this method will be called to create a response object. %args maps\nthe aliases you returned from the \"namespaceuris\" method to a hashref of the key-value pairs\nprovided in that namespace.\n\nYou can return \"undef\" here if you have nothing useful to return.\n",
                "subsections": []
            }
        }
    }
}