I need a secure login for my first GWT app. I originally had an HTML login page with a button that simply linked to my project.html file, but I was unable to convert the values entered into the username/password text boxes into java strings for authentication purposes (I'd also like to have every client-side request re-authenticated).
-- Anyway, I decided to create a login "page" by having my entrypoint be a simple panel overlay with fields for username and password. On successful authentication, the button actually just removes the overlay panel and displays the underlying GWT app. This works fine, except that I also have a Javascript idle timer set up in my project.html file. Originally this was set to redirect back to my Login.html page on timeout, but obviously since I've disabled my login.html page, that won't work.
So I think I have a few options, but I'm not sure which is best, so here are the questions:
1) I can go back to the HTML login page, which had everything working minus what I already mentioned; if so, how do I handle taking the HTML form input and using it in my Java classes?
2) If I keep my Java panel version, do I have to create a new idle timer in Java that then actually reapplies the login panel (the exact opposite of what the login button does)? Because I can't see how the Javascript timer would work with no HTML file to redirect to on timeout. Also, this seems inefficient.
3) Is there a better way than what I've said? As I said, this is my first GWT app and my background is front-end web, so the Java is also relatively new to me.
Thanks in advance!
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment