@@ -25,15 +25,15 @@ JSR 375 mandates that a Java EE container MUST support a built-in `IdentityStore
2525backed by a database. To support this mandatory requirement, `DatabaseIdentityStore`
2626is bundled with the GlassFish-RI.
2727
28- The source code for this example is in the
29- `_tut-install_/examples/security/security-api/built-in-db-identity-store` directory.
30-
3128This example demonstrates how you can configure a `DatabaseIdentityStore` to point
3229to a backend database and then use it as an IdentityStore. The authentication mechanism used is
3330`BasicAuthenticationMechanism` .
3431
35- The high-level process for configuring the DatabaseIdentityStore is shown in the
36- following sections. Note that the configuration described in these sections has
32+ The source code for this example is in the
33+ `_tut-install_/examples/security/security-api/built-in-db-identity-store` directory.
34+
35+ The following sections describe the high-level process for configuring the
36+ `DatabaseIdentityStore` . Note that the configuration described in these sections has
3737already been completed in the application files, but is provided here to illustrate
3838what you need to do to use the built-in database identity store.
3939
@@ -74,7 +74,7 @@ Define the Users and Groups in the Identity Store
7474
7575The following table shows the users, passwords, and groups used in this example.
7676
77- [width=99 %,cols="30%,40%,30%"]
77+ [width=60 %,cols="30%,40%,30%"]
7878|=======================================================================
7979|*User* |*Password* |*Group*
8080|Joe |secret1 |foo, bar
@@ -194,7 +194,7 @@ Declare Roles in the Servlet Container
194194^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195When a request is made to the application, the roles the user is in are returned
196196as part of the response. Note that the container needs to be made aware of the
197- supported roles, which you specify using the `@DeclareRoles({ "foo", "bar", "kaz" })`
197+ supported roles, which are defined using the `@DeclareRoles({ "foo", "bar", "kaz" })`
198198annotation as shown below.
199199
200200[source,oac_no_warn]
@@ -224,11 +224,6 @@ public class Servlet extends HttpServlet {
224224}
225225----
226226
227- [source,oac_no_warn]
228- ----
229- @DeclareRoles({ "foo", "bar", "kaz" })
230- ----
231-
232227In GlassFish 5.0, group to role mapping is enabled by default. Therefore, you do
233228not need to bundle web.xml with the application to provide mapping between
234229roles and groups.
0 commit comments