Hello sanjib,

I may be wrong, but as far as I know, all the connection aspects related 
to HTTP authentication are handled by the browser.
In case the credentials are wrong (even if entered on your own popup), 
the browser will display its own popup.
However, there may be workarounds (such as generate the authorization 
header from the javascript code, or other technics), but I'm not sure 
this is always successfull.
One idea is to define a special resource that aims uniquely at saying if 
the credentials are correct. If they are, then the desired request is 
sent from the client page in order to set up the browser's session.
Another track for you to explore is the authentication based on cookies.

Best regards,
Thierry Boileau

> Hello,
>
> I am using RESTLET-GWT client to talk to restlet backend using basic 
> authentication. It's working fine.
>
> I am looking for an api in GWT-RESTLET client side to check if the current 
> browser is already authenticated, based on the I would provide a custom-popup 
> to the user to provide the credentials or take it to the logged in page.
>
> Is it available? Otherwise, is there some other way to achieve the same ?
>
> thanks...sanjib
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2430501
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2430847

Reply via email to