I've created web application that uses 3-legged OAuth to access user's contacts API. At the end of the process I receive an access_token and access_token_secret which I save in a database together with the user_id(user's email).
The problem is that the next time someone tries to go through the OAuth I want if I already have existing token to use it instead of going through the whole procedure.
Is there a way to get the user_id before the user is authenticated.
For authentication I'm using the code from here: http://code.google.com/appengine/articles/java/retrieving_gdata_feeds.html