Opened 10 years ago

Closed 6 years ago

Share authentication among Trac-powered projects

Reported by: Owned by: gustavo@… Brad Anderson high DbAuthPlugin normal 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?

Cheers.

comment:1 Changed 10 years ago by Noah Kantrowitz

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 10 years ago by gustavo@…

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

Cheers.

comment:3 follow-up:  4 Changed 10 years ago by Noah Kantrowitz

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 10 years ago by anonymous

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 6 years ago by Ryan J Ollos

Resolution: → wontfix new → closed

Closing tickets for a deprecated plugin.

Modify Ticket

Action
as closed The owner will remain Brad Anderson.
The resolution will be deleted. Next status will be 'reopened'.