|
List Info
Thread: Authenticate Trac against Django users.
|
|
| Authenticate Trac against Django users. |

|
2007-12-20 13:29:10 |
I've worked up the beginnings of a Trac plugin that
authenticates
against Django users. I've since determined that I'm not
likely to use
it. So, is anyone interested in using and/or maintaining it?
If so,
I'll throw it up on trac-hacks.org.
The basic functionality works. I can login to my django app
and then
I'm instantly logged into trac (without retyping my username
and
password). If I log out of my django app, I'm instantly
logged out of
trac.
It works by getting the django session from the django
cookie and
extracting the user from the django database. Of course, for
this to
work, both the trac and django instances need to be on the
same
machine (to access eachother) and behind the same domain (to
access
the cookie). I also have the beginnings of some code to
assign
permissions within django for trac via django's user groups.
For some
undetermined reason I haven't been able to override the
login/out
links in the nav and there's some debug code that needs
removed.
PS. I've cross-posted this to both django-users and
trac-users as
there may be interest in each group. I'll try to copy both
lists with
responses to any questions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Authenticate Trac against Django
users. |

|
2007-12-21 05:26:20 |
i'd see only benefits if you could put it there maybe with
this note
below.
On Dec 20, 8:29 pm, Waylan Limberg <way... gmail.com> wrote:
> I've worked up the beginnings of a Trac plugin that
authenticates
> against Django users. I've since determined that I'm
not likely to use
> it. So, is anyone interested in using and/or
maintaining it? If so,
> I'll throw it up on trac-hacks.org.
>
> The basic functionality works. I can login to my django
app and then
> I'm instantly logged into trac (without retyping my
username and
> password). If I log out of my django app, I'm instantly
logged out of
> trac.
>
> It works by getting the django session from the django
cookie and
> extracting the user from the django database. Of
course, for this to
> work, both the trac and django instances need to be on
the same
> machine (to access eachother) and behind the same
domain (to access
> the cookie). I also have the beginnings of some code to
assign
> permissions within django for trac via django's user
groups. For some
> undetermined reason I haven't been able to override the
login/out
> links in the nav and there's some debug code that
needs removed.
>
> PS. I've cross-posted this to both django-users and
trac-users as
> there may be interest in each group. I'll try to copy
both lists with
> responses to any questions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Authenticate Trac against Django
users. |

|
2007-12-21 10:24:34 |
On Dec 20, 8:50 pm, Kenneth Gonsalves <law... thenilgiris.com> wrote:
> On 21-Dec-07, at 12:59 AM, Waylan Limberg wrote:
>
> > I've worked up the beginnings of a Trac plugin
that authenticates
> > against Django users. I've since determined that
I'm not likely to use
> > it.
>
> why are you unlikely to use it?
>
We are looking for a different solution for hosting the
python-
markdown project (currently on sourceforge) and want a wiki
that uses
markdown for obvious reasons. The idea was to use trac, but
disable
the wiki component and use django for the wiki. With this
plugin, our
users could login once and report tickets, edit the wiki
ect. The
problem is that the ticket system (or any other component
for than
matter) wouldn't use markdown, so we've scrapped the use of
trac all
together. Sure, trac allows the use of markdown within
specially
formatted blocks through their macros, but we want native
support by
default. Unfortunately, trac has not made that part of the
system
plugable. Until they do, it's of no use to us. Oh, and it'd
help if
installation was easier - talk about dependency headaches -
although I
see that's improving in 0.11.
Btw, it appears markdown support appears to be the most
requested trac
hack [1]. I've considered forking the wiki component so that
it uses
markdown, but that still doesn't address the other
components. I'd
even be willing to tackle markdown support for the special
syntax
specific to trac for links between the various components,
if they
made the formatter pluggable.
In any event, this is getting off topic. I'll likely post
the plugin
sometime this weekend and report back here.
[1]: http://trac-h
acks.org/wiki/RequestaHack
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.i
n/web/
> Foss Conference for the common man:http://registrat
ion.fossconf.in/web/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Authenticate Trac against Django
users. |

|
2007-12-21 10:54:35 |
On 22/12/2007, waylan <waylan gmail.com> wrote:
> Btw, it appears markdown support appears to be the most
requested trac
> hack [1].
Actually the markdown request was just created with a high
priority,
which is why it's at the top.
re. your point about having uniform syntax everywhere, with
any luck
this might be addressed in cboos' Wiki DOM refactoring
stuff, though
it's not directly in-scope.
> [1]: http://trac-h
acks.org/wiki/RequestaHack
--
Evolution: Taking care of those too stupid to take care of
themselves.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Authenticate Trac against Django
users. |

|
2007-12-21 12:21:40 |
On Dec 21, 11:54 am, "Alec Thomas" <a... swapoff.org> wrote:
> On 22/12/2007, waylan <way... gmail.com> wrote:
>
> > Btw, it appears markdown support appears to be the
most requested trac
> > hack [1].
>
> Actually the markdown request was just created with a
high priority,
> which is why it's at the top.
Thanks for the clarification. I found the section title
directly above
the list ("Vote for your favorite Request-a-Hack")
a little
misleading. Additionally, I see no way to actually do the
voting or
view other peoples votes.
>
> re. your point about having uniform syntax everywhere,
with any luck
> this might be addressed in cboos' Wiki DOM refactoring
stuff, though
> it's not directly in-scope.
I have seen some DOM related code in trunk. Not sure if this
is what
your referring to or not. I was certainly interested in that
as python-
markdown uses a DOM as well. Unfortunately, I haven't seen
any entry
points for plugins in that code either.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Authenticate Trac against Django
users. |

|
2007-12-21 13:17:08 |
I've posted this here: http
://trac-hacks.org/wiki/DjangoAuthIntegration
Note, I have not committed anything to svn. Scroll down to
the bottom
for the attached file.
If anyone has any questions, please email me directly as I
only
subscribe to the digest for the django-users list and
nothing for the
trac-users list.
On Dec 20, 3:38 pm, Dirk Eschler <dirk.esch... gmx.net> wrote:
> On Donnerstag, 20. Dezember 2007, Waylan Limberg
wrote:
>
>
>
> > I've worked up the beginnings of a Trac plugin
that authenticates
> > against Django users. I've since determined that
I'm not likely to use
> > it. So, is anyone interested in using and/or
maintaining it? If so,
> > I'll throw it up on trac-hacks.org.
>
> > The basic functionality works. I can login to my
django app and then
> > I'm instantly logged into trac (without retyping
my username and
> > password). If I log out of my django app, I'm
instantly logged out of
> > trac.
>
> > It works by getting the django session from the
django cookie and
> > extracting the user from the django database. Of
course, for this to
> > work, both the trac and django instances need to
be on the same
> > machine (to access eachother) and behind the same
domain (to access
> > the cookie). I also have the beginnings of some
code to assign
> > permissions within django for trac via django's
user groups. For some
> > undetermined reason I haven't been able to
override the login/out
> > links in the nav and there's some debug code that
needs removed.
>
> > PS. I've cross-posted this to both django-users
and trac-users as
> > there may be interest in each group. I'll try to
copy both lists with
> > responses to any questions.
>
> Hello Waylan,
>
> please throw it up!
>
> I've been looking for something like that for quite
some time.
>
> Best Regards,
> Dirk Eschler
>
> --
> Dirk Eschler <mailto:dirk.esch... gmx.net>http://www.krusader.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-users googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-6]
|
|