Reputation: 8366
Iam looking for a proper way of authentication for my GAE
app.
Since I am using restlet framework for my web services I found cookies as a nice way for secure service calls. Now my doubts are:
Is there any better mechanism available than cookie?
Upvotes: 1
Views: 383
Reputation: 80340
If you enable sessions, handling cookies will be taken care of for you automatically: http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
Now, sessions are handled for all users, it's up to you to keep track who is authenticated:
All this functions are usually performed in a servlet filter. Filters handle requests before and after servlets handle request, so they give you an option to intercept a request and do some processing (like checking if request is authenticated).
Upvotes: 1