From 2dbe8f696f3a52aefb521a681501564edf199d1f Mon Sep 17 00:00:00 2001 From: Seto <61304189@qq.com> Date: Mon, 2 Sep 2024 12:35:19 +0800 Subject: [PATCH] Add additional notes to the doc. Fix #32143. --- docs/src/main/asciidoc/security-keycloak-authorization.adoc | 6 ++++++ .../security-oidc-bearer-token-authentication-tutorial.adoc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/src/main/asciidoc/security-keycloak-authorization.adoc b/docs/src/main/asciidoc/security-keycloak-authorization.adoc index 622dd26ac9d20..a46d434bede7b 100644 --- a/docs/src/main/asciidoc/security-keycloak-authorization.adoc +++ b/docs/src/main/asciidoc/security-keycloak-authorization.adoc @@ -334,6 +334,12 @@ export access_token=$(\ ) ---- +[NOTE] +==== +If the setting below is set, you should add the openid to the scope in the query parameters. +`quarkus.oidc.authentication.user-info-required=true` +==== + The preceding example obtains an access token for user `alice`. Any user is allowed to access the diff --git a/docs/src/main/asciidoc/security-oidc-bearer-token-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-oidc-bearer-token-authentication-tutorial.adoc index e121297f002e3..a1cd486808dd5 100644 --- a/docs/src/main/asciidoc/security-oidc-bearer-token-authentication-tutorial.adoc +++ b/docs/src/main/asciidoc/security-oidc-bearer-token-authentication-tutorial.adoc @@ -319,6 +319,12 @@ export access_token=$(\ ---- ==== +[NOTE] +==== +If the setting below is set, you should add the openid to the scope in the query parameters. +`quarkus.oidc.authentication.user-info-required=true` +==== + The preceding example obtains an access token for the user `alice`. * Any user can access the `http://localhost:8080/api/users/me` endpoint, which returns a JSON payload with details about the user.