From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Sep 2008 14:47:02 PDT
you are correct that the issue is how to get the collected creds to the servlet container, and then how to inject some code in the servlet container, that will validate them, and assign the corresponding identity to the servlet invocation.
The preferred way to do this in Glassfish, is to write a Server Authentication Module or SAM. You can see a description of how to do this at