In my application I am validating the user locally by matching the password and email id in local database and creating a session key using the JAVA UUID generator and storing it in Guava Cache and checking it with every request come from user.Now I am also validating the user by the OpenID authentication using the front end now i want to manage session for users those are login using OpenID
using the same approach.
In back-end i am using the restful jersey service,hibernate,PostgreSQL and front end is HTML5 and may be android client and so on.
Now I am stuck that when user is validating through front end using the OpenID how I maintain the session using above approach ?
Now I am creating the partial profile of users in my local database those are coming via open id and validating only their email id in database and creating a session key using the JAVA UUID generator and storing it in Guava Cache and checking it with every requests comes from user.