Skip to content

Commit

Permalink
Merge pull request #43094 from sberyozkin/oidc_token_propagation_test…
Browse files Browse the repository at this point in the history
…ing_link

Add links to the OIDC Token Propagation Testing section
  • Loading branch information
geoand committed Sep 10, 2024
2 parents 0a21b51 + 26c378d commit 311a6d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,10 @@ As mentioned, use `AccessTokenRequestFilter` if you work with Keycloak or an Ope
[[integration-testing-token-propagation]]
=== Testing

You can generate the tokens as described in xref:security-oidc-bearer-token-authentication.adoc#bearer-token-integration-testing[OpenID Connect Bearer Token Integration testing] section.
Prepare the REST test endpoints. You can have the test front-end endpoint, which uses the injected MP REST client with a registered token propagation filter, call the downstream endpoint. For example, see the `integration-tests/resteasy-client-oidc-token-propagation` in the `main` Quarkus repository.
Typically, you must prepare two REST test endpoints.
The first endpoint uses the injected MP REST client with a registered token propagation filter to call the second endpoint.

To learn how it can be done, please follow the xref:security-openid-connect-client.adoc[OpenID Connect client and token propagation] quickstart, and its xref:security-openid-connect-client.adoc#testing[Testing] section in particular.

ifndef::no-quarkus-oidc-client-graphql[]
[[quarkus-oidc-client-graphql]]
Expand Down
1 change: 1 addition & 0 deletions docs/src/main/asciidoc/security-openid-connect-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ After a little while, when the build finishes, you can run the native binary dir
./target/security-openid-connect-quickstart-1.0.0-SNAPSHOT-runner
----

[[testing]]
== Testing the application

For more information about testing your application in dev mode, see the preceding <<oidc-client-keycloak-dev-mode,Running the application in dev mode>> section.
Expand Down

0 comments on commit 311a6d5

Please sign in to comment.