A custom authentication component for Trac. You could write your own SSO component based on CustomAuth.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
custom_auth
.gitignore
README.md
setup.py

README.md

CustomAuth

A custom authentication component for Trac.

Environment requirement:

  • python-2.6 +
  • trac-0.12 +

You could write your own SSO component based on CustomAuth.

Installation

  1. Run: python setup.py bdist_egg

  2. 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

  3. Copy the .egg file from the "dist" folder created by step 1 into the "plugins" directory of your Trac environment.

Configuration

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

TODO

  • auto redirect after login successfully
  • i18n and l10n support