OpenID::Lite::Extension::UI - UI extension plugin for OpenID::Lite
RP side
sub login { ... my $checkid_req = $rp->begin( $identifier ) or $your_app->error( $rp->errstr ); $ui_req = OpenID::Lite::Extension::UI->new; $ui_req->mode('popup'); $ui_req->lang('en-US'); $checkid_req->add_extension( $ui_req ); $your_app->redirect_to( $checkid_req->redirect_url( ... ) ); }
OP side
my $res = $op->handle_request( $your_app->request ); if ( $res->is_for_setup ) { my %option; my $ui_req = OpenID::Lite::Extension::UI::Request->from_provider_response($res); if ($ui_req) { if ($ui_req->mode eq 'popup') { $option{template} = 'openid_popup.tt'; } } $your_app->render( %option ); }...
This module is plugin for OpenID::Lite to acomplish UI extension flow on easy way. http://wiki.openid.net/f/openid_ui_extension_draft01.html
OpenID::Lite::Extension::UI::Request
OpenID::Lite::RelyingParty OpenID::Lite::Provider
Lyo Kato, <lyo.kato@gmail.com>
Copyright (C) 2009 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install OpenID::Lite::Extension::UI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenID::Lite::Extension::UI
CPAN shell
perl -MCPAN -e shell install OpenID::Lite::Extension::UI
For more information on module installation, please visit the detailed CPAN module installation guide.