On Oct 19, 12:11 pm, Rotem Tamir <[email protected]> wrote:
> Do you want to automatically log in the user, or just show that
> specific page?
>
> If you want to do that you can go:

No I don't want but nice trick anyway, can be useful later

>
>         identity = {'repoze.who.userid': user_name.lower()}
>         headers = request.environ['repoze.who.plugins']
> ['cookie'].remember(request.environ, identity)
>         if headers:
>             for k, v in headers:
>                 response.headers.add(k, v)
>
> On Oct 18, 6:55 pm, aspineux <[email protected]> wrote:
>
> > Hi
>
> > I have some pages (protected by authentication) that I want to share
> > with unregistered user
>
> > For example
>
> >http://hostname/service?service_id=123
>
> > This page works when I'm authenticated, And I want to provide this one
>
> >http://hostname/service?service_id=123&secret=A56F72E7ED6783E2
>
> > to unregistered user.
>
> > How to let the TG2.0 authentication layer  allows them to access this
> > page without authentication.
>
> > Any hint or sample  somewhere ?
>
> > Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to