Changes between Version 13 and Version 14 of SharedCookieAuthPlugin
- Timestamp:
- Nov 27, 2015, 3:41:26 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SharedCookieAuthPlugin
v13 v14 4 4 5 5 This plugin allows cookies to be shared among Trac environments that reside in the same directory, enabling Single-Sign-On to a collection of Trac sites. 6 7 **Note**: This plugin inspired a native Single-Sign-On functionality in AccountManagerPlugin, which is 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.8 6 9 7 == Bugs/Feature Requests … … 31 29 == Configuration 32 30 33 You will need to select one of the project to be the master, and thus responsible for authentication. The other (slave) projects should be configured to pass the authenticate request onto the master project. This is to avoid Trac expiring the `auth_cookie` when the login is made in another project. Unfortunately this means that login and logout can only be made in the master project. 34 35 The slave project will have `LoginModule` disabled and `sharedcookieauth` enabled: 31 Enable `sharedcookieauth` and set the `auth_cookie_path` in every environment that you wish to share authentication. This can be done using a [TracIni#GlobalConfiguration shared configuration]. 36 32 {{{#!ini 37 33 [components] 38 34 sharedcookieauth.* = enabled 39 trac.web.auth.LoginModule = disabled40 35 41 36 [trac] 42 37 auth_cookie_path = / 43 38 }}} 44 45 The master project will have both `LoginModule` and `sharedcookieauth` enabled:46 {{{#!ini47 [components]48 sharedcookieauth.* = enabled49 trac.web.auth.LoginModule = enabled50 51 [trac]52 auth_cookie_path = /53 }}}54 55 In practice `sharedcookieauth` does not need to be enabled in the master project, but neither should it cause any harm. Also be aware that the server name must match for each project or the browser will not share the `auth_cookie` among projects.56 39 57 40 == Recent Changes