Opened 5 years ago

Last modified 3 days ago

#9943 new enhancement

Add group-based configurable login page

Reported by: rjollos Owned by:
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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:

base_url = wiki/%s
black_list = managers

would result in the following redirections:

devs -> wiki/devs
vnv -> wiki/vnv
managers -> wiki/WikiStart

The documentation for the GroupBasedRedirectionPlugin can be found here.

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,

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.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by daltonmatos


I'm the author of the GroupBasedRedirectionPlugin and I just answered Ryan's e-mail about this. I already pushed the needed modifications to the github repo1.

I use AccountManagerPlugin and it will be an honor to have contributed to this great plugin!



comment:2 Changed 3 days ago by rjollos

  • Owner hasienda deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.