|
Re: how to support login + password authentication? [message #106837 is a reply to message #106635] |
Mon, 29 September 2008 15:14 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
David,
I assume that your RAP application is workbench based.
In this case, open a modal shell or a blocking JFace dialog that
asks for the login information and only calls
PlatformUI#createAndRunWorkbench() if a valid user/password was given.
HTH
Rüdiger
David Donohue wrote:
> I would like to do require simple login + password to access my RAP
> application. How can I do this?
>
> Apologies if this was explained elsewhere but I cannot find how.
>
> Thanks!
> David
>
>
|
|
|
|
Re: how to support login + password authentication? [message #106999 is a reply to message #106957] |
Tue, 30 September 2008 07:25 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi David,
not sure if I understood right. Once the session has expired, it is
not possible to show a login dialog. As any UI element needs a
session, hence no session, no login dialog.
The listener you mentioned is informed before the session is
destroyed but there is no way to cancel the destruction of the session.
However, upon the next user interaction a new session will be
created and the login dialog in your createUI method would be presented.
HTH
Rüdiger
David Donohue wrote:
> Rüdiger,
> Yes my app is workbench-based.
> The other question is how to detect when the session has expired and
> show the login dialog at that time. I found this code snippet to add a
> listener. Is this the approach you would recommend?
>
> ISessionStore sessionStore = RWT.getSessionStore();
> sessionStore.addSessionStoreListener(new SessionStoreListener() {
> public void beforeDestroy(final SessionStoreEvent event){
> System.out.println("Session destroyed: " + sessionId);
> //show login dialog }
> });
>
> Many thanks!
> David Donohue
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.01296 seconds