Holger Eiboeck > OpenID-Login > OpenID::Login::Extension

Download:
OpenID-Login-0.1.2.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.1.2   Source  

NAME ^

OpenID::Login::Extension - Storage and methods for OpenId extensions, both requesting information and receiving data.

VERSION ^

version 0.1.2

ATTRIBUTES ^

ns

The namespace to use for this extension (eg 'ax' is the one usually used in documentation about attribute exchange).

uri

The type URI for the extension (eg attribute exchange has http://openid.net/srv/ax/1.0).

attributes

The attributes for the extension (everything under openid.[ns].*), stored as a hashref. Internally this is flattened to a single hashref, but a tree structure can be passed in, and intermediate keys will be linked together with '.'.

METHODS ^

get_parameter_string

Collect the internal attributes, and create a single string representing the query of this extension object, usable for an OpenID request.

get_parameter

Get a single extension parameter, this is most likely to be used for extensions that are the result of a request (rather than when creating a request).

set_parameter

Set an extension parameter (or several parameters). Nested parameters are allowed, i.e.

$extension->set_parameter(type => {firstname => 'q1', lastname => 'q2'});

is equivalent to:

$extension->set_parameter('type.firstname' => 'q1', 'type.lastname' => 'q2');

and neither approach will clear any other type.* values that may already be set.

AUTHOR ^

Holger Eiboeck <realholgi@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Holger Eiboeck.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: