r51149 - in /branches/upstream/libjifty-plugin-openid-perl/current: ./ lib/Jifty/Plugin/ lib/Jifty/Plugin/OpenID/ lib/Jifty/Plugin/OpenID/Action/ share/ share/po/ share/web/ share/web/static/ share/web/static/css/ share/web/static/oidimg/ t/TestApp/ t/TestApp/lib/TestApp/ t/TestApp/t/ t/TestApp/var/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sun Jan 17 19:02:56 UTC 2010


Author: jawnsy-guest
Date: Sun Jan 17 19:02:08 2010
New Revision: 51149

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=51149
Log:
[svn-upgrade] Integrating new upstream version, libjifty-plugin-openid-perl (1.01)

Added:
    branches/upstream/libjifty-plugin-openid-perl/current/share/
    branches/upstream/libjifty-plugin-openid-perl/current/share/po/
    branches/upstream/libjifty-plugin-openid-perl/current/share/po/fr.po
    branches/upstream/libjifty-plugin-openid-perl/current/share/po/openid.pot
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/openidplugin.css
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/FriendConnect.gif   (with props)
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/myopenid.png   (with props)
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/openid-icon-small.gif   (with props)
    branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/yfavicon.gif   (with props)
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/t/01-ax-test.t
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/testapp   (with props)
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server-parent.pid
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server.pid
Modified:
    branches/upstream/libjifty-plugin-openid-perl/current/Changes
    branches/upstream/libjifty-plugin-openid-perl/current/MANIFEST
    branches/upstream/libjifty-plugin-openid-perl/current/META.yml
    branches/upstream/libjifty-plugin-openid-perl/current/Makefile.PL
    branches/upstream/libjifty-plugin-openid-perl/current/README
    branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID.pm
    branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm
    branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Dispatcher.pm
    branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/View.pm
    branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/lib/TestApp/View.pm

Modified: branches/upstream/libjifty-plugin-openid-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/Changes?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/Changes (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/Changes Sun Jan 17 19:02:08 2010
@@ -1,4 +1,8 @@
 Revision history for Perl module Jifty::Plugin::OpenID
+
+1.01 Mon, 11 Jan 2010 10:59:19 +0100
+    - add Attribute Exchange management
+    - bump Net::OpenID::Consumer dep
 
 1.00 Wed, 10 Jun 2009 11:55:15 +0200
     - bump version number to avoid conflict with debian

Modified: branches/upstream/libjifty-plugin-openid-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/MANIFEST?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/MANIFEST (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/MANIFEST Sun Jan 17 19:02:08 2010
@@ -22,6 +22,13 @@
 MANIFEST			This list of files
 META.yml
 README
+share/po/fr.po
+share/po/openid.pot
+share/web/static/css/openidplugin.css
+share/web/static/oidimg/FriendConnect.gif
+share/web/static/oidimg/myopenid.png
+share/web/static/oidimg/openid-icon-small.gif
+share/web/static/oidimg/yfavicon.gif
 t/00-load.t
 t/TestApp/bin/jifty
 t/TestApp/etc/config.yml
@@ -29,3 +36,7 @@
 t/TestApp/lib/TestApp/View.pm
 t/TestApp/t/00-model-User.t
 t/TestApp/t/00-openid-test.t
+t/TestApp/t/01-ax-test.t
+t/TestApp/testapp
+t/TestApp/var/jifty-server-parent.pid
+t/TestApp/var/jifty-server.pid

Modified: branches/upstream/libjifty-plugin-openid-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/META.yml?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/META.yml (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/META.yml Sun Jan 17 19:02:08 2010
@@ -1,7 +1,7 @@
 ---
 abstract: 'Provides OpenID authentication for your jifty app'
 author:
-  - 'Alex Vandiver, Cornelius  <cornelius.howl {at} gmail.com >'
+  - 'Alex Vandiver, Cornelius  <cornelius.howl {at} gmail.com >, Yves Agostini'
 distribution_type: module
 generated_by: 'Module::Install version 0.76'
 license: perl
@@ -11,13 +11,14 @@
 name: Jifty-Plugin-OpenID
 no_index:
   directory:
+    - share
     - inc
     - t
 requires:
   Cache::FileCache: 0
   Jifty: 0
   LWPx::ParanoidAgent: 0
-  Net::OpenID::Consumer: 0
+  Net::OpenID::Consumer: 1.03
 resources:
   license: http://dev.perl.org/licenses/
-version: 1.00
+version: 1.01

Modified: branches/upstream/libjifty-plugin-openid-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/Makefile.PL?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/Makefile.PL (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/Makefile.PL Sun Jan 17 19:02:08 2010
@@ -3,7 +3,7 @@
 all_from('lib/Jifty/Plugin/OpenID.pm');
 
 requires('Jifty');
-requires('Net::OpenID::Consumer');
+requires('Net::OpenID::Consumer' => '1.03' );
 requires('Cache::FileCache');
 # suspend this test on 1.00 will be back in 1.01
 #requires('Test::OpenID::Server' );

Modified: branches/upstream/libjifty-plugin-openid-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/README?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/README (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/README Sun Jan 17 19:02:08 2010
@@ -83,11 +83,43 @@
             h1 { "Done" };
         };
 
+  Attribute Exchange
+    You can retrieve informations from remote profile on authentication
+    server with OpenID Attribute Exchange service extension.
+
+    Set in your config.yml
+
+        - OpenID:
+           ax_param: openid.ns.ax=http://openid.net/srv/ax/1.0&openid.ax.mode=fetch_request&openid.ax.type.email=http://axschema.org/contact/email&openid.ax.type.firstname=http://axschema.org/namePerson/first&openid.ax.type.lastname=http://axschema.org/namePerson/last&openid.ax.required=firstname,lastname,email
+           ax_values: value.email,value.firstname,value.lastname
+           ax_mapping: "{ 'email': 'value.email', 'name': 'value.firstname value.lastname' }"
+
+    this parameters are usuable for all OpenID endpoints supporting
+    Attribute Exchange extension. They can be overriden in your application.
+    Watch and/or override "openid/wayf" template from
+    Jifty::Plugin::OpenID::View.
+
+    Or you can use in your view "show('openid/wayf','/url_return_to');".
+
+   ax_param
+    is the url send to authentication server. It defines namespace, mode,
+    attributes types and requested attributes.
+
+    hints : MyOpenID use schema.openid.net schemas instead of axschema.org,
+    Google provides lastname and firstname, Yahoo only fullname
+
+   ax_values
+    keys of attributes values read from authentication server response.
+
+   ax_mapping
+    mapping of recieve values with our applicalication fields in json
+    format.
+
 AUTHORS
-    Alex Vandiver, Cornelius <cornelius.howl {at} gmail.com >
+    Alex Vandiver, Cornelius <cornelius.howl {at} gmail.com >, Yves Agostini
 
 LICENSE
-    Copyright 2005-2009 Best Practical Solutions, LLC.
+    Copyright 2005-2010 Best Practical Solutions, LLC.
 
     This program is free software and may be modified and distributed under
     the same terms as Perl itself.

Modified: branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID.pm?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID.pm (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID.pm Sun Jan 17 19:02:08 2010
@@ -4,7 +4,7 @@
 package Jifty::Plugin::OpenID;
 use base qw/Jifty::Plugin/;
 
-our $VERSION = '1.00';
+our $VERSION = '1.01';
 
 =head1 NAME
 
@@ -95,13 +95,55 @@
         h1 { "Done" };
     };
 
+=head2 Attribute Exchange
+
+You can retrieve informations from remote profile on authentication server with
+ OpenID Attribute Exchange service extension.
+
+Set in your config.yml
+
+    - OpenID:
+       ax_param: openid.ns.ax=http://openid.net/srv/ax/1.0&openid.ax.mode=fetch_request&openid.ax.type.email=http://axschema.org/contact/email&openid.ax.type.firstname=http://axschema.org/namePerson/first&openid.ax.type.lastname=http://axschema.org/namePerson/last&openid.ax.required=firstname,lastname,email
+       ax_values: value.email,value.firstname,value.lastname
+       ax_mapping: "{ 'email': 'value.email', 'name': 'value.firstname value.lastname' }"
+
+this parameters are usuable for all OpenID endpoints supporting Attribute
+Exchange extension. They can be overriden in your application. Watch and/or
+override C<openid/wayf> template from L<Jifty::Plugin::OpenID::View>.
+
+Or you can use in your view C<show('openid/wayf','/url_return_to');>.
+
+
+=head3 ax_param
+
+is the url send to authentication server. It defines namespace, mode, attributes
+types and requested attributes.
+
+hints : MyOpenID use schema.openid.net schemas instead of axschema.org, Google
+provides lastname and firstname, Yahoo only fullname
+
+=head3 ax_values
+
+keys of attributes values read from authentication server response.
+
+=head3 ax_mapping
+
+mapping of recieve values with our applicalication fields in json format.
+
 =cut
+
+__PACKAGE__->mk_accessors(qw(ax_mapping ax_values ax_param));
 
 sub init {
     my $self = shift;
     my %opt = @_;
     my $ua_class = $self->get_ua_class;
     eval "require $ua_class";
+    $self->ax_param($opt{ax_param});
+    $self->ax_mapping($opt{ax_mapping});
+    $self->ax_values($opt{ax_values});
+
+    Jifty->web->add_css('openidplugin.css');
 }
 
 sub get_ua_class {
@@ -142,11 +184,11 @@
 
 =head1 AUTHORS
 
-Alex Vandiver, Cornelius  <cornelius.howl {at} gmail.com >
+Alex Vandiver, Cornelius  <cornelius.howl {at} gmail.com >, Yves Agostini
 
 =head1 LICENSE
 
-Copyright 2005-2009 Best Practical Solutions, LLC.
+Copyright 2005-2010 Best Practical Solutions, LLC.
 
 This program is free software and may be modified and distributed under the same terms as Perl itself.
 

Modified: branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm Sun Jan 17 19:02:08 2010
@@ -26,7 +26,16 @@
     param 'openid' =>
         label is _('OpenID URL'),
         is mandatory,
-        hints is 'For example: you.livejournal.com';
+        hints is _('For example: you.livejournal.com');
+
+    param 'ax_param' =>
+        render as 'Hidden';
+
+    param 'ax_values' =>
+        render as 'Hidden';
+
+    param 'ax_mapping' =>
+        render as 'Hidden';
 
     param 'return_to' =>
         render as 'Hidden',
@@ -39,10 +48,16 @@
 
 =cut
 
+use Jifty::JSON qw /jsonToObj/;
+
 sub take_action {
     my $self   = shift;
     my $openid = $self->argument_value('openid');
     my $path   = $self->argument_value('return_to');
+    my $plugin = Jifty->find_plugin('Jifty::Plugin::OpenID');
+    my $ax_mapping   = $self->argument_value('ax_mapping') || $plugin->ax_mapping();
+    my $ax_param   = $self->argument_value('ax_param') || $plugin->ax_param();
+    my $ax_values   = $self->argument_value('ax_values') || $plugin->ax_values();
 
     my $baseurl = Jifty->web->url;
     my $csr = Jifty::Plugin::OpenID->get_csr( required_root => $baseurl );
@@ -50,7 +65,7 @@
     my $claimed_id = $csr->claimed_identity( $openid );
 
     if ( not defined $claimed_id ) {
-        $self->result->error(_("Invalid OpenID URL.  Please check to make sure it is correct.  (@{[$csr->err]})"));
+        $self->result->error(_("Invalid OpenID URL.  Please check to make sure it is correct.  (%1)",@{[$csr->err]}));
         return;
     }
 
@@ -67,8 +82,11 @@
                         trust_root => $baseurl,
                         delayed_return => 1
                     );
+    Jifty->web->session->set(ax_mapping => jsonToObj($ax_mapping));
+    Jifty->web->session->set(ax_values => $ax_values);
+    $ax_param = '&'.$ax_param if $ax_param !~ m/^&/;
 
-    Jifty->web->_redirect( $check_url . '&openid.sreg.optional=nickname' );
+    Jifty->web->_redirect( $check_url . '&openid.sreg.optional=nickname'.$ax_param );
     return 1; # should never get here
 }
 

Modified: branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Dispatcher.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Dispatcher.pm?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Dispatcher.pm (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/Dispatcher.pm Sun Jan 17 19:02:08 2010
@@ -47,7 +47,7 @@
         }
         else {
             $user->user_object->link_to_openid( $openid );
-            $result->message(_("The OpenID '$openid' has been linked to your account."));
+            $result->message(_("The OpenID '%1' has been linked to your account.",$openid));
         }
     }
     redirect '/';
@@ -80,11 +80,33 @@
             # User needs to create account still
             Jifty->web->session->set( openid => $openid );
             Jifty->log->info("got openid: $openid");
+            my $Mapping = Jifty->web->session->get('ax_mapping');
+            if ($Mapping) {
+                # get ns, google set is own ns, usually ext1
+                # this need to be provided by csr
+                my $signed = get('openid.signed');
+                my $ns = $1 if $signed =~ m/ns\.(\w+?),/;
+                # get values
+                my $AX=();
+                foreach my $param ( split ',', Jifty->web->session->get('ax_values') ) {
+                    $AX->{$param} = get('openid.'.$ns.'.'.$param);
+                };
+                # map values
+                foreach my $param (keys %$Mapping ) {
+                    my $val = $Mapping->{$param};
+                    $val =~ s/(value\.\w+(\.\d)?)/$AX->{$1}/g;
+                    $Mapping->{$param} = $val;
+                };
+                $Mapping->{openid} = $openid;
+            };
             my $nick = get('openid.sreg.nickname');
             if ( $nick ) {
                 redirect( Jifty::Web::Form::Clickable->new( url => '/openid/create', parameters => { 
                     nickname => $nick, 
                     openid => $openid } ));
+            }
+            elsif ($Mapping) {
+                redirect( Jifty::Web::Form::Clickable->new( url => '/openid/create', parameters => $Mapping ) );
             }
             else {
                 redirect( Jifty::Web::Form::Clickable->new( url => '/openid/create' ) );

Modified: branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/View.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/View.pm?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/View.pm (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/lib/Jifty/Plugin/OpenID/View.pm Sun Jan 17 19:02:08 2010
@@ -45,7 +45,7 @@
 };
 
 template 'openid/create' => page {
-    title is 'Set your username';
+    title is _('Set your username');
     my ( $action, $next ) = get( 'action', 'next' );
 
     p {
@@ -61,10 +61,80 @@
         );
     };
     Jifty->web->form->start( call => $next , name => 'openid-user-create' );
-    render_action($action);
+    my $openidSP = Jifty->web->session->get('ax_mapping');
+    if ($openidSP) {
+        foreach my $param (keys %$openidSP) {
+            # keep get to use validation
+            render_param($action, $param, default_value => get($param) );
+            div { class is "form_field";
+                span { class is "hints";
+                    outs( _( 'A link to confirm this email will be sent to receive later notifications.' ) );
+                }
+            } if ($param eq 'email');
+        }
+    }
+    else {
+        render_action($action);
+        };
     form_submit( label => _('Continue'), submit => $action );
     Jifty->web->form->end;
 };
 
+# optionnal fragment to add direct links to Google, Yahoo,
+# MyOpenID login
+
+template 'openid/wayf' => sub {
+    my ( $self, $return_to ) = @_;
+    div { attr { class => ''; };
+        form {
+            my $google = new_action( class => 'AuthenticateOpenID', moniker => 'authenticateopenid' );
+            render_param($google, 'openid', render_as => 'hidden', default_value => 'www.google.com/accounts/o8/id');
+            render_param($google, 'ax_param', render_as => 'hidden', default_value => "openid.ns.ax=http://openid.net/srv/ax/1.0&openid.ax.mode=fetch_request&openid.ax.type.email=http://axschema.org/contact/email&openid.ax.type.firstname=http://axschema.org/namePerson/first&openid.ax.type.lastname=http://axschema.org/namePerson/last&openid.ax.required=firstname,lastname,email");
+            render_param($google, 'ax_mapping', render_as => 'hidden', default_value => "{ 'email': 'value.email', 'name': 'value.firstname value.lastname' }");
+            render_param($google, 'ax_values', render_as => 'hidden', default_value => "value.email,value.firstname,value.lastname" );
+            render_param($google,'return_to', render_as => 'hidden', default_value => '/openid/verify_and_login');
+            img { src is '/static/oidimg/FriendConnect.gif'; };
+            outs_raw(
+                Jifty->web->return(
+                as_link => 1,
+                to => $return_to,
+                label => _("Sign in with your Google Account"),
+                submit => $google
+                ));
+        };
+        form {
+            my $yahoo = new_action( class => 'AuthenticateOpenID', moniker => 'authenticateopenid' );
+            render_param($yahoo, 'openid', render_as => 'hidden', default_value => 'me.yahoo.com');
+            render_param($yahoo, 'ax_param', render_as => 'hidden', default_value => "openid.ns.ax=http://openid.net/srv/ax/1.0&openid.ax.mode=fetch_request&openid.ax.type.email=http://axschema.org/contact/email&openid.ax.type.fullname=http://axschema.org/namePerson&openid.ax.required=fullname,email");
+            render_param($yahoo, 'ax_mapping', render_as => 'hidden', default_value => "{ 'email': 'value.email', 'name': 'value.fullname' }");
+            render_param($yahoo, 'ax_values', render_as => 'hidden', default_value => "value.email,value.fullname" );
+            render_param($yahoo,'return_to', render_as => 'hidden', default_value => '/openid/verify_and_login');
+            img { src is '/static/oidimg/yfavicon.gif'; };
+            outs_raw(
+                Jifty->web->return(
+                as_link => 1,
+                to => $return_to,
+                label => _("Sign in with your Yahoo account"),
+                submit => $yahoo
+                ));
+        };
+        form {
+            my $myoid = new_action( class => 'AuthenticateOpenID', moniker => 'authenticateopenid' );
+            render_param($myoid, 'openid', render_as => 'hidden', default_value => 'www.myopenid.com');
+            render_param($myoid, 'ax_param', render_as => 'hidden', default_value => "openid.ns.ax=http://openid.net/srv/ax/1.0&openid.ax.mode=fetch_request&openid.ax.type.email=http://schema.openid.net/contact/email&openid.ax.type.nickname=http://schema.openid.net/namePerson/friendly&openid.ax.required=nickname,email");
+            render_param($myoid, 'ax_mapping', render_as => 'hidden', default_value => "{ 'email': 'value.email.1', 'name': 'value.nickname.1' }");
+            render_param($myoid, 'ax_values', render_as => 'hidden', default_value => "value.email.1,value.nickname.1" );
+            render_param($myoid,'return_to', render_as => 'hidden', default_value => '/openid/verify_and_login');
+            img { src is '/static/oidimg/myopenid.png'; };
+            outs_raw(
+                Jifty->web->return(
+                as_link => 1,
+                to => $return_to,
+                label => _("Sign in with your MyOpenID Account"),
+                submit => $myoid
+                ));
+        };
+    };
+};
 
 1;

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/po/fr.po
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/po/fr.po?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/share/po/fr.po (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/share/po/fr.po Sun Jan 17 19:02:08 2010
@@ -1,0 +1,106 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:74
+msgid "Continue"
+msgstr "Continuer"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:35
+msgid "Go for it!"
+msgstr "Essayer ces valeurs !"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:59
+msgid "If the username provided conflicts with an existing username or contains invalid characters, you will have to give us a new one."
+msgstr "Si le nom d'utilisateur est déjà utilisé ou contient des caractères non autorisés, vous devez en définir un autre."
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:27
+msgid "If you have a Livejournal or other OpenID account, you don't even need to sign up. Just log in."
+msgstr "Si vous avez un compte OpenID, vous n'avez pas besoin de créer un compte. Vous pouvez directement vous connecter."
+
+#. (@{[$csr->err]})
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:68
+msgid "Invalid OpenID URL.  Please check to make sure it is correct.  (%1)"
+msgstr "URL OpenID incorrecte. Merci de la vérifier.  (%1)"
+
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:45
+msgid "It looks like someone is already using that OpenID."
+msgstr "Cet identifiant OpenID est déjà utilisé par un utilisateur."
+
+#: ../../lib/Jifty/Plugin/OpenID.pm:86
+msgid "Login with OpenID"
+msgstr "Identification OpenID"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:17
+msgid "Login with your OpenID"
+msgstr "Se connecter avec votre OpenID"
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:27
+msgid "OpenID URL"
+msgstr "URL OpenID"
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:29
+msgid "For example: you.livejournal.com"
+msgstr "Par exemple: you.livejournal.com"
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/VerifyOpenID.pm:48
+msgid "OpenID verification failed.  It looks like you cancelled the OpenID verification request."
+msgstr "La vérification OpenID a échouée. Vous avez peut-être annulé la demande de vérification."
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:72
+msgid "A link to confirm this email will be sent to receive later notifications."
+msgstr "Un message pour confirmer cet email vous sera envoyé."
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/VerifyOpenID.pm:57
+msgid "OpenID verification failed: "
+msgstr "Vérification OpenId échouée: "
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:48
+msgid "Set your username"
+msgstr "Définissez votre nom d'utilisateurs"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:96
+msgid "Sign in with your Google Account"
+msgstr "Se connecter avec un compte Google"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:128
+msgid "Sign in with your MyOpenID Account"
+msgstr "Se connecter avec un compte MyOpenID"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:112
+msgid "Sign in with your Yahoo account"
+msgstr "Se connecter avec un compte Yahoo"
+
+#. ($openid)
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:50
+msgid "The OpenID '%1' has been linked to your account."
+msgstr "L'identifiant OpenID '%1' a été attaché à votre compte."
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:53
+msgid "We need you to set a username or quickly check the one associated with your OpenID. Your username is what other people will see when you ask questions or make suggestions"
+msgstr "Vous devez définir ou vérifier le nom d'utilisateur associé à votre IOpenID. C'est ce nom d'utilisateur qui apparaîtra lorsque vous publierez des informations."
+
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:66
+msgid "Welcome back, "
+msgstr "Re-bonjour, "
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/CreateOpenIDUser.pm:94
+msgid "Welcome, "
+msgstr "Bienvenue, "
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:42
+msgid "You already logged in."
+msgstr "Vous êtes déjà connecté."

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/po/openid.pot
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/po/openid.pot?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/share/po/openid.pot (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/share/po/openid.pot Sun Jan 17 19:02:08 2010
@@ -1,0 +1,106 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:74
+msgid "Continue"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:35
+msgid "Go for it!"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:59
+msgid "If the username provided conflicts with an existing username or contains invalid characters, you will have to give us a new one."
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:72
+msgid "A link to confirm this email will be sent to receive later notifications."
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:27
+msgid "If you have a Livejournal or other OpenID account, you don't even need to sign up. Just log in."
+msgstr ""
+
+#. (@{[$csr->err]})
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:68
+msgid "Invalid OpenID URL.  Please check to make sure it is correct.  (%1)"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:45
+msgid "It looks like someone is already using that OpenID."
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID.pm:86
+msgid "Login with OpenID"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:17
+msgid "Login with your OpenID"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:27
+msgid "OpenID URL"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm:29
+msgid "For example: you.livejournal.com"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/VerifyOpenID.pm:48
+msgid "OpenID verification failed.  It looks like you cancelled the OpenID verification request."
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/VerifyOpenID.pm:57
+msgid "OpenID verification failed: "
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:48
+msgid "Set your username"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:96
+msgid "Sign in with your Google Account"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:128
+msgid "Sign in with your MyOpenID Account"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:112
+msgid "Sign in with your Yahoo account"
+msgstr ""
+
+#. ($openid)
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:50
+msgid "The OpenID '%1' has been linked to your account."
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:53
+msgid "We need you to set a username or quickly check the one associated with your OpenID. Your username is what other people will see when you ask questions or make suggestions"
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Dispatcher.pm:66
+msgid "Welcome back, "
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/Action/CreateOpenIDUser.pm:94
+msgid "Welcome, "
+msgstr ""
+
+#: ../../lib/Jifty/Plugin/OpenID/View.pm:42
+msgid "You already logged in."
+msgstr ""

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/openidplugin.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/openidplugin.css?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/openidplugin.css (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/css/openidplugin.css Sun Jan 17 19:02:08 2010
@@ -1,0 +1,11 @@
+
+.argument-openid label {
+  background: #FFFFFF url('/static/oidimg/openid-icon-small.gif') no-repeat scroll 0pt 50%;
+  padding-left: 18px;
+}
+
+
+.openidwayf img {
+  vertical-align:middle;
+}
+

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/FriendConnect.gif
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/FriendConnect.gif?rev=51149&op=file
==============================================================================
Binary file - no diff available.

Propchange: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/FriendConnect.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/myopenid.png
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/myopenid.png?rev=51149&op=file
==============================================================================
Binary file - no diff available.

Propchange: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/myopenid.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/openid-icon-small.gif
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/openid-icon-small.gif?rev=51149&op=file
==============================================================================
Binary file - no diff available.

Propchange: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/openid-icon-small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/yfavicon.gif
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/yfavicon.gif?rev=51149&op=file
==============================================================================
Binary file - no diff available.

Propchange: branches/upstream/libjifty-plugin-openid-perl/current/share/web/static/oidimg/yfavicon.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/lib/TestApp/View.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/lib/TestApp/View.pm?rev=51149&op=diff
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/lib/TestApp/View.pm (original)
+++ branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/lib/TestApp/View.pm Sun Jan 17 19:02:08 2010
@@ -22,6 +22,7 @@
             };
         };
     };
+    show 'openid/wayf', '/';
 };
 
 

Added: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/t/01-ax-test.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/t/01-ax-test.t?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/t/01-ax-test.t (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/t/01-ax-test.t Sun Jan 17 19:02:08 2010
@@ -1,0 +1,16 @@
+#!/usr/bin/env perl
+use Jifty::Test tests => 5;
+use strict;
+use warnings;
+use Jifty::Test::WWW::Mechanize;
+
+
+my $server = Jifty::Test->make_server;
+isa_ok( $server, 'Jifty::Server' );
+my $URL = $server->started_ok;
+my $mech = Jifty::Test::WWW::Mechanize->new;
+$mech->get_ok( $URL . '/' , "get mainpage" );
+$mech->content_contains('www.google.com/accounts/o8/id');
+$mech->get_ok( $URL . '/static/oidimg/FriendConnect.gif' , "get share element" );
+#print $mech->content;
+

Added: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/testapp
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/testapp?rev=51149&op=file
==============================================================================
Binary file - no diff available.

Propchange: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/testapp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server-parent.pid
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server-parent.pid?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server-parent.pid (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server-parent.pid Sun Jan 17 19:02:08 2010
@@ -1,0 +1,1 @@
+2162

Added: branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server.pid
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server.pid?rev=51149&op=file
==============================================================================
--- branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server.pid (added)
+++ branches/upstream/libjifty-plugin-openid-perl/current/t/TestApp/var/jifty-server.pid Sun Jan 17 19:02:08 2010
@@ -1,0 +1,1 @@
+2163




More information about the Pkg-perl-cvs-commits mailing list