Modify

Opened 8 years ago

Closed 4 years ago

#1699 closed enhancement (wontfix)

Share authentication among Trac-powered projects

Reported by: gustavo@… Owned by: brad
Priority: high Component: DbAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Hello.

I have several Trac-powered projects in http://tracker.gnulinuxmatters.org/ and I'd like them to share the authentication, this is, if someone logs in to http://tracker.gnulinuxmatters.org/ggl/, then s/he can automatically access other projects like http://tracker.gnulinuxmatters.org/tds/, http://tracker.gnulinuxmatters.org/fsgl/...

Technically, for this to work, one should only modify the cookie path of trac_db_auth, however, I'm not a Python developer, so I'm unable to give you a patch.

It would be great if you could make a cookie_basepath option inside dbauth in the Trac config file. A cookie_domain would also come in handy, in my opinion.

If you decide not to implement this feature, could you please tell me how to work around this?

Thanks in advance.

Cheers.

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by coderanger

It is worth noting that TracForge already implements this in a generic way. As long as DBAuth uses the same cookie as the normal Trac login system, you can just use that.

comment:2 Changed 8 years ago by gustavo@…

Thanks for the answer, coderanger!

TracForge looks very promising, but it's still experimental and I cannot afford breaking anything on that server.

Cheers.

comment:3 follow-up: Changed 8 years ago by coderanger

The authentication linking component is quite stable, and can be used without touching the more unstable bits in tracforge.admin. Just enable tracforge.linker.auth.* on your client envs, and make sure you set the master path as mentioned in the wiki page.

comment:4 in reply to: ↑ 3 Changed 8 years ago by anonymous

Replying to coderanger:

The authentication linking component is quite stable, and can be used without touching the more unstable bits in tracforge.admin. Just enable tracforge.linker.auth.* on your client envs, and make sure you set the master path as mentioned in the wiki page.

Thanks! Then I'll give it a try!

comment:5 Changed 4 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Closing tickets for a deprecated plugin.

Add Comment

Modify Ticket

Action
as closed The owner will remain brad.
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.