Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 75ececf

Browse files
committed
Review comments and formatting.
1 parent df64b50 commit 75ececf

2 files changed

Lines changed: 13 additions & 18 deletions

File tree

src/main/jbake/content/security-api004.adoc

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ JSR 375 mandates that a Java EE container MUST support a built-in `IdentityStore
2525
backed by a database. To support this mandatory requirement, `DatabaseIdentityStore`
2626
is 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-
3128
This example demonstrates how you can configure a `DatabaseIdentityStore` to point
3229
to 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
3737
already been completed in the application files, but is provided here to illustrate
3838
what 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

7575
The 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195
When a request is made to the application, the roles the user is in are returned
196196
as 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" })`
198198
annotation 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-
232227
In GlassFish 5.0, group to role mapping is enabled by default. Therefore, you do
233228
not need to bundle web.xml with the application to provide mapping between
234229
roles and groups.

src/main/jbake/content/security-api005.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ As an alternative to using a built-in identity store, an application can provide
2525
its own IdentityStore. When bundled with the application,
2626
this custom identity store can then be used for authentication and authorization.
2727

28-
The source code for this example is in the
29-
`_tut-install_/examples/security/security-api/custom-identity-store` directory.
30-
3128
This example demonstrates how to define a custom identity store, `TestIdentityStore`, and
3229
provide it as part of the application being deployed. The authentication mechanism used is
3330
`BasicAuthenticationMechanism`.
3431

35-
The high-level process for defining the `TestIdentityStore` 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/custom-identity-store` directory.
34+
35+
The following sections describe the high-level process for defining
36+
the `TestIdentityStore`. Note that the configuration described in these sections has
3737
already been completed in the application files, but is provided here to illustrate
3838
what you need to do to use a custom identity store.
3939

@@ -72,7 +72,7 @@ Define the Users and Groups in the Identity Store
7272
The following table shows the user, password, and group used in this example.
7373

7474

75-
[width=99%,cols="30%,40%,30%"]
75+
[width=60%,cols="30%,40%,30%"]
7676
|====================================
7777
|*User* |*Password* |*Group*
7878

0 commit comments

Comments
 (0)