Basic Authentication with Timeout

18 views
Skip to first unread message

Genom

unread,
Jul 28, 2011, 12:40:22 PM7/28/11
to google-a...@googlegroups.com
Hi,

I am writing an application in Java, which will maybe serve different apps (desktop, mobile, web etc...). It will take requests, process parameters and responds with a text. Very simple actually. But the problem is I want to know which apps made which requests (also their ip adresses) and I don't want that any client app uses my GAE application without "logging in".

The logging in is also very simple. They just have to send a client app specific string so that my application knows who is reaching my services. On the server side I (my code) will take this client app specific string, client's ip and request time and store it. If client doesn't do anything for 5 minutes, it loses it's authentication and must log in again. I don't know if there is a simple API for this purpose. I thought that I can use datastore for that and do the job programmatically but this seems to have high costs. What do you think?

Ikai Lan (Google)

unread,
Jul 29, 2011, 10:43:37 AM7/29/11
to google-a...@googlegroups.com
You'll have to do it programmatically because the users API is meant for users logging in with a Google Account, and the OAuthService is meant for clients that don't mind going through the three-legged oauth auth dance. 

The costs really won't be that high if you use key names and/or a clever Memcache scheme. 

--
Ikai Lan 
Developer Programs Engineer, Google App Engine



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/8Fy2aSKW-loJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages