Skip to content

Commit b37b1a0

Browse files
committed
Sync documentation of main branch
1 parent 609675f commit b37b1a0

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed

_generated-doc/main/config/quarkus-all-config.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72353,6 +72353,32 @@ endif::add-copy-button-to-env-var[]
7235372353
|Map<String,String>
7235472354
|
7235572355

72356+
a| [[quarkus-oidc-client_quarkus-oidc-client-refresh-interval]] [.property-path]##link:#quarkus-oidc-client_quarkus-oidc-client-refresh-interval[`quarkus.oidc-client.refresh-interval`]##
72357+
ifdef::add-copy-button-to-config-props[]
72358+
config_property_copy_button:+++quarkus.oidc-client.refresh-interval+++[]
72359+
endif::add-copy-button-to-config-props[]
72360+
72361+
72362+
`quarkus.oidc-client."id".refresh-interval`
72363+
ifdef::add-copy-button-to-config-props[]
72364+
config_property_copy_button:+++quarkus.oidc-client."id".refresh-interval+++[]
72365+
endif::add-copy-button-to-config-props[]
72366+
72367+
[.description]
72368+
--
72369+
Token refresh interval. By default, OIDC client refreshes the token during the current request, when it detects that it has expired, or nearly expired if the `refresh-token-time-skew()` is configured. But, when this property is configured, OIDC client can refresh the token asynchronously in the configured interval. This property is only effective with OIDC client filters and other `AbstractTokensProducer` extensions, but not when you use the `OidcClient++#++getTokens()` API directly.
72370+
72371+
72372+
ifdef::add-copy-button-to-env-var[]
72373+
Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++[]
72374+
endif::add-copy-button-to-env-var[]
72375+
ifndef::add-copy-button-to-env-var[]
72376+
Environment variable: `+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++`
72377+
endif::add-copy-button-to-env-var[]
72378+
--
72379+
|link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-all-config[icon:question-circle[title=More information about the Duration format]]
72380+
|
72381+
7235672382
h|[[quarkus-oidc-client_section_quarkus-oidc-client-proxy]] [.section-name.section-level0]##link:#quarkus-oidc-client_section_quarkus-oidc-client-proxy[HTTP proxy configuration]##
7235772383
h|Type
7235872384
h|Default

_generated-doc/main/config/quarkus-oidc-client.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,32 @@ endif::add-copy-button-to-env-var[]
756756
|Map<String,String>
757757
|
758758

759+
a| [[quarkus-oidc-client_quarkus-oidc-client-refresh-interval]] [.property-path]##link:#quarkus-oidc-client_quarkus-oidc-client-refresh-interval[`quarkus.oidc-client.refresh-interval`]##
760+
ifdef::add-copy-button-to-config-props[]
761+
config_property_copy_button:+++quarkus.oidc-client.refresh-interval+++[]
762+
endif::add-copy-button-to-config-props[]
763+
764+
765+
`quarkus.oidc-client."id".refresh-interval`
766+
ifdef::add-copy-button-to-config-props[]
767+
config_property_copy_button:+++quarkus.oidc-client."id".refresh-interval+++[]
768+
endif::add-copy-button-to-config-props[]
769+
770+
[.description]
771+
--
772+
Token refresh interval. By default, OIDC client refreshes the token during the current request, when it detects that it has expired, or nearly expired if the `refresh-token-time-skew()` is configured. But, when this property is configured, OIDC client can refresh the token asynchronously in the configured interval. This property is only effective with OIDC client filters and other `AbstractTokensProducer` extensions, but not when you use the `OidcClient++#++getTokens()` API directly.
773+
774+
775+
ifdef::add-copy-button-to-env-var[]
776+
Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++[]
777+
endif::add-copy-button-to-env-var[]
778+
ifndef::add-copy-button-to-env-var[]
779+
Environment variable: `+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++`
780+
endif::add-copy-button-to-env-var[]
781+
--
782+
|link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-quarkus-oidc-client_quarkus-oidc-client[icon:question-circle[title=More information about the Duration format]]
783+
|
784+
759785
h|[[quarkus-oidc-client_section_quarkus-oidc-client-proxy]] [.section-name.section-level0]##link:#quarkus-oidc-client_section_quarkus-oidc-client-proxy[HTTP proxy configuration]##
760786
h|Type
761787
h|Default

_generated-doc/main/config/quarkus-oidc-client_quarkus.oidc-client.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,32 @@ endif::add-copy-button-to-env-var[]
756756
|Map<String,String>
757757
|
758758

759+
a| [[quarkus-oidc-client_quarkus-oidc-client-refresh-interval]] [.property-path]##link:#quarkus-oidc-client_quarkus-oidc-client-refresh-interval[`quarkus.oidc-client.refresh-interval`]##
760+
ifdef::add-copy-button-to-config-props[]
761+
config_property_copy_button:+++quarkus.oidc-client.refresh-interval+++[]
762+
endif::add-copy-button-to-config-props[]
763+
764+
765+
`quarkus.oidc-client."id".refresh-interval`
766+
ifdef::add-copy-button-to-config-props[]
767+
config_property_copy_button:+++quarkus.oidc-client."id".refresh-interval+++[]
768+
endif::add-copy-button-to-config-props[]
769+
770+
[.description]
771+
--
772+
Token refresh interval. By default, OIDC client refreshes the token during the current request, when it detects that it has expired, or nearly expired if the `refresh-token-time-skew()` is configured. But, when this property is configured, OIDC client can refresh the token asynchronously in the configured interval. This property is only effective with OIDC client filters and other `AbstractTokensProducer` extensions, but not when you use the `OidcClient++#++getTokens()` API directly.
773+
774+
775+
ifdef::add-copy-button-to-env-var[]
776+
Environment variable: env_var_with_copy_button:+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++[]
777+
endif::add-copy-button-to-env-var[]
778+
ifndef::add-copy-button-to-env-var[]
779+
Environment variable: `+++QUARKUS_OIDC_CLIENT_REFRESH_INTERVAL+++`
780+
endif::add-copy-button-to-env-var[]
781+
--
782+
|link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-quarkus-oidc-client_quarkus-oidc-client[icon:question-circle[title=More information about the Duration format]]
783+
|
784+
759785
h|[[quarkus-oidc-client_section_quarkus-oidc-client-proxy]] [.section-name.section-level0]##link:#quarkus-oidc-client_section_quarkus-oidc-client-proxy[HTTP proxy configuration]##
760786
h|Type
761787
h|Default

_versions/main/guides/security-openid-connect-client-reference.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,16 @@ You can also inject named `Tokens`, see <<named-oidc-clients,Inject named OidcCl
713713
`OidcClientRequestReactiveFilter`, `OidcClientRequestFilter` and `Tokens` producers will refresh the current expired access token if the refresh token is available.
714714
Additionally, the `quarkus.oidc-client.refresh-token-time-skew` property can be used for a preemptive access token refreshment to avoid sending nearly expired access tokens that might cause HTTP 401 errors. For example, if this property is set to `3S` and the access token will expire in less than 3 seconds, then this token will be auto-refreshed.
715715

716+
717+
By default, OIDC client refreshes the token during the current request, when it detects that it has expired, or nearly expired if the [refresh token time skew](https://quarkus.io/guides/security-openid-connect-client-reference#quarkus-oidc-client_quarkus-oidc-client-refresh-token-time-skew) is configured.
718+
Performance critical applications may want to avoid having to wait for a possible token refresh during the incoming requests and configure an asynchronous token refresh instead, for example:
719+
720+
[source,properties]
721+
----
722+
quarkus.oidc-client.refresh-interval=1m <1>
723+
----
724+
<1> Check every minute if the current access token is expired and must be refreshed.
725+
716726
If the access token needs to be refreshed, but no refresh token is available, then an attempt is made to acquire a new token by using a configured grant, such as `client_credentials`.
717727

718728
Some OpenID Connect Providers will not return a refresh token in a `client_credentials` grant response. For example, starting from Keycloak 12, a refresh token will not be returned by default for `client_credentials`. The providers might also restrict the number of times a refresh token can be used.

0 commit comments

Comments
 (0)