Clean AuthGoogle

This commit is contained in:
Xavier Guimard 2013-10-03 19:55:14 +00:00
parent 8ae9672cf3
commit d29b24e589

View File

@ -3,7 +3,6 @@
##@class ##@class
# Google authentication backend class. # Google authentication backend class.
# The form must return a google_go field
package Lemonldap::NG::Portal::AuthGoogle; package Lemonldap::NG::Portal::AuthGoogle;
use strict; use strict;
@ -11,19 +10,16 @@ use Lemonldap::NG::Portal::Simple;
use Lemonldap::NG::Common::Regexp; use Lemonldap::NG::Common::Regexp;
use LWP::UserAgent; use LWP::UserAgent;
use URI::Escape; use URI::Escape;
use Cache::FileCache;
use constant AXSPECURL => 'http://openid.net/srv/ax/1.0'; use constant AXSPECURL => 'http://openid.net/srv/ax/1.0';
use constant GOOGLEENDPOINT => 'https://www.google.com/accounts/o8/id'; use constant GOOGLEENDPOINT => 'https://www.google.com/accounts/o8/id';
our $VERSION = '1.3.0'; our $VERSION = '1.3.0';
our $initDone;
our $googleEndPoint; our $googleEndPoint;
BEGIN { BEGIN {
eval { eval {
require threads::shared; require threads::shared;
threads::shared::share($initDone);
threads::shared::share($googleEndPoint); threads::shared::share($googleEndPoint);
}; };
} }