Skip to content

How to enable (proactive) authentication for custom programmatic reactive routes #46319

Discussion options

You must be logged in to vote

I believe we need more context because I don't understand what you try to do and how. For example:

It looks like if I add this router, HTTP authentication from Quarkus security is not triggered.

We have loads of tests in Vert.x HTTP deployment module that add a handle and authentication happens.

However I can't seem to find a way to register a handler which enables the authentication.

if it is a route on HTTP router, the HTTP authenticator is present and by default proactive authentication happens.

The custom routes needs access to the principal created by Quarkus Security to create a cookie based on the JWT Token).

Use io.quarkus.vertx.http.runtime.security.QuarkusHttpUser#getSecur…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@jfbenckhuijsen
Comment options

Comment options

You must be logged in to vote
12 replies
@michalvavrik
Comment options

@jfbenckhuijsen
Comment options

@michalvavrik
Comment options

@michalvavrik
Comment options

@jfbenckhuijsen
Comment options

Answer selected by jfbenckhuijsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants