Skip to content

Commit

Permalink
Merge pull request #6113 from OpenLiberty/6024_wt2
Browse files Browse the repository at this point in the history
#6024 Dmuller comments
  • Loading branch information
hiltoncv authored Dec 9, 2022
2 parents fa047db + 6babe43 commit 09d8c4e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/reference/pages/feature/jwt/examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
== Examples

=== Construct JWT for an application
The following example shows how to configure the server for constructing a JSON Web Token (JWT) for an application.
The following example shows how to configure the server to construct a JSON Web Token (JWT) for an application.

[source, xml]
----
Expand All @@ -18,9 +18,7 @@ The `expiry` attribute indicates the token expiration time, which is 600 seconds

=== Configure the JWT consumer

When you add the `jwt-1.0` feature and save your changes, Open Liberty adds the `jwtConsumer` element.

For information about `jwtConsumer` attributes that you can configure, see config:jwtConsumer[display=JWT consumer].
When the JSON Web Token feature is enabled, Open Liberty creates a default configuration with the following values.

In this default configuration, the following values are assumed.

Expand Down Expand Up @@ -62,4 +60,4 @@ com.ibm.websphere.security.jwt.JwtConsumer jwtConsumer = JwtConsumer.create("jwt
[source, java]
----
JwtToken jwtToken = jwtConsumer.createJwt("Base64_encoded_JWT_token>");
----
----

0 comments on commit 09d8c4e

Please sign in to comment.