The Artima Developer Community
Sponsored Link

Python Buzz Forum
mod_auth_remote

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
mod_auth_remote Posted: Nov 30, 2003 5:36 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: mod_auth_remote
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

mod_auth_remote should be a quite useful Apache module for use with Zope (and potentially other systems). It authenticates off of a URL, like:

<Directory ~ "/stats/">
 AuthType           Basic
 AuthName           Zope
 AuthRemoteServer   localhost
 AuthRemotePort     80
 AuthRemoteURL      /admin/auth
 require            valid-user
</Directory>
Then you won't be able to access /stats except with a valid login for /admin/auth (which you'd set up as a trivial resource that had the permissions you'd want to apply to /stats). Underneath mod_auth_remote does a second HTTP request using the authentication information you give. The code is very simple.

Unfortunately it's only written for Apache 2 right now, and I'm mostly using Apache 1.3. It should be easy to port -- it's only around 200 lines long -- but I'm not very experienced in that sort of thing.

Read: mod_auth_remote

Topic: Re: Snarls Previous Topic   Next Topic Topic: Strongtalk History

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use