Changes between Version 8 and Version 9 of SharedCookieAuthPlugin


Ignore:
Timestamp:
Nov 17, 2012, 12:14:40 PM (11 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SharedCookieAuthPlugin

    v8 v9  
    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
     15== Configuration ==
     16
     17To make this work you will need to select one of the project to be the master authenticator, the other (slave) projects should be configured to pass the authenticate request onto the master project. This is to avoid one project to kill the auth_cookie if the login was made in another project. Unfortunately this means that login and logout can only be made in the master project.
     18
     19So for the slave projects you'll need to disable the normal way of authentication while enabling the sharedcookieauth:
     20{{{
     21#!cfg
     22[components]
     23sharedcookieauth.* = enabled
     24trac.web.auth.LoginModule = disabled
     25
     26[trac]
     27auth_cookie_path = /
     28}}}
     29
     30And for the master project:
     31{{{
     32#!cfg
     33[components]
     34sharedcookieauth.* = enabled
     35trac.web.auth.LoginModule = enabled
     36
     37[trac]
     38auth_cookie_path = /
     39}}}
     40
     41The sharedcookieauth should not need to be enabled in the master project, but it shouldn't harm either. Also be aware that the server name used must match or the browser will not share the auth_cookie between the projects
    1442
    1543== Bugs/Feature Requests ==