Add group-based configurable login page
|Reported by:||rjollos||Owned by:|
I've been using the GroupBasedRedirectionPlugin to redirect users in specific groups to a login page other than WikiStart. The source for the plugin can be found on GitHub, here. The plugin implements a component that acts as the default_handler (see t:TracIni#trac-section) for requests to the base URL and allows the login page to be specified for each group. For example, given the groups: managers, devs and vnv the following configuration:
[group-based-redirection] base_url = wiki/%s black_list = managers
would result in the following redirections:
devs -> wiki/devs vnv -> wiki/vnv managers -> wiki/WikiStart
This is a nice start, but it is not very flexible. A more flexible scheme would be to allow the login page to be specified for each group. For example,
[account-manager] base_url.devs = wiki/SwDevs/WikiStart base_url.vnv = wiki/VnV/WikiStart base_url.managers = timeline
There is probably a better way to specify the login page for each group, such as storing in the database, but this represents the basic idea I'm starting with.
It seems like this feature would fit well in the AccountManagerPlugin. I've contacted the author of the GroupBasedRedirectionPlugin to request that he add a license, preferably BSD or some other license that doesn't restrict incorporating code into the AccountManagerPlugin, so that code might serve as a starting point.