Easiest is to use a dynamic host page<https://developers.google.com/web-toolkit/articles/dynamic_host_page>. The token passed by the SSO is processed on the server-side and the user info (along with a token for the app and/or a session/cookie) is written in a <script> in the page, which is read from the GWT app using either a Dictionary or a JSNI method. Have a look at the guice-rf-activity archetype in https://github.com/tbroyer/gwt-maven-archetypes. Usage with a SSO shouldn't be much different. BTW, this is more or less what Google does for all their apps (GMail, Groups, etc.)
On Monday, November 12, 2012 12:34:30 PM UTC+1, dcheeky77 wrote: > > Hello! > > I'm starting a simple project in GWT, but I'm a newbie and don't know how > to approach this problem in the right way. > > My application must have a login page and a main content one, where all > views are managed/displayed (it looks like standard GWT). The login page > must be different than the other, since it's monitored by a Single-Sign-On > application, over which I don't have control (the content page is not > monitored by that application). > Information about the logged in user must then be "passed" to the content > page, which uses them (together with an authentication token passed by the > SSO application) to query external web services. > > It seems like a basic problem, but I can't find the proper way of solving > it. > > - If I make the login page in GWT, how do I pass data to the next page > and how do I even navigate there? > - I thought of making the login page without GWT, submitting to a > servlet > - I'm not allowed to deploy a different war, so I'd have to make > the servlet inside the GWT application, but how can I then call the GWT > content page? Passing GET parameters doesn't look appropriate, since > I'd > have to pass authentication data... Is there any way to share the > scopes? > > If I haven't explained properly, I'm more than available to explain > better, since I'm definitely missing some basic GWT concepts. > > Thank you very much in advance! > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DvmTFCdQ2lAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.