Modify

Opened 9 years ago

Closed 6 years ago

#70 closed enhancement (fixed)

Have the Account Manager be able to use a RDBMS for login authorization

Reported by: eddie Owned by: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: gunnar, trac.eddieparker@…, luks, cooldown@…, me@… Trac Release: 0.8

Description

Hey!

I was on the IRC channel with mgood earlier, and he said that due to the volume of people wishing for the Account Manager to do authorization against a DB using a login form, he'd go ahead and do this. :)

As such, I thought I'd write a ticket so I can find out when it's done so I can integrate it. :)

If I'm to understand correctly, this would involve:

  • Have the 'Login' link prompt you for a username password
  • Have the backend verify against an RDBMS that you somehow specify.

Obviously feel free to correct my assumptions here, or kill this ticket if you were drunk when you promised this feature (although it would make me rather sad. :)).

Attachments (2)

database.py (4.4 KB) - added by luks 9 years ago.
Component to store user accounts in the database.
database-cc.py (3.4 KB) - added by athomas 9 years ago.
database.py by Charlie Clark (out of date)

Download all attachments as: .zip

Change History (11)

comment:1 Changed 9 years ago by mgood

  • Status changed from new to assigned

The form-based authentication is implemented in [132] and [133], but the DB password storage is not yet supported.

To use form authentication the default Trac authentication handler will need to be disabled in trac.ini like:

[components]
trac.web.auth.LoginModule = disabled

Changed 9 years ago by luks

Component to store user accounts in the database.

comment:2 Changed 9 years ago by luks

  • Cc luks added

Attached some code to store user names and SHA-encoded passwords in the database.

Changed 9 years ago by athomas

database.py by Charlie Clark (out of date)

comment:3 Changed 9 years ago by athomas

I've moved the database.py from the AccountManagerPlugin pagae to here for reference purposes. It no longer works and the one by luks should be used instead I would think.

comment:4 Changed 8 years ago by anonymous

  • Cc cooldown@… added

comment:5 Changed 8 years ago by anonymous

  • Cc eparker@… removed
  • Trac Release set to 0.8

comment:6 Changed 8 years ago by anonymous

  • Cc trac.eddieparker@… added

comment:7 Changed 8 years ago by gunnar

  • Cc gunnar added

comment:8 Changed 8 years ago by anonymous

  • Cc me@… added

comment:9 Changed 6 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from assigned to closed

I think that this ticket has been satisfied by the SessionStore password store. Additionally, Account Manager has a well defined API for creating password stores to go against other databases. Examples of these are PhpBbAuthPlugin and TgAuthPlugin

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.