[security-dev] A simple Deltaspike Authorization quickstart

Jason Porter lightguard.jp at gmail.com
Fri Aug 3 17:41:39 EDT 2012


For any sort of application that is non trivial and non-crud, you'll want
CDI to be able to wire things up, possibly some domain specific extensions,
etc. maybe there's some special things on data insertion that needs to
happen, or something along with permission for data retrieval, or perhaps
it's an actual function you call and a way into your application. There's
certainly a use for CDI with JAX-RS.

On Fri, Aug 3, 2012 at 2:20 PM, Anil Saldhana <Anil.Saldhana at redhat.com>wrote:

> Pete,
>    I like your quickstart.
>
> A question I have is if a developer is writing a REST based app, does he
> need JAX-RS and CDI or just JAX-RS with JPA?  I am not clear on the need
> for CDI here.
>
> I hope you can elaborate on this question.
>
> Regards,
> Anil
>
> On 08/03/2012 01:36 PM, Pete Muir wrote:
> > Hi all
> >
> > I just did a first cut at a simple quickstart showing how you can use:
> >
> > * DeltaSpike Authorization
> > * CDI
> > * JAX-RS
> > * DeltaSpike exception handling
> >
> > to restrict access to a REST resources, and do something with the
> AccessDeniedException other than just rethrow it.
> >
> > Please take a look:
> >
> >
> https://github.com/pmuir/quickstart/tree/deltaspike-authorization/deltaspike-authz
> >
> > Known issues:
> >
> > * I'm not handling bad responses in the UI at all. Please tell me what
> to do someone :-)
> > * The README isn't done
> >
> >
> _______________________________________________
> security-dev mailing list
> security-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/security-dev
>



-- 
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp

Software Engineer
Open Source Advocate
Author of Seam Catch - Next Generation Java Exception Handling

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/security-dev/attachments/20120803/972919d3/attachment.html 


More information about the security-dev mailing list