Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-30 Thread Mark Thomas
On 29/04/2010 17:38, Christopher Schultz wrote:
 David,
 
 On 4/28/2010 6:40 PM, David Jencks wrote:
 I'd be curious how many of the features in securityfilter can be done
 with servlet 3 (which includes the ability for an app to
 programatically force a login) and jaspic (jsr 196) which provides
 for pluggable authentication dialogs between client and server (to
 overly simplify it).  It looks to me as if all the features in your
 brief description are now supported by ee specs, which also offer the
 advantages of container managed authorization.
 
 I guess my question would be how much of servlet 3 has been implemented
 in TC7 at this point? sf could be the basis for both the new features
 required by the spec as well as achieving the internal goal of
 converting Valves to Filters.

The Servlet 3.0 stuff is pretty much finished. Just the odd bug to iron
out. JSR 196 hasn't been looked at yet.

Mark



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-30 Thread Costin Manolache
IMHO filters like securityfilter are the right solution for authentication,
users can
use them in any container and have full control over everything.

It is possible to add some hooks into tomcat so that filters like this can
fully replace the
built-in authentication, for example using 'magic' attributes so you don't
have to depend on
container-specific APIs - +1 on that.

I haven't looked at the code, I have close to 0 free time this month - the
main issue with
bringing this code into apache or tomcat is community, i.e. having enough
developers
who can actively maintain it.


Costin

On Fri, Apr 30, 2010 at 9:50 AM, Mark Thomas ma...@apache.org wrote:

 On 29/04/2010 17:38, Christopher Schultz wrote:
  David,
 
  On 4/28/2010 6:40 PM, David Jencks wrote:
  I'd be curious how many of the features in securityfilter can be done
  with servlet 3 (which includes the ability for an app to
  programatically force a login) and jaspic (jsr 196) which provides
  for pluggable authentication dialogs between client and server (to
  overly simplify it).  It looks to me as if all the features in your
  brief description are now supported by ee specs, which also offer the
  advantages of container managed authorization.
 
  I guess my question would be how much of servlet 3 has been implemented
  in TC7 at this point? sf could be the basis for both the new features
  required by the spec as well as achieving the internal goal of
  converting Valves to Filters.

 The Servlet 3.0 stuff is pretty much finished. Just the odd bug to iron
 out. JSR 196 hasn't been looked at yet.

 Mark



 -
 To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: dev-h...@tomcat.apache.org




Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-30 Thread sebb
On 30/04/2010, Mark Thomas ma...@apache.org wrote:
 On 29/04/2010 17:38, Christopher Schultz wrote:
   David,
  
   On 4/28/2010 6:40 PM, David Jencks wrote:
   I'd be curious how many of the features in securityfilter can be done
   with servlet 3 (which includes the ability for an app to
   programatically force a login) and jaspic (jsr 196) which provides
   for pluggable authentication dialogs between client and server (to
   overly simplify it).  It looks to me as if all the features in your
   brief description are now supported by ee specs, which also offer the
   advantages of container managed authorization.
  
   I guess my question would be how much of servlet 3 has been implemented
   in TC7 at this point? sf could be the basis for both the new features
   required by the spec as well as achieving the internal goal of
   converting Valves to Filters.


 The Servlet 3.0 stuff is pretty much finished. Just the odd bug to iron
  out.

BTW, there are still quite a few Javadoc warnings - mainly @return
with no description

  JSR 196 hasn't been looked at yet.


  Mark




  -
  To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: dev-h...@tomcat.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-29 Thread Christopher Schultz
David,

On 4/28/2010 6:40 PM, David Jencks wrote:
 I'd be curious how many of the features in securityfilter can be done
 with servlet 3 (which includes the ability for an app to
 programatically force a login) and jaspic (jsr 196) which provides
 for pluggable authentication dialogs between client and server (to
 overly simplify it).  It looks to me as if all the features in your
 brief description are now supported by ee specs, which also offer the
 advantages of container managed authorization.

I guess my question would be how much of servlet 3 has been implemented
in TC7 at this point? sf could be the basis for both the new features
required by the spec as well as achieving the internal goal of
converting Valves to Filters.

-chris



signature.asc
Description: OpenPGP digital signature


RE: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-29 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Tomcat 7, Valve - Filter conversion, and container-
 managed authentication/authorization
 
 I guess my question would be how much of servlet 3 has been
 implemented in TC7 at this point?

Similarly, what's the status of JSR 196?  It seems to be languishing, to put it 
kindly.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.




Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-29 Thread David Jencks

On Apr 29, 2010, at 9:48 AM, Caldarale, Charles R wrote:

 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Tomcat 7, Valve - Filter conversion, and container-
 managed authentication/authorization
 
 I guess my question would be how much of servlet 3 has been
 implemented in TC7 at this point?
 
 Similarly, what's the status of JSR 196?  It seems to be languishing, to put 
 it kindly.

Geronimo has a provider implementation, which we use, jetty has built in 
support, geronimo's tomcat fork has support which we've offered back to tomcat, 
glassfish has support, IIUC JBoss has had support for many years (well before 
the spec was approved).  I'm a little unclear on the exact status in ee6 but 
think that support for the servlet profile is required so I'd expect the 
commercial vendors to support it as well in their ee6 releases.

There does seem to be remarkable reluctance on the part of users to consider 
trying it.  Do you have any idea why?

thanks
david jencks

 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-28 Thread David Jencks
I'd be curious how many of the features in securityfilter can be done with 
servlet 3 (which includes the ability for an app to programatically force a 
login) and jaspic (jsr 196) which provides for pluggable authentication dialogs 
between client and server (to overly simplify it).  It looks to me as if all 
the features in your brief description are now supported by ee specs, which 
also offer the advantages of container managed authorization.

thanks
david jencks

On Apr 28, 2010, at 10:49 AM, Christopher Schultz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 All,
 
 Hello, I'm Chris Schultz, the maintainer of the securityfilter project
 (http://securityfilter.sourceforge.net/) and active member of the
 tomcat-user mailing list.
 
 I've been loosely following the plans for Tomcat 7 and was interested to
 see that there's an effort to convert existing Tomcat Valve components
 into Filters, I suppose to make them more flexible and also to increase
 portability.
 
 For those unfamiliar with the project, securityfilter is a filter-based
 implementation of authentication and authorization that aims to comply
 with the Java Servlet Specification while offering features above and
 beyond it. Most of our users have abandoned container-managed auth
 provided by containers such as Tomcat because of missing features (not
 specified by the servlet spec) such as barge-in logins, customized
 after-login pages, and customizability that doesn't tie the web
 application to any specific container.
 
 I inherited the existing securitfyilter code base from Max Cooper and
 I've been trying to improve the compliance with the servlet spec and to
 ensure support for the more recent versions of the spec (sf is mostly
 2.3 compliant, but we're trying to fill-in all the holes). After adding
 a few features to the 2.x code base, I'm considering a full re-write of
 the code for a 3.x version that is more flexible than the current
 implementation.
 
 I was thinking that, as Tomcat contemplates a conversion of
 container-managed auth from a Valve to a Filter, securityfilter could
 possibly factor-into that conversion. I'd be happy to convert sf into an
 Apache commons/incubator project and have Tomcat use it for
 authentication and authorization.
 
 Mark Thomas has indicated his interest in discussing this possibility on
 the development list, so I'm presenting it to the group. I'd be happy to
 give more details about my current plans for sf, etc. but I figured that
 if there was significant interest in the Tomcat/ASF communities, we
 could discuss what feature set ought to be available.
 
 Please let me know if the community is interested in adopting
 securityfilter and, ultimately, using it in Tomcat.
 
 Thanks,
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkvYdS8ACgkQ9CaO5/Lv0PCRygCgwJ3Sw9g5YRbgHh/RQqLXdzXz
 8IwAoJBEk06BovBRtADh9WfAQMx/F2Zp
 =dcy8
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: dev-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Tomcat 7, Valve - Filter conversion, and container-managed authentication/authorization

2010-04-28 Thread David Jencks

On Apr 28, 2010, at 4:14 PM, Pid wrote:

 On 28/04/2010 23:40, David Jencks wrote:
 I'd be curious how many of the features in securityfilter can be done with 
 servlet 3 (which includes the ability for an app to programatically force a 
 login) and jaspic (jsr 196) which provides for pluggable authentication 
 dialogs between client and server (to overly simplify it).  It looks to me 
 as if all the features in your brief description are now supported by ee 
 specs, which also offer the advantages of container managed authorization.
 
 Srv 3.0 /does/ cover some of the functions of securityfilter, but IMHO
 the latter's been a home for things that the spec doesn't cover, but
 that are common requirements anyway.
 
 It could now be a source of Tomcat integration with technologies like
 OpenID  OAuth for example, if the existing experience of operating as a
 Filter rather than a Valve wasn't of enough interest.

I'm well aware of the limitations of servlet 2.5 without jaspic.  However, to 
use one of your examples, it's easy to write an OpenID jaspic server 
authentication module that lets you do container managed authentication and 
authorization using openid (see the geronimo-jaspi-openid component).  There's 
also a SPNEGO auth module somewhere.

Rather than telling me that old specs don't support a lot of stuff 
securityfilter does, I'd like to know specifically what securityfilter does 
that the new specs don't support.

At this point I have no opinion on whether it would be a good idea for 
securityfilter to move to apache.  One incubator project that might be somewhat 
related is Shiro (formerly jsecurity).  I have no idea how similar the projects 
are.

thanks
david jencks

 
 
 p
 
 thanks
 david jencks
 
 On Apr 28, 2010, at 10:49 AM, Christopher Schultz wrote:
 
 All,
 
 Hello, I'm Chris Schultz, the maintainer of the securityfilter project
 (http://securityfilter.sourceforge.net/) and active member of the
 tomcat-user mailing list.
 
 I've been loosely following the plans for Tomcat 7 and was interested to
 see that there's an effort to convert existing Tomcat Valve components
 into Filters, I suppose to make them more flexible and also to increase
 portability.
 
 For those unfamiliar with the project, securityfilter is a filter-based
 implementation of authentication and authorization that aims to comply
 with the Java Servlet Specification while offering features above and
 beyond it. Most of our users have abandoned container-managed auth
 provided by containers such as Tomcat because of missing features (not
 specified by the servlet spec) such as barge-in logins, customized
 after-login pages, and customizability that doesn't tie the web
 application to any specific container.
 
 I inherited the existing securitfyilter code base from Max Cooper and
 I've been trying to improve the compliance with the servlet spec and to
 ensure support for the more recent versions of the spec (sf is mostly
 2.3 compliant, but we're trying to fill-in all the holes). After adding
 a few features to the 2.x code base, I'm considering a full re-write of
 the code for a 3.x version that is more flexible than the current
 implementation.
 
 I was thinking that, as Tomcat contemplates a conversion of
 container-managed auth from a Valve to a Filter, securityfilter could
 possibly factor-into that conversion. I'd be happy to convert sf into an
 Apache commons/incubator project and have Tomcat use it for
 authentication and authorization.
 
 Mark Thomas has indicated his interest in discussing this possibility on
 the development list, so I'm presenting it to the group. I'd be happy to
 give more details about my current plans for sf, etc. but I figured that
 if there was significant interest in the Tomcat/ASF communities, we
 could discuss what feature set ought to be available.
 
 Please let me know if the community is interested in adopting
 securityfilter and, ultimately, using it in Tomcat.
 
 Thanks,
 -chris
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: dev-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: dev-h...@tomcat.apache.org
 
 
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org