@netAction opened this Issue on June 23rd 2011

OpenID Plugin

Most of the piwik users already have an OpenID Provider. Googlemail is one for example. If you have a Wordpress site, you can use your login there for piwik too.

Most of the piwik users have more passwords then they can handle.

The plugin creates an column openid in the users table. It needs a verified OpenID in _$_SERVER[REMOTEUSER], which is provided by the Apache module _mod_authopenid.

If the openid field of an user is equal to the OpenID given by Apache the user is logged in. No password needed any longer.

How to install?

You have to use both this plugin and the Apache2 module mod_auth_openid.
[http://findingscience.com/mod_auth_openid/]

<Location /piwik/index.php>
  AuthOpenIDEnabled On
  AuthType OpenID
</Location>

Make sure that the OpenID login only affects index.php but not piwik.php.
You do not have to register OpenIDs in a way like "require user alice bob".
This is piwik's task now.

Edit config/config.inc.php and add openid=http://my-openid.com
to the [superuser] section.

Then you should be able to login to your piwik as superuser.
If you have more users add their OpenIDs in the SQL user table.

Author

Thomas Schmidt [http://netaction.de]

Feedback

Please leave a comment if you have any feedback, suggestion, or bug report.
Keywords: OpenID, Plugin, third-party-plugin

@netAction commented on June 24th 2011

Attachment: Version 0.3
OpenIDLogin.tar

@netAction commented on June 23rd 2011

Bug: Token Auth is not possible.

@netAction commented on June 24th 2011

Version 0.3 has a simple editor for OpenIDs.

  • The superuser can change the OpenIDs of every user except of his own OpenID.
  • Administrators or users with view permissions are not allowed to change any OpenID.
  • To set the OpenID of the superuser edit config/config.inc.php and add to the [superuser] section openid= http: //my-openid.com.

Warning! To use this plugin you need the Apache OpenID module. There is no OpenID client integrated in this plugin.

@robocoder commented on June 26th 2011 Contributor

A lot of users are on shared hosting. You might want to look into using the Zend_OpenId code as a fallback if mod_auth_openid is unavailable.

@mattab commented on February 6th 2014 Owner

Along with the Piwik 2.0 release and new design for Piwik, we have also launched the official Plugins Marketplace to let any developer share their work to the thousands of Piwik users worldwide.

Maybe you'd like to publish your plugin there?

In any case, keep up the good work and we hope you enjoy Piwik 2!

This Issue was closed on February 6th 2014
Powered by GitHub Issue Mirror