Hi

Looking a bit into the code, GWT supports basic authentication using
setUser(String user) and setPassword(String password) in
com.google.gwt.http.client.RequestBuilder.

org.restlet.gwt.Client uses RequestBuilder.doSend(String requestData,
RequestCallback callback) via GwtHttpClientCall, HttpClientConverter and
HttpClientHelper. In com.google.gwt.http.client.XMLHTTPRequest (called from
RequestBuilder.doSend(...)) it looks like GWT utilizes the browsers
xmlHttpRequest implementation to instantiate a request using username and
password.

During debug I have set a breakpoint in RequestBuilder.doSend(..) and set
the user and password "manually". It works against resources secured by
basic authentication.

Would it be possible to use this GWT feature to implement support for basic
authentication?

Best Regerds,
Rasmus

Reply via email to