Re: restful web secruity for TOMEE

2015-10-13 Thread hwaastad
, then adding jwt to the mix u can let the token even carry all groups and handle auth in a containerrequestfilter... Have fun :-) -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676485.html Sent from the TomEE Users mailing list

Re: restful web secruity for TOMEE

2015-10-13 Thread Romain Manni-Bucau
Have fun :-) > > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676485.html > Sent from the TomEE Users mailing list archive at Nabble.com. >

Re: restful web secruity for TOMEE

2015-10-13 Thread mark.cavender
files beans.xml, open-ebj-jars.xml? Thanks in advance, Mark -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676490.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: restful web secruity for TOMEE

2015-10-13 Thread Romain Manni-Bucau
s.xml, open-ebj-jars.xml? Thanks in advance, > > > Mark > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676490.html > Sent from the TomEE Users mailing list archive at Nabble.com. >

Re: restful web secruity for TOMEE

2015-10-12 Thread Arthur Portas
is as > > > > follows: > > > > > > > > > > > > 1) I have declared the RESTful service as: @Stateless > > > > > > @DeclareRoles({"viewer","poster"}) and declared a method as > > > > > > @

Re: restful web secruity for TOMEE

2015-10-12 Thread Romain Manni-Bucau
;viewer","poster"}) and declared a method as > > > > > @RolesAllowed({"poster"}) > > > > > > > > > > 2) in the web.xml I restricted the URL of the restful call to > users > > > with > > > > > roles of view

Re: restful web secruity for TOMEE

2015-10-12 Thread Arthur Portas
ted the URL of the restful call to users > > with > > > > roles of viewer and poster, although I have also tried to do it as an > > > > asterick "*" as well. > > > > > > > > 3) In the RESTful method, I can look at the request in the de

Re: restful web secruity for TOMEE

2015-10-12 Thread Arthur Portas
though it is restricted to the poster role. Do you see any flaws in my > > logic? Thanks in advance, > > > > Mark > > > > > > > > -- > > View this message in context: > > > http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676462.html > > Sent from the TomEE Users mailing list archive at Nabble.com. > > >

Re: restful web secruity for TOMEE

2015-10-12 Thread Romain Manni-Bucau
look at the request in the debugger > and > > > see > > > that I only have the viewer role, but it still lets me in the method > even > > > though it is restricted to the poster role. Do you see any flaws in my > > > logic? Thanks in advance, > > > > > > Mark > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://tomee-openejb.979440.n4.nabble.com/restful-web-secruity-for-TOMEE-tp4676451p4676462.html > > > Sent from the TomEE Users mailing list archive at Nabble.com. > > > > > >