Modify

Opened 2 years ago

Last modified 2 years ago

#9943 new enhancement

Add group-based configurable login page

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

Description

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

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,

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

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by daltonmatos

Hello,

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!

Thanks!

[1] https://github.com/daltonmatos/trac-plugins/commit/cba0a1b

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.