29 Jan · Thu 2009
Adding Pluggable Authentication to all Servlet 3.0 Containers
06 Jan · Tue 2009
Defining Security Constraints on Content under Glassfish Docroot
16 Dec · Tue 2008
Servlet 3.0: HTTP method exception lists in security constraints
07 Nov · Fri 2008
Prelude includes Portable, In-Memory JACC Provider
- stop the application server (i.e., asadmin stop-domain)
- edit domain.xml and add or change the security-service element to define the attribute jacc="simple"
- restart the application server. (i.e, asadmin start-domain)
19 Aug · Tue 2008
Servlet security constraints - summary and recommendations
18 Aug · Mon 2008
Using JACC to determine a caller's roles
22 Jan · Tue 2008
Pluggable Authentication in the Glassfish Web Tier
- implementing a JSR 196 server authentication module (i.e., a SAM), and
- configuring the SAM as a message-security-provider via the Glassfish admin console, and
- binding the SAM for use by your application via sun-web.xml.
A SAM differs from a custom realm in that the SAM can control the HTTP authentication dialog, while a realm is typically used by a system controlling the dialog (such as a SAM) to validate or augment credentials extracted from the exchanged messages. JSR 196 is also used by (and available within) the client and server-side web service pipelines of the Glassfish METRO stack.[Read More]
15 Jan · Tue 2008
How to define an ANYONE role in Glassfish
- configure the "assign.groups" property of the Glassfish realm used for the application. This can be accomplished by using the admin console. Login to the console and navigate to the realm specific configuration screen found under configuration => security => realms. In the "Assign Group:" input box on that screen, specify the name of the group principal that you want to be assigned by the realm.
- declare a role either within the corresponding portable deployment descriptor, or by using either the @declareRoles or @rolesAllowed annotations.
- map the assigned group principal to the declared role, as described in Principal 2 role mapping and Glassfish. If the default mapping is employed to map the group principal to the role, the name of the role must be equivalent to that of the assigned group. Otherwise, the role may be given any name.
18 Dec · Tue 2007
Policy Files, The SecurityManager, and Glassfish Access Control
16 Nov · Fri 2007
principal 2 role mapping and Glassfish