From 26c378debd385977475785e3b36d7569599a282a Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Fri, 6 Sep 2024 18:42:05 +0100 Subject: [PATCH] Add links to the OIDC Token Propagation Testing section --- .../asciidoc/security-openid-connect-client-reference.adoc | 6 ++++-- docs/src/main/asciidoc/security-openid-connect-client.adoc | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc index ce458fdc3c2e9..504d156b09c81 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc @@ -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]] diff --git a/docs/src/main/asciidoc/security-openid-connect-client.adoc b/docs/src/main/asciidoc/security-openid-connect-client.adoc index 89420725660f8..8e780bbb86f82 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client.adoc @@ -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 <> section.