cgi authentication

Michael Ströder x_mst at propack-data.com
Wed Sep 22 10:02:47 EDT 1999


Dan Grassi wrote:
> 
> I need to do authentication from Python, for various reasons using Apache
> and .htaccess is not a workable solution.
> [..]
> if not os.environ.has_key("REMOTE_USER"):
>  print "Status: 401 Authenication Required"

Well, this is a workable solution since you can assume that the password
was checked if REMOTE_USER is showing up. This means: You only have to
apply an authorization scheme in your CGI-BIN relying on the HTTP
authentication of Apache.

Ciao, Michael.




More information about the Python-list mailing list