RE: securing Restlet 1.2

2009-01-13 Thread Jerome Louvel
Hi all, Let's continue this discussion in the developers mailing list. See my reply there: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458dsMessageId=1022072 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~

RE: securing Restlet

2008-12-28 Thread Jerome Louvel
2008 11:42 A : discuss@restlet.tigris.org Cc : Jerome Louvel Objet : Re: securing Restlet hello Jerome, On Friday 26 December 2008 20:14:02 Jerome Louvel wrote: Hi Raif, This is a good start. We have a page on the developers' wiki that should be used during this refactoring project. I have

RE: securing Restlet

2008-12-28 Thread Jerome Louvel
_ De : remidewi...@gmail.com [mailto:remidewi...@gmail.com] De la part de Rémi Dewitte Envoyé : vendredi 26 décembre 2008 14:39 À : discuss@restlet.tigris.org Objet : Re: securing Restlet Jerome, I will do all the necessary to allow the code to be integrated as soon as possible

RE: securing Restlet

2008-12-26 Thread Jerome Louvel
Hi Raif, This is a good start. We have a page on the developers' wiki that should be used during this refactoring project. I have updated it based on the issues and discussions you have selected, extending to all other I could find. Security refactoring

RE: securing Restlet

2008-12-26 Thread Jerome Louvel
[mailto:tig...@naffah-raif.name] Envoye : samedi 20 decembre 2008 01:01 A : discuss@restlet.tigris.org Cc : Stephan Koops Objet : Re: securing Restlet hello Stephan, my comments are in-lined. On Friday 19 December 2008 19:49:12 Stephan Koops wrote: Hi Raif, I think it is good, if a developer could

RE: securing Restlet

2008-12-26 Thread Jerome Louvel
A : discuss@restlet.tigris.org Objet : Re: securing Restlet On Dec 20, 2008, at 6:49 PM, Raif S. Naffah wrote: On Sunday 21 December 2008 09:05:46 Rhett Sutphin wrote: On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi

RE: securing Restlet

2008-12-26 Thread Jerome Louvel
: securing Restlet Hi Rémi, cool. Jerome, Thierry: Could we add it to the code base, if the security is refactored? best regards Stephan I have made a cookie authentication for restlet. Here is the code. Few things might not be clean but it works quite fine. I hope it helps. Rémi

Re: securing Restlet

2008-12-26 Thread Raif S. Naffah
hello Jerome, On Friday 26 December 2008 20:14:02 Jerome Louvel wrote: Hi Raif, This is a good start. We have a page on the developers' wiki that should be used during this refactoring project. I have updated it based on the issues and discussions you have selected, extending to all other I

Re: securing Restlet

2008-12-26 Thread Rémi Dewitte
~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Stephan Koops [mailto:stephan.ko...@web.de] Envoyé : lundi 22 décembre 2008 19:32 À : discuss@restlet.tigris.org Objet : Re: securing Restlet Hi Rémi

Re: securing Restlet

2008-12-26 Thread Rob Heittman
Guilty as charged, fixed on my copy and never sent the patch back to the Restlet list. Will do when I get back from holiday travels! On Fri, Dec 26, 2008 at 12:36 PM, Tim Peierls t...@peierls.net wrote: On Fri, Dec 26, 2008 at 5:05 AM, Jerome Louvel jerome.lou...@noelios.com wrote: Also,

Re: securing Restlet

2008-12-22 Thread Stephan Koops
Ho Rhett, but doesn't the current Guard implementation obviate the need for both sessions and cookies, and yet provide us with basic authentication? if yes, then a solution for providing customizable form-based login could be to extend its capabilities to allow declaring and re-directing

Re: securing Restlet

2008-12-22 Thread Rhett Sutphin
Hi Stephan, On Dec 22, 2008, at 3:20 AM, Stephan Koops wrote: Ho Rhett, but doesn't the current Guard implementation obviate the need for both sessions and cookies, and yet provide us with basic authentication? if yes, then a solution for providing customizable form-based login could

Re: securing Restlet

2008-12-22 Thread Stephan Koops
Hi Rhett, There is a way, but HTML and HTTP is not enough: You need JavaScript to send a XMLHttpRequest. But you can't use http state 401 for return, because the browser should prompt (search for 401 on http://www.w3.org/TR/XMLHttpRequest/) for the users credentials, and that is,

Re: securing Restlet

2008-12-22 Thread Stephan Koops
Hi Rémi, cool. Jerome, Thierry: Could we add it to the code base, if the security is refactored? best regards Stephan I have made a cookie authentication for restlet. Here is the code. Few things might not be clean but it works quite fine. I hope it helps. Rémi

Re: securing Restlet

2008-12-22 Thread Rhett Sutphin
Hi Stephan, On Dec 22, 2008, at 12:02 PM, Stephan Koops wrote: Hi Rhett, There is a way, but HTML and HTTP is not enough: You need JavaScript to send a XMLHttpRequest. But you can't use http state 401 for return, because the browser should prompt (search for 401 on

Re: securing Restlet

2008-12-22 Thread Rob Heittman
Hi Rhett, Depending on the browser (I forget which ones exactly) you can sometimes push empty credentials into an XmlHttpRequest to effectively log out the user. But now, we are far down the path of horrible hacks :-) The caching of HTTP Basic credentials into XmlHttpRequest is inconsistently

Re: securing Restlet

2008-12-22 Thread Stephan Koops
Hi Rhett, Oh, so when you pass credentials using XmlHttpRequest, the browser automatically caches them? That's cool. I didn't know that worked. I guess this has the same downside as normal browser-based authentication, then -- it's impossible to log out without quitting the

Re: securing Restlet

2008-12-21 Thread Rhett Sutphin
On Dec 20, 2008, at 6:49 PM, Raif S. Naffah wrote: On Sunday 21 December 2008 09:05:46 Rhett Sutphin wrote: On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser

Re: securing Restlet

2008-12-20 Thread Stephan Koops
Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a new return status for it, because if the server returns 401 (authentication required / invald) to the client, then the browser

Re: securing Restlet

2008-12-20 Thread Raif S. Naffah
hello Stephan, On Saturday 20 December 2008 22:32:50 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a new return status for it, because if the server

Re: securing Restlet

2008-12-20 Thread Stephan Koops
Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a new return status for it, because if the server returns 401 (authentication required / invald) to the client, then the browser

Re: securing Restlet

2008-12-20 Thread Raif S. Naffah
hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a new return status for it, because if the server

Re: securing Restlet

2008-12-20 Thread Rhett Sutphin
On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set the credentials in it. I've implemented this, but I needed a

Re: securing Restlet

2008-12-20 Thread Raif S. Naffah
On Sunday 21 December 2008 09:05:46 Rhett Sutphin wrote: On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: hello Stephan, On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to not require the browser login prompt is to use an AJAX reqeust and set

Re: securing Restlet

2008-12-19 Thread Stephan Koops
Hi Raif, I think it is good, if a developer could build a HTML application with Restlet, where he could give a typical login HTML web page and the user could login without the browsers HTTP authentication prompt (because you can't design it and so on). In Servlet apps you typically use

Re: securing Restlet

2008-12-19 Thread Raif S. Naffah
hello Stephan, my comments are in-lined. On Friday 19 December 2008 19:49:12 Stephan Koops wrote: Hi Raif, I think it is good, if a developer could build a HTML application with Restlet, where he could give a typical login HTML web page and the user could login without the browsers HTTP