title: Quarkus provide redirect url if not authenticated
body: <p>I am building out a web ui, and decided to get auth through jwt in a cookie.</p>
  <p>I have gotten that bare minimum to work, but when I keep a page behind a role, the page (predictably) doesn't load. Rather than not loading, I would prefer to be able to tell the endpoint to redirect to the actual login page. Is this possible? Ideally I would be able to supply an annotation on the endpoint to say &quot;go here if not auth'ed&quot;.</p>
  <p>Code where I am setting up the web ui endpoints:</p>
  <pre><code>@Traced
  @Slf4j
  @Path(&quot;/&quot;)
  @Tags({@Tag(name = &quot;UI&quot;)})
  @RequestScoped
  @Produces(MediaType.TEXT_HTML)
  public class Index extends UiProvider {
  
      @Inject
      @Location(&quot;webui/pages/index&quot;)
      Template index;
      @Inject
      @Location(&quot;webui/pages/overview&quot;)
      Template overview;
  
      @Inject
      UserService userService;
  
      @Inject
      JsonWebToken jwt;
  
      @GET
      @PermitAll
      @Produces(MediaType.TEXT_HTML)
      public TemplateInstance index(
              @Context SecurityContext securityContext
      ) {
          logRequestContext(jwt, securityContext);
          return index.instance();
      }
  
      @GET
      @Path(&quot;overview&quot;)
      @RolesAllowed(&quot;user&quot;)
      @Produces(MediaType.TEXT_HTML)
      public TemplateInstance overview(
              @Context SecurityContext securityContext
      ) {
          logRequestContext(jwt, securityContext);
          return overview.instance();
      }
  }
  </code></pre>