Re: Save authentication data in Android between acivities

2012-05-07 Thread Thierry Boileau
Hello Sultan,

unfortunately, each request must provide authentication/authorization data
as stated by the stateless constraint:
communication must be stateless in nature, as in the
client-stateless-server (CSS) style of Section
3.4.3<http://www.ics.uci.edu/%7Efielding/pubs/dissertation/net_arch_styles.htm#sec_3_4_3>(Figure
5-3<http://www.ics.uci.edu/%7Efielding/pubs/dissertation/rest_arch_style.htm#fig_5_3>),
such that each request from client to server must contain all of the
information necessary to understand the request, and cannot take advantage
of any stored context on the server. Session state is therefore kept
entirely on the client.

Best regards,
Thierry Boileau


Hi.
>
> When i launch my app appears activity (AuthActivity) where i enter my login
> and password. I authorize on the server and move on to another activity
> where I'm trying to get a resource from the server. But in response I'm
> getting a 401 error - Unathorized.
>
> How can I don't make to authenticate every time when move between
> activities
>
> I use DigestAuthenticator.
>
> --
> View this message in context:
> http://restlet-discuss.1400322.n2.nabble.com/Save-authentication-data-in-Android-between-acivities-tp7523306.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2957328
>

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

Save authentication data in Android between acivities

2012-05-03 Thread Sultan Kosaev
Hi. 

When i launch my app appears activity (AuthActivity) where i enter my login
and password. I authorize on the server and move on to another activity
where I'm trying to get a resource from the server. But in response I'm
getting a 401 error - Unathorized.

How can I don't make to authenticate every time when move between activities

I use DigestAuthenticator.

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Save-authentication-data-in-Android-between-acivities-tp7523306.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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