AFAIK there are thousands of ways to combine Apache+Django for
authentication.

Just to name a few:
* no apache, just django: you can define custom authentication methods
(or even Basic Auth) with django. See the docs [1]
* apache handles authentication using django as the backend. See the
docs [2]. This is described with mod_python, but mod_wsgi is possible
as well, but I couldn't find the docs in 10 secs.
* apache handles authentication, and passes the REMOTE_USER to your
django site. Set the docs [3]
* apache handles authentication, but still passess all the auth data
to django: by default this won't happen with mod_wsgi, but can be
allowed. See the docs of mod_wsgi.

I hope you will find above the setting you are interested in. :)

[1]: 
http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources
[2]: http://docs.djangoproject.com/en/dev/howto/apache-auth/?from=olddocs
[3]: http://docs.djangoproject.com/en/dev/howto/auth-remote-user/

have a nice day!

On May 23, 11:57 am, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> On May 23, 5:59 am, palewire <ben.we...@gmail.com> wrote:
>
>
>
> > The default httpd.conf loaded on my CentOS server contains the
> > following authentication modules.
>
> > LoadModule auth_basic_module modules/mod_auth_basic.so
> > LoadModule auth_digest_module modules/mod_auth_digest.so
> > LoadModule authn_file_module modules/mod_authn_file.so
> > LoadModule authn_alias_module modules/mod_authn_alias.so
> > LoadModule authn_anon_module modules/mod_authn_anon.so
> > LoadModule authn_dbm_module modules/mod_authn_dbm.so
> > LoadModule authn_default_module modules/mod_authn_default.so
> > LoadModule authz_host_module modules/mod_authz_host.so
> > LoadModule authz_user_module modules/mod_authz_user.so
> > LoadModule authz_owner_module modules/mod_authz_owner.so
> > LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> > LoadModule authz_dbm_module modules/mod_authz_dbm.so
> > LoadModule authz_default_module modules/mod_authz_default.so
>
> > I'm curious which, if any, of them are necessary to use Apache to
> > solely run a Django application with authentication. I've consulted a
> > few people I trust and received different answers, so I thought I'd
> > just fire away a question here.
>
> > Thanks in advance for your expertise. I find this list a constant
> > source of help and encouragement.
>
> You haven't supplied enough information.
>
> What type of authentication? Are you wanting to use HTTP Basic of
> Digest authentication and have Apache handle it, or do you want to use
> form/session based authentication with Django handling it? I suspect
> you can also have Django handle HTTP Basic authentication as well.
>
> So, you are going to have to be clearer about what you are wanting to
> do.
>
> Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to