RolesAllowed annotation that worked with Vaadin v8 CDI add-on seems not to work with Vaadin v23

I used the official Vaadin v23 Flow CDI starter and defined the following view:

@Route("me")
@RolesAllowed(Constants.USERS_ROLE)
@Tag("my-view")
@JsModule("./src/views/my-view.ts")
public class MyView extends LitTemplate {
}

Expected: unauthenticated users are not allowed to access the view.
Actual: the view is publicly accessible.

In Vaadin 8 @RolesAllowed() worked as intended with a @CDIView().

What am I missing?

RolesAllowed annotation that worked with Vaadin v8 CDI add-on eems not to work with Vaadin v23

RolesAllowed annotation that worked with Vaadin v8 CDI add-on seems not to work with Vaadin v23

I filed and issue in the CDI add-on repository regarding this: https://github.com/vaadin/cdi/issues/418, let’s continue the discussion there.

I answered on the GitHub ticket

Thank you very much!