Skip to content

Commit

Permalink
add link
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuelle committed Oct 24, 2023
1 parent 32bf9e6 commit e7d0691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/reference/pages/feature/jwt/examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can reconfigure these defaults by specifying a `jwtConsumer` element with an

For JWT tokens that are signed with RS256 and an X.509 certificate, configure the `trustStoreRef` and `trustAliasName` attributes to locate the signature verification key.

. Import the JWT issuer's X.509 certificate into the truststore.
. Import the JWT issuer's X.509 certificate into the truststore.
. In the `jwtConsumer` element, specify the truststore ID and the certificate alias.

[source, xml]
Expand Down Expand Up @@ -59,3 +59,7 @@ com.ibm.websphere.security.jwt.JwtConsumer jwtConsumer = JwtConsumer.create("jwt
----
JwtToken jwtToken = jwtConsumer.createJwt("Base64_encoded_JWT_token>");
----

== Sign and verify JWTs with JSON Web Keys (JWK)

You can configure Open Liberty to use JWKs to sign the JWTs it builds and to verify the JWTs it consumes. For more information, see xref:ROOT:json-web-token.adoc[Sign and verify JSON Web Tokens with JSON Web Keys].

0 comments on commit e7d0691

Please sign in to comment.