<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      yes, it should be possible. The best is to look at KC examples.
      Here
      <a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/database-service">https://github.com/keycloak/keycloak/tree/master/examples/demo-template/database-service</a>
      is the example of resteasy based jax-rs service secured by Bearer
      tokens. The tokens are sent to it from the frontend application
      (either servlet JEE application - see
      <a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/customer-app">https://github.com/keycloak/keycloak/tree/master/examples/demo-template/customer-app</a>
      or JS application - see
      <a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/customer-app-js">https://github.com/keycloak/keycloak/tree/master/examples/demo-template/customer-app-js</a>
      )<br>
      <br>
      Marek<br>
      <br>
      On 17.4.2014 18:39, Matt Casperson wrote:<br>
    </div>
    <blockquote
      cite="mid:1018253692.4643975.1397752795812.JavaMail.zimbra@redhat.com"
      type="cite">
      <div style="font-family: Arial; font-size: 12pt; color: #000000">
        <div>We have a need for browser based apps to interact with a
          message queue, and the HornetQ REST interface looks like it
          could serve us quite well. Since the HornetQ REST interface
          uses RESTEasy, is it possible to secure it like any other REST
          service via KeyCloak?</div>
        <div><br>
        </div>
        <div><span name="x"></span>
          <div>Regards<br>
          </div>
          <div><br>
          </div>
          <div>Matthew Casperson<br>
            <a moz-do-not-send="true"
data-mce-href="https://www.redhat.com/wapps/training/certification/verify.html?certNumber=111-072-237&amp;isSearch=False&amp;verify=Verify"
href="https://www.redhat.com/wapps/training/certification/verify.html?certNumber=111-072-237&amp;isSearch=False&amp;verify=Verify">RHCE,
              RHCJA, RHCJD # 111-072-237</a><br>
            Engineering Content Services<br>
            Brisbane, Australia</div>
          <span name="x"></span><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>