<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 Davide,<br>
<br>
I think that this exactly is already addressed by our examples.
You can take a look especially at this example
<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>
which is JAX-RS service service based on resteasy, which requires
Bearer token authentication, so all requests sent to it from
"frontend" applications like "customer-portal" or "product-portal"
need to contain header like: Authorization: Bearer
<your_access_token> .<br>
<br>
You can try existing set of examples to see how it all works
together. See instructions in README files under
<a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template">https://github.com/keycloak/keycloak/tree/master/examples/demo-template</a><br>
<br>
Marek<br>
<br>
On 12.4.2014 10:58, Davide Ungari wrote:<br>
</div>
<blockquote
cite="mid:CA+TL3n0778JNM=tmPaezFKgazwV6HFDMEvs=J58pD9GemKS6AA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi everybody,
<div>I configured keycloak with mongodb,<br>
<div>then I secured frontend on Tomcat making an adapter.</div>
<div><br>
</div>
<div>I need to secure backend, it is an JAX-RS service based
on resteasy and running on undertow.</div>
<div><br>
</div>
<div>I do not use EJB so I need some help to figure out the
best way to implement security with keycloak in my scenario.</div>
<div><br>
</div>
<div>Suggestions?</div>
<div><br clear="all">
<div>
<div>--</div>
Davide</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>