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 ;)

>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.
Good point! 

Thanks for your gist and I'll use that, and test it out with the controller and demo. 


Den 2 nov 2012 18.04, "Bruno Oliveira" <bruno@abstractj.org> skrev:

Hi my friend! First at all, great gist! And answering your question:

* 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?

IMO it should be forward to a view.

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.

My suggestion is a little bit simple https://gist.github.com/c635dc2e5e82ba666ca3, the provider chooses how to implement that and uses http status responses by convention.


Wdyt? Makes sense?

--
"The measure of a man is what he does with power" - Plato
-
@abstractj
-
Vo...

On Friday, November 2, 2012 at 12:54 PM, Daniel Bevenius wrote:

> I've pushed a suggestion and trie...

> On 2 November 2012 08:45, Daniel Bevenius <daniel.bevenius@gmail.com (mailto:daniel.bevenius@gmail...

> > On 2 November 2012 07:58, Bruno Oliveira <bruno@abstractj.org (mailto:bruno@abstractj.org)> wrot...

> > > aerogear-dev@lists.jboss.org (mailto:aerogear-dev@lists.jboss.org)

> > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> > >
> > >
> > >
> > > _____________...

> > > aerogear-dev@lists.jboss.org (mailto:aerogear-dev@lists.jboss.org)

> > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
>
>
> ___________________________...

> aerogear-dev@lists.jboss.org (mailto:aerogear-dev@lists.jboss.org)

> https://lists.jboss.org/mailman/listinfo/aerogear-dev


__________________________________________...