[aerogear-dev] [aerogear-controller] Handling SecurityProvider Exceptions/Events
Daniel Bevenius
daniel.bevenius at gmail.com
Sat Nov 3 04:30:36 EDT 2012
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 at 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 at gmail.com(mailto:
daniel.bevenius at gmail...
> > On 2 November 2012 07:58, Bruno Oliveira <bruno at abstractj.org (mailto:
bruno at abstractj.org)> wrot...
> > > aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> > >
> > >
> > >
> > > _____________...
> > > aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> > > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
>
>
> ___________________________...
> aerogear-dev at lists.jboss.org (mailto:aerogear-dev at lists.jboss.org)
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
__________________________________________...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20121103/7879f525/attachment.html
More information about the aerogear-dev
mailing list