Changes between Version 9 and Version 10 of SharedCookieAuthPlugin


Ignore:
Timestamp:
Dec 17, 2012, 9:49:00 PM (11 years ago)
Author:
Steffen Hoffmann
Comment:

hint on recently added AcctMgr native SSO functionality

Legend:

Unmodified
Added
Removed
Modified
  • SharedCookieAuthPlugin

    v9 v10  
    55SharedCookieAuthPlugin allows cookies to be shared between Trac instances in the same environment (i.e. directory).  The plugin monkey-patches `trac.web.auth.LoginModule` so that cookies get set at `/` instead of `req.base_path` (See following note). The incoming request is then passed by the `authenticate` method of the `IAuthenticator` interface to projects that peer the project of interest to see if the user is authenticated there.  This enables single-sign on for Trac projects in the same directory.
    66
    7 Note: As per request in [trac:ticket:8486 T#8486] a new configuration option, has been introduced to Trac with changeset [trac:changeset:9226 'T:[9226]'], that accomplished this:
     7Note1: As per request in [trac:ticket:8486 T#8486] a new configuration option, has been introduced to Trac with changeset [trac:changeset:9226 'T:[9226]'], that accomplished this:
    88{{{
    99#!cfg
     
    1212}}}
    1313So this has been made a part of Trac, and a simplified plugin version (not yet available) should work for Trac version >= 0.12 without that monkey-patching.
     14
     15Note2: Before recent maintainer take-over, this plugin inspired a native Single-Sign-On functionality in AccountManagerPlugin, that is stable, available since acct_mgr-0.4 and even solves some of the shortcomings of this plugin. Most importantly login/logout works from any Trac environment sharing identical cookie path settings.
    1416
    1517== Configuration ==