Modify

Opened 5 years ago

Closed 9 months ago

Last modified 9 months ago

#9943 closed enhancement (wontfix)

Add group-based configurable login page

Reported by: Ryan J Ollos Owned by:
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 (3)

comment:1 Changed 5 years ago by Dalton Barreto

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

comment:2 Changed 10 months ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

comment:3 Changed 9 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

default_handler can be set as a session preference in Trac 1.2 (trac:#11597 and trac:TracUpgrade#ObsoletePlugins).

Last edited 9 months ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.