On Thu, 2011-03-03 at 08:41 -0800, T Ixioides wrote:
> Hi,
> 
> I have a project where both humans and bots need to authenticate, but
> I don't know where to start with this new pyramid framework.
> 
> In my case, bots will only retrieve URLs starting with /bots/  and
> other URLs are reserved for humans. I would like humans to
> authenticate with forms but bots only know basic or digest http auth
> methods.
> 
> Since bots and humans will share same login and passwords I think it
> would make sense to do everything inside a single pyramid application,
> but I may be wrong on this point.
> 
> Is this something doable with pyramid and where should I look for
> first ?
> 
> Can I do this using url dispatch or traversal or both ?

The method of viewfinding is sort of unrelated really, but the steps I'd
take to do this would be either to use repoze.who (which already has
support for stacked authentication methods) or to write a custom Pyramid
authentication policy that can obtain information from either a cookie
or basic authentication data.

- C


> 
> Thanks!
> 


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to