Tags:
create new tag
, view all tags

OpenIdRpContribDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on OpenIdRpContrib contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on OpenIdRpContrib

-- IanKluft - 2010-04-17

Hi,

I get the following error

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't locate object method "Vars" via package "TWiki::Request"

I am trying on very latest code from "trunk" repository... My LocalSite.cfg looks similar to the following:

$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::OpenID';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::OpenIDMapping';

$TWiki::cfg{OpenIdRpContrib}{Debug} = 0;
$TWiki::cfg{OpenIdRpContrib}{OpenIDProviders} = [ 
    "AOL",      "https://openid.aol.com/",
    "Google",   "https://www.google.com/accounts/o8/id",
    "Hyves", "http://www.hyves.nl/",
    "MyID.net", "http://myid.net/",
    "MyOpenID", "http://myopenid.com/",
    "MySpace",  "http://api.myspace.com/openid",
    "NTT !MyDocomo", "https://i.mydocomo.com/",
    "Verisign", "https://pip.verisignlabs.com/",
];
$TWiki::cfg{OpenIdRpContrib}{AutoRegisterUser} = 1;
$TWiki::cfg{OpenIdRpContrib}{AutoCreateUser} = 0;
$TWiki::cfg{OpenIdRpContrib}{TWikiRegistrationWeb} = 'TWiki';
$TWiki::cfg{OpenIdRpContrib}{OPHostWhilelist} = '';
$TWiki::cfg{OpenIdRpContrib}{OPHostBlacklist} = '';
$TWiki::cfg{OpenIdRpContrib}{EmailDomBlacklist} = '' ;
$TWiki::cfg{OpenIdRpContrib}{ua_class} = 'LWP::UserAgent';
$TWiki::cfg{OpenIdRpContrib}{required_root} = $TWiki::cfg{DefaultUrlHost};
$TWiki::cfg{OpenIdRpContrib}{req_fields1} = 'fullname,email';
$TWiki::cfg{OpenIdRpContrib}{opt_fields1} = 'nickname,country,timezone';
$TWiki::cfg{OpenIdRpContrib}{policy_url1} = '';
$TWiki::cfg{OpenIdRpContrib}{req_fields2} = 'firstname,lastname,email';
$TWiki::cfg{OpenIdRpContrib}{opt_fields2} = 'nickname,country,timezone';
$TWiki::cfg{OpenIdRpContrib}{UserMenuThresh1} = '25';
$TWiki::cfg{OpenIdRpContrib}{ForbiddenAccounts} = 'TWikiContributor,TWikiGuest,TWikiRegistrationAgent,UnknowUser';
$TWiki::cfg{OpenIdRpContrib}{NoUserAddId} = 0;
$TWiki::cfg{OpenIdRpContrib}{NoUserDelId} = 0;
$TWiki::cfg{OpenIdRpContrib}{nonce_pattern} = "GJxvv_%s";

Am I missing something?

-- SopanShewale - 2010-04-17

Thank you very much IanKluft for creating this integration! It was a lot of work, but it was worth while: You created an extensive integration with a very professional outcome that is beneficial to the TWiki ecosystem!

-- PeterThoeny - 2010-05-03

Just for log - I get following error in browser:

cannot initiate OpenID

no_identity_server: The provided URL doesn't declare its OpenID identity server. 

In Apache log:


[Sun May 09 02:56:24 2010] [error] [client ::1] Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at /usr/local/share/perl/5.10.0/Crypt/DH.pm line 6, referer: http://localhost/432/bin/view

This is happening on Ubuntu - with TWiki 4.3.2 release I will write my fix here ...

-- SopanShewale - 2010-05-08

One needs to install CPAN:Math::BigInt::GMP and CPAN:Math::BigInt::Pari Modules.

One needs to install GNU MP (aka libgmp) library. On Ubuntu - this can be installed by command:


# apt-get install libgmp3-dev

I am still facing issue with the installation of this Plugin - this time different errror


Sun May 09 03:23:04 2010] [error] [client ::1] debug: provider button selected: Google = https://www.google.com/accounts/o8/id, referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] Use of uninitialized value $id in length at /var/www/432/lib/TWiki/LoginManager/OpenID.pm line 650., referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] [DEBUG Net::OpenID::Consumer] Cache MISS for https://www.google.com/accounts/o8/id, referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] [DEBUG Net::OpenID::Consumer] Cache MISS for https://www.google.com/accounts/o8/id, referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] [DEBUG Net::OpenID::Consumer] fail(no_head_tag) Couldn't find OpenID servers due to no head tag, referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] [DEBUG Net::OpenID::Consumer] fail(no_identity_server) The provided URL doesn't declare its OpenID identity server., referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] Use of uninitialized value $_[3] in join or string at /var/www/432/lib/TWiki/LoginManager/OpenID.pm line 204., referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0
[Sun May 09 03:23:04 2010] [error] [client ::1] debug: login: https://www.google.com/accounts/o8/id claimed ID: , referer: http://localhost/432/bin/login/Main/Jump?topicparent=Main.Jump;nowysiwyg=0;origurl=%2F432%2Fbin%2Fedit%2FMain%2FJump%3Ftopicparent%3DMain.Jump%3Bnowysiwyg%3D0

I will write the fix here..

-- SopanShewale - 2010-05-08

I'm making a patch with a Config.spec file so that configure will handle OpenIdRpContrib correctly. FYI this will necessitate renaming TWiki::LoginManager::OpenID to TWiki::LoginManager::OpenIDLogin and TWiki::Users::OpenIDMapping to TWiki::Users::OpenIDUserMapping.

-- IanKluft - 2011-02-04

Good idea.

-- PeterThoeny - 2011-02-04

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2012-06-28 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.