users@glassfish.java.net

Need help writing a SAM (JSR 196)

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Nov 2008 04:59:23 PST

Hello experts;
<br/><br/>
We use Glassfish v2-ur2 for intranet and internet applications. Users who come from internet have already successfully authenticated themself on a web-entry server, their username is added to an encoded cookie. The Glassfish server should recognize the
cookie and accept the Principal.<br/><br/>
I posted the question here <a href="http://forums.java.net/jive/thread.jspa?threadID=53181&tstart=195">thread</a> and
received the answer to use a custom SAM.
<br/><br/>
This sounds good to me. But I see now that using a custom SAM does not mean to <i>hook into the request chain if required</i>,
it means to <i>take control</i> of the request, which is quiet complex, I think.
<br/><br/>
Is there a sample of a custom SAM module which does exactly what the Glassfish server does by default for a Web application which uses
Form-Login?
<br/><br/>
Thank your very much for any hints...
<br/><br/>
Ivo
[Message sent by forum member 'jdrive' (jdrive)]

http://forums.java.net/jive/thread.jspa?messageID=318402