<div dir="ltr">Hello,<div><br></div><div>another option you can try is to run the embedded KeycloakServer within an IDE or via Maven - for this to work</div><div>you need a checked out version from Keycloak, which you need anyway for any serious Keycloak integration work...</div><div><br></div><div>For the former, just run the `org.keycloak.testsuite.KeycloakServer`-main class, for the later you can</div><div>run `mvn exec:java -Pkeycloak-server` from within the `keycloak/testsuite/integration` folder.</div><div><br></div><div>`org.keycloak.testsuite.KeycloakServer` provides a few options for configuring the embedded keycloak.</div><div><br><div>Cheers,</div><div>Thomas</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-15 16:33 GMT+01:00 Martijn Claus <span dir="ltr">&lt;<a href="mailto:m.claus@smile.nl" target="_blank">m.claus@smile.nl</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="NL" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Hi Thomas (and others),<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Thanks for your time. What you are describing is my plan B (a shared Keycloak instance running to which all developers
 can connect), but as you expected I prefer to not have to be online nor to run an extra application (Keycloak) every time. 99% of the time a default user will suffice and will make the development process a lot more lightweight. Other suggestions are very
 welcome.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Kind regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Martijn<u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Thomas Raehalme [mailto:<a href="mailto:thomas.raehalme@aitiofinland.com" target="_blank">thomas.raehalme@aitiofinland.com</a>]
<br>
<b>Sent:</b> dinsdag 15 maart 2016 16:19<br>
<b>To:</b> Martijn Claus &lt;<a href="mailto:m.claus@smile.nl" target="_blank">m.claus@smile.nl</a>&gt;<br>
<b>Cc:</b> keycloak-user &lt;<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
<b>Subject:</b> Re: [keycloak-user] Not using keycloak in development<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US"><br>
</span>On Mar 15, 2016 16:57, &quot;Martijn Claus&quot; &lt;<a href="mailto:m.claus@smile.nl" target="_blank">m.claus@smile.nl</a>&gt; wrote:<br>
&gt; I’ve been setting up Keycloak and liking it thus far. We are using it in an angular / Spring / REST context. For development there are cases where I don’t want to run the Keycloak application (war) but only my own application. I assume this is a valid usecase.
 But if I turn the Keycloak off, the angular frontend will redirect me to an offline url and the application fails. I will not have a token and the backend will rightfully throw back some AccessDeniedExceptions. Is there a way to use some kind of (magic/permanent/development)
 token that will be accepted by the backend  and the Keycloak application will never have to be contacted? Or is there some other feature that my backend spring keycloak adapter will accept anything and work with a default user?<br>
&gt;<u></u><u></u></p>
<p>I&#39;m not sure what you suspect is possible, but here&#39;s what we do: <u></u><u></u></p>
<p>In development mode we use Keycloak configuration which connects to a shared Keycloak instance where we have configured a specific realm and client allowing the use of localhost as redirect URL. This works for every developer and we don&#39;t need to &quot;turn off&quot;
 authentication.<u></u><u></u></p>
<p>The downside is that you need to be online. If this is a problem you could always use Vagrant or Docker to run Keycloak on localhost. But I guess you were trying to avoid this.<u></u><u></u></p>
<p>In production we naturally use another Keycloak configuration which we can enable through Spring profiles or Tomcat context.xml or whatever method best fits the situation.<u></u><u></u></p>
<p>Hope this helps!<u></u><u></u></p>
<p>Best regards,<br>
Thomas<u></u><u></u></p>
</div></div></div>
</div>

<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>