DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:genericsso

genericsso Plugin

Compatible with DokuWiki

2013-05-10 “Weatherwax”

plugin Allows to authenticate against any SSO system that set environment variables

Last updated on
2015-05-21
Provides
Auth

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to shibbolethauth

Tagged with auth, shibboleth, sso

This plugin replaces shibbolethauth for DokuWiki > 2013-05-10 “Weatherwax”.

It allows to authenticate against any SSO system that sets an environment variable with the user ID after authentication (such as Shibboleth).

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Configuration and Settings

Parameter name Type Signification Example value
emailAttribute string Environment variable to use as the user id and email HTTP_MAIL
alwaysCheck boolean Does the plugin needs to check if the SP session is still open for each request (otherwise the wiki session will only be closed at logout) 0
loginURL string URL to use for loging-in, may contain {target} placeholder that will be replaced by the URL to return to after login http://my-sso-server.tld/sso/login?after_auth_goto={target}
logoutURL string URL to use for loging-out, may contain {target} placeholder that will be replaced by the URL to return to after logout http://my-sso-server.tld/sso/logout?go_back_to={target}

Sample php config using Shibboleth

$conf['plugin']['genericsso']['emailAttribute'] = 'mail';
$conf['plugin']['genericsso']['alwaysCheck'] = 1;
$conf['plugin']['genericsso']['loginURL'] = 'http://'.$_SERVER['SERVER_NAME'].'/Shibboleth.sso/Login?target={target}';
$conf['plugin']['genericsso']['logoutURL'] = 'http://'.$_SERVER['SERVER_NAME'].'/Shibboleth.sso/Logout?return={target}';
plugin/genericsso.txt · Last modified: 2016-01-13 14:37 by Aleksandr