[web2py] Re: Authorization for Webhooks

2014-01-03 Thread Francisco Costa
I had a similar problem with a webook. In my case I read the HTTP POST with request.body.read() Chek it here: http://web2py.com/books/default/chapter/29/04/the-core?search=request.body.read%28%29 And this example: http://www.web2py.com/AlterEgo/default/show/197 On Sunday, February 13, 2011 11:

[web2py] Re: Authorization for Webhooks

2011-02-13 Thread AsmanCom
I can see the stored data, but I just do not know how to extract the required values, Do I have to unpickle these files somehow, or is there perhaps a more framework-conform-approach to query these two values? I would not like to import external libraries for this. I thought querying user_name/

[web2py] Re: Authorization for Webhooks

2011-02-13 Thread Massimo Di Pierro
The session it is the name of the sessions file under app/sessions. It is a pickle. Try open it and see what is inside. On Feb 13, 6:43 am, AsmanCom wrote: > Does nobody know, how to query these two values by the given > session_id (session_id_myapp=127.0.0.1-2b77d424-4e72-4d3f-a0de- > badbcdbe6a

[web2py] Re: Authorization for Webhooks

2011-02-13 Thread AsmanCom
Does nobody know, how to query these two values by the given session_id (session_id_myapp=127.0.0.1-2b77d424-4e72-4d3f-a0de- badbcdbe6a30)? 1. is_logged_in (boolean) 2. username or user email (string) I looked in the book, i´ve searched this group, i´ve searched the web, but still can´t find any

[web2py] Re: Authorization for Webhooks

2011-02-12 Thread AsmanCom
First things first, Thanks a bunch for your reply. "Can you just read the cookie" Yes: request.cookies "and match it to a session?" I would like to, but I do not know how? "Do these callbacks occur quickly enough that the session has not expired?" Yes. "the callback is not technically "logge

[web2py] Re: Authorization for Webhooks

2011-02-11 Thread pbreit
Can you just read the cookie and match it to a session? Do these callbacks occur quickly enough that the session has not expired? I don't know exactly how sessions work but I could imagine there's be problems using sessions with callbacks since the callback is not technically "logged in" (it has

[web2py] Re: Authorization for Webhooks

2011-02-11 Thread AsmanCom
BTW why does the callbacks with the cookie header not work with web2py just like that? Is this some kind of Security Feature of web2py? Thanks in advance. Dieter Asman On 11 Feb., 13:02, AsmanCom wrote: > I´ve got an Application wich makes (url)callbacks to my web2py app and > All these webhoo