shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hazlewood <>
Subject Re: Getting Java Applet same authentication as browser session
Date Fri, 27 Jul 2012 17:01:28 GMT
If I understand your question correctly, I think our spring sample app
demonstrates what you desire:

The basic idea is that web app's session ID must be passed in as an
init param to the applet (or Java Web Start application).  The applet
or JWS app will send the session id with every request and the server
side remoting endpoint must get the session ID, create a subject
instance based on the Session ID, bind it to the thread, execute the
invocation, and then clean the thread.

This kind of logic is shown here for a Spring-specific remote
invocation, but the concept works the same for any environment:


Les Hazlewood | @lhazlewood
CTO, Stormpath | | @goStormpath | 888.391.5282
Stormpath wins GigaOM Structure Launchpad Award!

On Wed, Jul 25, 2012 at 6:55 AM, wami99 <> wrote:
> In a web-app when authenication is done in a browser, everything works fine.
> But when a Java Applet comes in to play, it redirects to the login page.
> What would be the best solution if there are some applets which can run in
> parallel. How can I provide every new Thread from the same host with the
> previous given credentials.
> For any help many thanks in advance.
> Walter
> --
> View this message in context:
> Sent from the Shiro User mailing list archive at

View raw message