Does REMOTE_USER work with django-wiki?

27 views
Skip to first unread message

jtaylor___

unread,
May 20, 2020, 12:17:04 PM5/20/20
to django-wiki
Does anyone know if REMOTE_USER works with django-wiki?


TIA

Benjamin Balder Bach

unread,
May 20, 2020, 12:35:55 PM5/20/20
to djang...@googlegroups.com

Hi TIA,

The answer is unfortunately no -- but a PR is very welcome.

I am not sure if this is easy or complicated complicated to achieve? If you want to discuss a solution, you are most welcome. The wiki expects some kind of User object to exist that connects to the Article and Plugin Revision history.


Best,
Ben

--
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/ae5b9cfa-258a-4639-8199-589523114561%40googlegroups.com.

jtaylor___

unread,
May 20, 2020, 12:48:39 PM5/20/20
to django-wiki
OK.  I don't know Django well enough to write a fix myself.


My use case for django-wiki is for an internal page and rather than setting up users within Django, I wanted to simply use the Windows authentication coming from their browser.

Thank you

Benjamin Balder Bach

unread,
May 20, 2020, 12:54:36 PM5/20/20
to djang...@googlegroups.com

Hello again,

Looking at other sources, it seems you might be able to add your own middleware layer that creates a normal User object from the REMOTE_USER:

https://www.sipios.com/blog-tech/automatic-login-in-a-django-application-using-external-authentication

As such, you can solve the issue without needing to change django-wiki.


Best,
Ben

--
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.

jtaylor___

unread,
May 20, 2020, 1:18:11 PM5/20/20
to django-wiki
Thank you
Reply all
Reply to author
Forward
0 new messages