<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>>If we bring SecurityResult to aerogear-controller we'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'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, "Bruno Oliveira" <<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>> 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'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>"The measure of a man is what he does with power" - 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>> I've pushed a suggestion and trie...</font></p><p><font color="#500050">> On 2 November 2012 08:45, Daniel Bevenius <<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">> > On 2 November 2012 07:58, Bruno Oliveira <<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>)> wrot...</font></p>
> > > <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">> > > <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>> > > <br>> > > <br>> > > <br>
> > > _____________...</font></p>> > > <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">> > > <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>> > <br>> <br>> <br>> ___________________________...</font></p>
> <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">> <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>