Mark,

There are many ways in which login can be implemented but it purely depends on your requirement.

You can always build your own authentication/ authorization mechanism in your application but then you should also question the need for another authentication system against using the likes of open-id, oauth based authentication providers like google/ twitter/ facebook/ msn/ yahoo etc.

Answer to the above question would change how you build the authentication (login). Either case you would have to define the authorization (page control based on roles etc).

for example, I implemented facebook login for one of my apps. I used the approach #3 where in I placed the facebook connect button in a jsp, wrote minor javascript (generated most of it from facebook apps) and forwarded the response to my gwt-app which had filters defined to check for the presence of oauth tokens. if a valid token is present i create a session, if not I allow my user to continue as an unauthenticated user.

I have also implemented the above facebook auth using ouath2 module for gwt. This can be found in google code. In this case the gwt plugin can be directly used your application.


There have been a ton of prior discussions in this forum about Login/ Security. Search for that topic and you would see many threads which provide valuable information.

~Ashwin

On Wednesday 23 November 2011 05:15:46 AM IST, Mark Wengranowski wrote:
Hi Everyone,

Im finishing my first GWT app and am about to implement the login
page. I've been doing a lot of reading and wanted to get some opinions
on different ways to go about doing it.

The options I have found are the following:

1. Implement the login page into the main application and allow the
user into the next section once they successfully login.

2. Have a separate GWT program for the login that redirects to the
main program once the user successfully logs in

3. Modify the GWT main HTML page to a .jsp and use jsp to set the
session variables and authenticate the user. After successfully
logging in, the page will refresh and the line for the my programs
GWT .js file is written to the page causing it to load.

4. Same as #3 but create a new jsp ad the default page and redirect to
the normal GWT .html page for the program.

Ideally i would like to have my GWT app loading in the background
while the user is typing in their username and password. That way they
won't have to wait for the program to load once they submit their
credentials. Will any of these methods allow me to do this?

Thanks!
-Mark



--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to