Hi, I'm struggling with a way to provide authentication in an application I'm developing. I've been trying to get basic user authentication in place but I'm having doubts on how to properly show the users a login page, how to pass around an authorization token (sessions?) or how to give my users the correct module based on their role.
I have two user roles, this is a simple application that will manage some car information that a mechanic will fill and that the car's owner can check online. The bulk of the application is of interest only to the mechanic, the owner just checks a few listing screens. After reading this page: htp://code.google.com/webtoolkit/articles/dynamic_host_page.html, I though about creating a servlet that logs the user in and shows the correct module (car owner/car mechanic) based on the user's credentials (username/password). But I'm completely at loss on how to do this. How can I make the servlet for authentication be the default servlet, confirm that the user is authenticated or needs to login and than send that information to be used by GWT? I've mapped my authentication servlet to respond to the url '/', it also writes the HTML with the correct js files for the modules I need but I'm not seeing a way to send the login info to GWT. Any docs on how to achieve this? Regards, Sérgio Lopes -- https://www.plesform.com - Gestão de formação simples e eficaz. -- 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.
