Project

General

Profile

Redmine Authentication to Grant Access to Project Specific Pages

Added by Jason Vicente almost 13 years ago

Hi everyone,

We have recently started using redmine, and must say, of all the pm applications we have used in the past, it is by far the best.

We're looking for a solution to a feature we require however, and I was wondering if anyone had any advice, or ideas about the best way to achieve this (extensions, plugins, api etc.)

We have a number of projects that have their own 'presentational' pages. These are essentially an exclusive 'preview' of our projects that we provide access to for select customers. At present we control these individually through a very basic PHP authentication system. However, what we would really like to do, is manage access to these pages through the Redmine User Groups/Permissions/Project allocations.

For example: If project 'pA' has user 'uA' (let's ignore the permissions/roles for now), and they try to access a certain page i.e. www.myurl.com/pA/index.php they will be presented with a very basic login form. The user then types in his credentials and these are verified against the existing redmine db - does the user exist, and is he allocated to the relevant Project (which we could extract from the file directory of the server, in this case /pA/).

We've looked at simply creating a login system that authenticates against the MySQL db that Redmine uses, but I'm wondering if there would be a 'nicer' way of achieving this, where perhaps the users session can be created so that if they then access redmine (or if they had previously done so) they wouldn't need to login again.

(Before anyone suggests using the Files section of Redmine to store content, we're already doing that. What we want is to be able to grant someone access to a web page that can contain content in a web-based format).

We'd be very grateful for any suggestions on best-practices or ideas for achieving this.

Best Regards,

Jason.