Skip to content

Commit d401401

Browse files
author
quarkusbot
committed
Sync web site with Quarkus documentation
1 parent 6ae80e6 commit d401401

File tree

4 files changed

+160
-3
lines changed

4 files changed

+160
-3
lines changed

_generated-doc/latest/infra/quarkus-maven-plugin-goals.adoc

+99
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ The properties of the plugin.
289289
|`Map`
290290
|
291291

292+
a| [[quarkus-maven-plugin-goal-build-reloadPoms]] reloadPoms
293+
294+
[.description]
295+
--
296+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
297+
--
298+
|`Set`
299+
|
300+
292301
a| [[quarkus-maven-plugin-goal-build-repoSession]] repoSession
293302

294303
[.description]
@@ -1133,6 +1142,15 @@ The properties of the plugin.
11331142
|`Map`
11341143
|
11351144

1145+
a| [[quarkus-maven-plugin-goal-deploy-reloadPoms]] reloadPoms
1146+
1147+
[.description]
1148+
--
1149+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
1150+
--
1151+
|`Set`
1152+
|
1153+
11361154
a| [[quarkus-maven-plugin-goal-deploy-repoSession]] repoSession
11371155

11381156
[.description]
@@ -1560,6 +1578,15 @@ The properties of the plugin.
15601578
|`Map`
15611579
|
15621580

1581+
a| [[quarkus-maven-plugin-goal-generate-code-reloadPoms]] reloadPoms
1582+
1583+
[.description]
1584+
--
1585+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
1586+
--
1587+
|`Set`
1588+
|
1589+
15631590
a| [[quarkus-maven-plugin-goal-generate-code-repoSession]] repoSession
15641591

15651592
[.description]
@@ -1708,6 +1735,15 @@ The properties of the plugin.
17081735
|`Map`
17091736
|
17101737

1738+
a| [[quarkus-maven-plugin-goal-generate-code-tests-reloadPoms]] reloadPoms
1739+
1740+
[.description]
1741+
--
1742+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
1743+
--
1744+
|`Set`
1745+
|
1746+
17111747
a| [[quarkus-maven-plugin-goal-generate-code-tests-repoSession]] repoSession
17121748

17131749
[.description]
@@ -1995,6 +2031,15 @@ The properties of the plugin.
19952031
|`Map`
19962032
|
19972033

2034+
a| [[quarkus-maven-plugin-goal-image-build-reloadPoms]] reloadPoms
2035+
2036+
[.description]
2037+
--
2038+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
2039+
--
2040+
|`Set`
2041+
|
2042+
19982043
a| [[quarkus-maven-plugin-goal-image-build-repoSession]] repoSession
19992044

20002045
[.description]
@@ -2202,6 +2247,15 @@ The properties of the plugin.
22022247
|`Map`
22032248
|
22042249

2250+
a| [[quarkus-maven-plugin-goal-image-push-reloadPoms]] reloadPoms
2251+
2252+
[.description]
2253+
--
2254+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
2255+
--
2256+
|`Set`
2257+
|
2258+
22052259
a| [[quarkus-maven-plugin-goal-image-push-repoSession]] repoSession
22062260

22072261
[.description]
@@ -2597,6 +2651,15 @@ The properties of the plugin.
25972651
|`Map`
25982652
|
25992653

2654+
a| [[quarkus-maven-plugin-goal-native-image-agent-reloadPoms]] reloadPoms
2655+
2656+
[.description]
2657+
--
2658+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
2659+
--
2660+
|`Set`
2661+
|
2662+
26002663
a| [[quarkus-maven-plugin-goal-native-image-agent-repoSession]] repoSession
26012664

26022665
[.description]
@@ -2736,6 +2799,15 @@ The properties of the plugin.
27362799
|`Map`
27372800
|
27382801

2802+
a| [[quarkus-maven-plugin-goal-prepare-reloadPoms]] reloadPoms
2803+
2804+
[.description]
2805+
--
2806+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
2807+
--
2808+
|`Set`
2809+
|
2810+
27392811
a| [[quarkus-maven-plugin-goal-prepare-repoSession]] repoSession
27402812

27412813
[.description]
@@ -2884,6 +2956,15 @@ The properties of the plugin.
28842956
|`Map`
28852957
|
28862958

2959+
a| [[quarkus-maven-plugin-goal-prepare-tests-reloadPoms]] reloadPoms
2960+
2961+
[.description]
2962+
--
2963+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
2964+
--
2965+
|`Set`
2966+
|
2967+
28872968
a| [[quarkus-maven-plugin-goal-prepare-tests-repoSession]] repoSession
28882969

28892970
[.description]
@@ -3411,6 +3492,15 @@ The properties of the plugin.
34113492
|`Map`
34123493
|
34133494

3495+
a| [[quarkus-maven-plugin-goal-run-reloadPoms]] reloadPoms
3496+
3497+
[.description]
3498+
--
3499+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
3500+
--
3501+
|`Set`
3502+
|
3503+
34143504
a| [[quarkus-maven-plugin-goal-run-repoSession]] repoSession
34153505

34163506
[.description]
@@ -3859,6 +3949,15 @@ a| [[quarkus-maven-plugin-goal-track-config-changes-quarkus.recorded-build-confi
38593949
|`String`
38603950
|
38613951

3952+
a| [[quarkus-maven-plugin-goal-track-config-changes-reloadPoms]] reloadPoms
3953+
3954+
[.description]
3955+
--
3956+
POM files from the workspace that should be reloaded from the disk instead of taken from the Maven reactor. This parameter is not supposed to be configured by a user.
3957+
--
3958+
|`Set`
3959+
|
3960+
38623961
a| [[quarkus-maven-plugin-goal-track-config-changes-repoSession]] repoSession
38633962

38643963
[.description]

_guides/_attributes.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Common attributes.
22
// --> No blank lines (it ends the document header)
33
:project-name: Quarkus
4-
:quarkus-version: 3.21.3
4+
:quarkus-version: 3.21.4
55
:quarkus-platform-groupid: io.quarkus.platform
66
// .
77
:maven-version: 3.9.9

_guides/security-oidc-code-flow-authentication.adoc

+58
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,64 @@ public class ServiceResource {
16461646
<2> Revoke the authorization code flow access token.
16471647
<3> Revoke the authorization code flow refresh token.
16481648

1649+
You can also revoke tokens in the security event listeners.
1650+
1651+
For example, when your application supports a standard <<user-initiated-logout>>, you can catch a logout event and revoke tokens:
1652+
1653+
[source,java]
1654+
----
1655+
import java.util.concurrent.CompletableFuture;
1656+
import java.util.concurrent.CompletionStage;
1657+
1658+
import io.quarkus.oidc.AccessTokenCredential;
1659+
import io.quarkus.oidc.OidcProviderClient;
1660+
import io.quarkus.oidc.RefreshToken;
1661+
import io.quarkus.oidc.SecurityEvent;
1662+
import io.quarkus.security.identity.SecurityIdentity;
1663+
import io.smallrye.mutiny.Uni;
1664+
import jakarta.enterprise.context.ApplicationScoped;
1665+
import jakarta.enterprise.event.ObservesAsync;
1666+
1667+
@ApplicationScoped
1668+
public class SecurityEventListener {
1669+
1670+
public CompletionStage<Void> processSecurityEvent(@ObservesAsync SecurityEvent event) {
1671+
if (SecurityEvent.Type.OIDC_LOGOUT_RP_INITIATED == event.getEventType()) { <1>
1672+
return revokeTokens(event.getSecurityIdentity()).subscribeAsCompletionStage();
1673+
}
1674+
return CompletableFuture.completedFuture(null);
1675+
}
1676+
private Uni<Void> revokeTokens(SecurityIdentity securityIdentity) {
1677+
return Uni.join().all(
1678+
revokeAccessToken(securityIdentity),
1679+
revokeRefreshToken(securityIdentity)
1680+
).andCollectFailures()
1681+
.replaceWithVoid()
1682+
.onFailure().recoverWithUni(t -> logFailure(t));
1683+
}
1684+
1685+
private static Uni<Boolean> revokeAccessToken(SecurityIdentity securityIdentity) { <2>
1686+
OidcProviderClient oidcProvider = securityIdentity.getAttribute(OidcProviderClient.class.getName());
1687+
String accessToken = securityIdentity.getCredential(AccessTokenCredential.class).getToken();
1688+
return oidcProvider.revokeAccessToken(accessToken);
1689+
}
1690+
1691+
private static Uni<Boolean> revokeRefreshToken(SecurityIdentity securityIdentity) { <3>
1692+
OidcProviderClient oidcProvider = securityIdentity.getAttribute(OidcProviderClient.class.getName());
1693+
String refreshToken = securityIdentity.getCredential(RefreshToken.class).getToken();
1694+
return oidcProvider.revokeRefreshToken(refreshToken);
1695+
}
1696+
1697+
private static Uni<Void> logFailure(Throwable t) {
1698+
// Log failure as required
1699+
return Uni.createFrom().voidItem();
1700+
}
1701+
}
1702+
----
1703+
<1> Revoke tokens if an RP-initiated logout event is observed.
1704+
<2> Revoke the authorization code flow access token.
1705+
<3> Revoke the authorization code flow refresh token.
1706+
16491707
=== Propagating tokens to downstream services
16501708

16511709
For information about Authorization Code Flow access token propagation to downstream services, see the xref:security-openid-connect-client-reference.adoc#token-propagation-rest[Token Propagation] section.

_guides/smallrye-fault-tolerance.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ implementation("io.quarkus:quarkus-smallrye-fault-tolerance")
576576
== Additional resources
577577

578578
SmallRye Fault Tolerance has more features than shown here.
579-
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.0/index.html[SmallRye Fault Tolerance documentation] to learn about them.
579+
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.1/index.html[SmallRye Fault Tolerance documentation] to learn about them.
580580

581581
In Quarkus, you can use the SmallRye Fault Tolerance optional features out of the box.
582582

@@ -608,7 +608,7 @@ quarkus.fault-tolerance.mp-compatibility=true
608608
----
609609
====
610610

611-
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.0/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
611+
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.1/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
612612
You can use the `Guard`, `TypedGuard` and `@ApplyGuard` APIs out of the box.
613613

614614
Support for Kotlin is present (assuming you use the Quarkus extension for Kotlin), so you can guard your `suspend` functions with fault tolerance annotations.

0 commit comments

Comments
 (0)