Thanks much! But if you will write about form/session based authentication with mod_wsgi, please, send me a link.
Andru On Wed, Sep 1, 2010 at 8:53 AM, Graham Dumpleton <graham.dumple...@gmail.com > wrote: > If you are going to use a DBM file, why don't you just use Apache to > do it. It has a module for using a DBM file for HTTP authentication > mechanisms. See: > > http://httpd.apache.org/docs/2.2/howto/auth.html > http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html > http://httpd.apache.org/docs/2.2/mod/mod_authn_dbm.html > > In other words, sounds like you don't need to have authentication part > in WSGI code. > > If what you are after is form/session based authentication rather than > HTTP basic authentication, then use a framework/toolkit that already > implements it. You shouldn't be trying to implement authentication > yourself unless you are experienced at web programming, else big risk > of getting it all wrong and having an insecure site. > > For a simple micro framework, go look at Flask (flask.pocoo.org). > > Graham > > On 1 September 2010 14:42, Andrey Kargashinskiy <kerich...@gmail.com> > wrote: > > Hi. Can anybody help me? I've got a script like this: > > > > > > > > <form action="script.wsgi" method="POST"> > > > > <input name="login" type="text"> > > > > <input name="password" type="password"> > > > > <input type="submit" name="submit"> > > > > </form> > > > > > > > > Can anybody write me easy script for user's authentication without > > frameworks, but with Apache/mod_wsgi and DBM file. I've seen > > http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms, > > > > but i need an example. > > > > > > > > Thanks. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "modwsgi" group. > > To post to this group, send email to modw...@googlegroups.com. > > To unsubscribe from this group, send email to > > modwsgi+unsubscr...@googlegroups.com<modwsgi%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > > http://groups.google.com/group/modwsgi?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to modw...@googlegroups.com. > To unsubscribe from this group, send email to > modwsgi+unsubscr...@googlegroups.com<modwsgi%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.