A custom authentication component for Trac.
- python-2.6 +
- trac-0.12 +
You could write your own SSO component based on CustomAuth.
Run: python setup.py bdist_egg
If necessary, create a folder called "plugins" in your Trac environment, and clean up .egg-cache by following command:
$ find . -name '.egg-cache' |xargs rm -rf
Copy the .egg file from the "dist" folder created by step 1 into the "plugins" directory of your Trac environment.
Grant yourself admin permission:
$ cd [trac-instance] $ trac-admin . permission add yourname TRAC_ADMIN
Add following to trac.ini section [components] to get started:
trac.web.auth.loginmodule = disabled custom_auth.auth.loginmodule = enabled
- auto redirect after login successfully
- i18n and l10n support