That sounds like it would work. Chris
On Thu, Mar 17, 2016 at 7:20 AM, Krishnakant <krm...@openmailbox.org> wrote: > I am using Pyramid and there is a RESTful api I wish to access. > the RESTful server sends a jwt header. > I know that I can use a session object of requests and keep the header. > But will this approach work? > I will have the requests used in my views and browser keeps sending all > the request. > Then I would have the session forward the browser's request to my REST api. > Note that in requests library, requests.session persists the jwt object so > I don't have to take trouble manualy sending the headers. > the only doubt is that how will this work if at all. > Should I not do the jwt stuff in the browser itself? > I mean should I store the jwt object in the $window of browser? > instead of requests.session? > Happy hacking. > Krishnakant. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > Visit this group at https://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at https://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.