Skip to content

Commit

Permalink
Merge pull request #37025 from michalvavrik/feature/document-resteasy…
Browse files Browse the repository at this point in the history
…-reactive-logging-interceptors-auth-behavior

Document how to log authentication failures for RESTEasy Reactive users migrating from the RESTEasy Classic
  • Loading branch information
geoand authored Nov 11, 2023
2 parents de23b9d + bc14dcf commit 2f2ce09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/main/asciidoc/resteasy-reactive-migration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ public class ReactiveResource {
The same is true for your third-party libraries.
If they happen to depend on servlets you need to find a migration path for them.

=== Log authentication and authorization failures

The RESTEasy Reactive endpoint security checks are performed before xref:cdi.adoc#interceptors[CDI interceptors] are invoked.
The safest approach to log Quarkus Security authentication exceptions is to ensure that proactive authentication is enabled and to use Vert.x HTTP route failure handlers.
For more information, see the xref:security-proactive-authentication.adoc#customize-auth-exception-responses[Customize authentication exception responses] section of the Proactive authentication guide.

== Client

The Reactive REST Client (`quarkus-rest-client-reactive` and its dependencies) replace the legacy `quarkus-rest-client` but leverage Quarkus' build time processing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public class HelloService {
}
----

[[customize-auth-exception-responses]]
== Customize authentication exception responses

You can use Jakarta REST `ExceptionMapper` to capture Quarkus Security authentication exceptions such as `io.quarkus.security.AuthenticationFailedException`, for example:
Expand Down

0 comments on commit 2f2ce09

Please sign in to comment.