<p></p><blockquote type="cite">Ah, that makes it simpler, just forwarding to a view. Not sure where I got the idea of returning a response...maybe I did suffer some brain damage after all ;)<br><br>&gt;If we bring SecurityResult to aerogear-controller we&#39;re bringing concepts which do not belong to aerogear-controller, concepts like unauthorized, forbidden and etc, that is my concern.<br>
Good point! <br><br>Thanks for your gist and I&#39;ll use that, and test it out with the controller and demo. <br><br></blockquote><blockquote type="cite"><br>Den 2 nov 2012 18.04, &quot;Bruno Oliveira&quot; &lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt; skrev:<br>
<br>Hi my friend! First at all, great gist! And answering your question:<br>

<br>
* Should it really be AeroGear-Controller that determines if a response should be returned to the caller, or if it should forward to a view?<br>
<br>
IMO it should be forward to a view.<br>
<br>
Few comments about that gist. If we bring SecurityResult to aerogear-controller we&#39;re bringing concepts which do not belong to aerogear-controller, concepts like unauthorized, forbidden and etc, that is my concern.<br>


<br>
My suggestion is a little bit simple <a href="https://gist.github.com/c635dc2e5e82ba666ca3" target="_blank">https://gist.github.com/c635dc2e5e82ba666ca3</a>, the provider chooses how to implement that and uses http status responses by convention.<br>


<p><font color="#500050"><br>Wdyt? Makes sense?<br><br>-- <br>&quot;The measure of a man is what he does with power&quot; - Plato<br>-<br>@abstractj<br>-<br>Vo...</font></p><p><font color="#500050">On Friday, November 2, 2012 at 12:54 PM, Daniel Bevenius wrote:<br>

<br>&gt; I&#39;ve pushed a suggestion and trie...</font></p><p><font color="#500050">&gt; On 2 November 2012 08:45, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com" target="_blank">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail." target="_blank">daniel.bevenius@gmail.</a>..</font></p>

<p><font color="#500050">&gt; &gt; On 2 November 2012 07:58, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a> (mailto:<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>)&gt; wrot...</font></p>

&gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>)<br>
<p><font color="#500050">&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>

&gt; &gt; &gt; _____________...</font></p>&gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>)<br>


<p><font color="#500050">&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>&gt; &gt; <br>&gt; <br>&gt; <br>&gt; ___________________________...</font></p>

&gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>)<br>
<p><font color="#500050">&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br><br><br>__________________________________________...</font></p>
</blockquote>
<p></p>