Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:28:51+00:00 2026-05-26T07:28:51+00:00

My web application consists of 2 parts: GWT app that does all the work.

  • 0

My web application consists of 2 parts:

  1. GWT app that does all the work.
  2. Handmade servlet aimed to handle OpenID authentication facility.

I need to wire p.2 to p.1. I’m reading LoginSecurityFAQ, so I’d like to confirm whether my understanding is correct here.

  1. Once OpenID provider confirms that user is OK and gives me its identity, I should register the session.
  2. To “register” the session, I should store somewhere in my DB a mapping between OpenID identity and a session id (identity=”https://www.google.com/accounts/o8/id?id=wwyruiwncuyrwieruyfakefakefake” and session id is a large random string like “HiuhoiuhIUHOIUY87Y*&Ttgi6yUYGIuygUHGugyg^G6g”).
  3. That session id should be stored on client side in a cookie.
  4. Every time any request is sent from client side, on server side I should check whether client’s session id is still fresh enough (alive) and I should also use it to resolve client’s identity in case I need it.

Is it right? Is it secure enough in case session ID is really large?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:28:51+00:00Added an answer on May 26, 2026 at 7:28 am

    Your thinking is right, I do it more or less like that too.

    Just a few notes:

    1) In case you want to persist the identity, do not forget to set the realm right. Depending on OpenID provider you may end up with a different identity for the same user on next login otherwise. I think Google’s OpenID requires you to use your server name plus port:

    openIdManager.setRealm("http://" + req.getServerName() + ":" + req.getServerPort());
    

    2) Why create your own session management? It is quite a lot of extra work and you might end up writing up something insecure. Use common http servlet sessions.

    3) You won’t need to manage session timeouts if you use http sessions, but if you need to intercept all GWT RPC calls, the right place might be overriding service method in your RemoteServiceServlet implementation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that consists of three parts: a front-end web shop for
I've written a layered web application that consists of a rich-web client (PHP) that
I have a web application that consists of Website and REST API. Should I
I have a web application that consists of two websites - one running on
I am writing a simple Python web application that consists of several pages of
I am in the process of developing a web application that consists visually of
I have added an MVC3 web application to an existing website that consists of
Suppose I created a custom web application that consists of: several assembly DLLs: web
I have a web application that consists of a web service with two operations:
My web application consists of library type system where books have due dates. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.