Re: [Webware-discuss] HTTP Authentication

2003-03-29 Thread Ian Bicking
On Sat, 2003-03-29 at 22:17, Stuart Donaldson wrote: > Has anyone dones any HTTP Authentication for Webware? To allow a > webware applet to use the HTTP authentication mechanism? Yes, I've done this before. The complexity is mostly in getting Apache to actually send the password -- without sign

[Webware-discuss] HTTP Authentication

2003-03-29 Thread Stuart Donaldson
Howdy. Has anyone dones any HTTP Authentication for Webware? To allow a webware applet to use the HTTP authentication mechanism? There are some bare references in WebKit/Experimental like someone started down this path, but it isn't clear where they were going. -Stuart- p.s. Sorry I haven'

Re: internal redirect to private file (Re: [Webware-discuss] HTTP Authentication)

2002-05-15 Thread gtalvola
I don't think I like the idea of adding more functionality into mod_webkit. IMHO, Webware is supposed to be Python-oriented. But any features added to mod_webkit are by definition written in C and therefore less accessible to be understood and modified by Webware's core audience. Also, mod

Re: [Webware-discuss] HTTP Authentication

2002-05-12 Thread Bill Eldridge
Ian Bicking wrote: > > Note that Mozilla now supports Digest Authentication. > > http://www.mozilla.org/projects/netlib/http/ > > http://www.mozilla.org/releases/mozilla0.9.7/#new > > > > Digest Apache module here: > > http://www.berlinonline.de/wissen/computer/linux_tips/os/ > > and > > http://ww

Re: Filtered I/O -(was Re: [Webware-discuss] HTTP Authentication)

2002-05-12 Thread Bill Eldridge
Ian Bicking wrote: > > > I'm not sold on many of the features of the modules... it's so much > easier and more powerful to use Python, I was more interested in getting various variables out of Apache and passing them on rather than trying to do anything in an Apache module. Even the rewrite stu

Re: [Webware-discuss] HTTP Authentication

2002-05-11 Thread Ian Bicking
On Sat, 2002-05-11 at 08:13, Bill Eldridge wrote: > > Is there a way to get APache to use WK for authentication > even for non-WK pages using something like this? > It looks like someone's been working on something > similar here: > > http://mod-auth-script.sourceforge.net/ > > And another at:

Re: Filtered I/O -(was Re: [Webware-discuss] HTTP Authentication)

2002-05-11 Thread Ian Bicking
On Sat, 2002-05-11 at 07:20, Bill Eldridge wrote: > > Some of the issues mentioned in this list about > getting various info from Apache into Webware > might be addressed in Apache 2.0, specifically: > >The second advantage over Apache 1.3 is filtered input/output (I/O), >which allows on

Re: [Webware-discuss] HTTP Authentication

2002-05-11 Thread Bill Eldridge
Is there a way to get APache to use WK for authentication even for non-WK pages using something like this? It looks like someone's been working on something similar here: http://mod-auth-script.sourceforge.net/ And another at: http://www.unixpapa.com/mod_auth_external.html As well as other Apa

[Webware-discuss] HTTP Authentication

2002-05-10 Thread Ian Bicking
Okay, I got HTTP authentication working (thanks Bill). I couldn't get the Zope method to work quite right, as environmental variables weren't passed on. Anyway, a page describing it is at: http://webware.colorstudy.net/twiki/bin/view/Webware/HttpAuthentication Ian _

Re: [Webware-discuss] HTTP Authentication revisited

2002-05-10 Thread Bill Eldridge
Ian Bicking wrote: > Okay, now I really want to get HTTP authentication working. Here's > where I am: > > The Zope mod_rewrite style kind of works, but I can't get it to actually > set an environmental variable -- either for mod_webkit or WebKit.cgi. > You can put the authentication header in t

[Webware-discuss] HTTP Authentication revisited

2002-05-09 Thread Ian Bicking
Okay, now I really want to get HTTP authentication working. Here's where I am: The Zope mod_rewrite style kind of works, but I can't get it to actually set an environmental variable -- either for mod_webkit or WebKit.cgi. You can put the authentication header in the URL as a get variable, thoug

Re: [Webware-discuss] HTTP authentication

2002-03-05 Thread Ian Bicking
On Thu, 2002-02-28 at 12:48, Tim Roberts wrote: > >Ng's authcookie extension to m2crypto sounds perfect for this sort of > >stuff, but I have tested it yet. > > I, for one, am very interested in hearing others experience and advice on this > topic. Every site I've ever done has wanted username

Re: [Webware-discuss] HTTP authentication

2002-02-28 Thread Mike Orr
On Fri, Mar 01, 2002 at 01:46:09AM +0100, Magnus Lie Hetland wrote: > Ian Bicking <[EMAIL PROTECTED]>: > [...] > > > (Otherwise, mod_auth_pgsql sounds like a very good alternative.) > > > > Debian has packages for all the major auth modules -- even a lesser > > distribution like RedHat > > > >

Re: [Webware-discuss] HTTP authentication

2002-02-28 Thread Magnus Lie Hetland
Ian Bicking <[EMAIL PROTECTED]>: [...] > > (Otherwise, mod_auth_pgsql sounds like a very good alternative.) > > Debian has packages for all the major auth modules -- even a lesser > distribution like RedHat > probably has the same ;) So it's pretty easy. Yeah, I found an RPM (for the "lesser

Re: [Webware-discuss] HTTP authentication

2002-02-28 Thread Tim Roberts
On Wed, 27 Feb 2002 15:11:07 -0800, Tavis Rudd <[EMAIL PROTECTED]> wrote: > >Ng's authcookie extension to m2crypto sounds perfect for this sort of >stuff, but I have tested it yet. I, for one, am very interested in hearing others experience and advice on this topic. Every site I've ever done h

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Ian Bicking
On Wed, Feb 27, 2002 at 10:47:15PM +0100, Magnus Lie Hetland wrote: > Mike Orr <[EMAIL PROTECTED]>: > [...] > > That sounds familiar too... > > > > In any case, when we figure it out we need to put it on the wiki as an > > alternate authentication method. > > Yeah. I would even go so far as to s

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Ian Bicking
On Wed, Feb 27, 2002 at 09:31:21PM +0100, Magnus Lie Hetland wrote: > Mike Orr <[EMAIL PROTECTED]>: > [...] > > The rules above are copied straight from my old Zope install. I haven't > > tried them with Webware. > > Well, they seem correct. The odd thing is that I can't seem to set the > enviro

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Tavis Rudd
On Wednesday 27 February 2002 14:07, Magnus Lie Hetland wrote: > This looks great -- but perhaps a bit ambitious? I'm not saying the > project should be scaled down, but that perhaps a more modest > mechanism could be added as an initial step? (It might have a > better chance of actually being imp

RE: [Webware-discuss] HTTP authentication

2002-02-27 Thread Geoffrey Talvola
Magnus Lie Hetland wrote: > Perhaps simply wrapping up the code from the example in the > distribution in such a way that one could use/inherit it without > knowing how it works? (To make this simple enough, one would perhaps > have to drop the ID field stuff...) That's what I'd like to do -- imp

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Tavis Rudd <[EMAIL PROTECTED]>: [snip] > > Anyhow: Whether it be based on HTTP authentication, or a standard > > cgi/form/session solution, it seems to me that a fully encapsulated > > and extremely simple authentication mechanism would be useful in > > Webware. The example from the distribution i

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Tavis Rudd
On Wednesday 27 February 2002 13:47, Magnus Lie Hetland wrote: > > > But there is no such standard for the password, IIRC. > > > > If you need the password, van you use database authentication and > > look up the password in the database by the username? > > If I have a database authentication sol

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Mike Orr <[EMAIL PROTECTED]>: [...] > That sounds familiar too... > > In any case, when we figure it out we need to put it on the wiki as an > alternate authentication method. Yeah. I would even go so far as to suggest perhaps a utility method or two... No real need to go through all this explic

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Mike Orr <[EMAIL PROTECTED]>: > > On Wed, Feb 27, 2002 at 09:31:21PM +0100, Magnus Lie Hetland wrote: > > I guess I'll just try with a .htpasswd file or > > something (which should set the environment variables properly, I > > guess.) > > That's probably the best way to test it. But on a product

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Mike Orr
On Wed, Feb 27, 2002 at 09:31:21PM +0100, Magnus Lie Hetland wrote: > I guess I'll just try with a .htpasswd file or > something (which should set the environment variables properly, I > guess.) That's probably the best way to test it. But on a production server, putting the auth config in a di

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Mike Orr
On Wed, Feb 27, 2002 at 09:49:32PM +0100, Magnus Lie Hetland wrote: > > I guess that's where my problem is; initiating the authentication > > process is easy enough; I just can't get the username and password > > afterwards... > > It seems (as I think I remember from several years ago) that > REM

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Tavis Rudd
EMAIL PROTECTED]> > Sent: Wednesday, February 27, 2002 5:14 PM > Subject: Re: [Webware-discuss] HTTP authentication > > > Why not just use some form of webware-based authentication? > > You'll > > > get better control, support, and possibly security (assuming > >

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Mike Orr
On Wed, Feb 27, 2002 at 02:14:56PM -0800, Tavis Rudd wrote: > Why not just use some form of webware-based authentication? You'll > get better control, support, and possibly security (assuming https). It's a question of using the simplest technology necessary to do the job, preferring something

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Tavis Rudd <[EMAIL PROTECTED]>: > > Why not just use some form of webware-based authentication? You'll > get better control, support, and possibly security (assuming https). That's an alternative, yes. In fact, I already have that implemented. I would just like to see how simple it would be to

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Tavis Rudd
Why not just use some form of webware-based authentication? You'll get better control, support, and possibly security (assuming https). On Wednesday 27 February 2002 12:49, Magnus Lie Hetland wrote: > Magnus Lie Hetland <[EMAIL PROTECTED]>: > > Mike Orr <[EMAIL PROTECTED]>: > > > My memory is f

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Magnus Lie Hetland <[EMAIL PROTECTED]>: > > Mike Orr <[EMAIL PROTECTED]>: > > My memory is failing as to where PHP_AUTH_USER > > comes from; > > I guess that's where my problem is; initiating the authentication > process is easy enough; I just can't get the username and password > afterwards...

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Mike Orr <[EMAIL PROTECTED]>: [...] > The rules above are copied straight from my old Zope install. I haven't > tried them with Webware. Well, they seem correct. The odd thing is that I can't seem to set the environmentvariable through the E rewrite directive. [...] > Basic authentication is gr

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Steve Waterbury
Mike Orr <[EMAIL PROTECTED]> wrote: > Some disadvantages of Basic Authentication: > > ** You can't customize the login dialog except the short "realm name" > string. If users are confused about why they are being asked for a > password, there's no way to provide a "click here for help" hyperlin

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Mike Orr
On Wed, Feb 27, 2002 at 05:10:07PM +0100, Magnus Lie Hetland wrote: > Mike Orr <[EMAIL PROTECTED]>: > > > [...] > > RewriteCond %{HTTP:Authorization} ^(.*) > > RewriteRule ^/(.*) /usr/lib/cgi-bin/Zope.cgi/M/$1 \ > > [e=HTTP_CGI_AUTHORIZATION:%1, t=application/x-httpd-cgi,l] > > Thanks. I've fou

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Mike Orr <[EMAIL PROTECTED]>: > [...] > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/(.*) /usr/lib/cgi-bin/Zope.cgi/M/$1 \ > [e=HTTP_CGI_AUTHORIZATION:%1, t=application/x-httpd-cgi,l] Thanks. I've found several versions of this on the web and I think I understand the way it ought to

Re: [Webware-discuss] HTTP authentication

2002-02-27 Thread Magnus Lie Hetland
Ian Bicking <[EMAIL PROTECTED]>: > > There's some discussion in Zope about this... if you look at information > about using Zope on a commercial host it'll discuss this, but I think > the standard installation notes also discuss it. > > If Apache has the authorization information then you can get

Re: [Webware-discuss] HTTP authentication

2002-02-26 Thread Mike Orr
On Tue, Feb 26, 2002 at 07:09:46PM -0600, Ian Bicking wrote: > There's some discussion in Zope about this... if you look at information > about using Zope on a commercial host it'll discuss this, but I think > the standard installation notes also discuss it. > > If Apache has the authorization in

Re: [Webware-discuss] HTTP authentication

2002-02-26 Thread Ian Bicking
There's some discussion in Zope about this... if you look at information about using Zope on a commercial host it'll discuss this, but I think the standard installation notes also discuss it. If Apache has the authorization information then you can get it from an environment variable (HTTP_USER o

[Webware-discuss] HTTP authentication

2002-02-26 Thread Magnus Lie Hetland
I've been trying to translate som HTTP authentication code I've got lying around for PHP into Python (using WebKit). I've figured out that I can get the authentication started by supplying a WWW-Authenticate header and setting the status to 401, but my question is -- where can I find the username