You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "pablo.m.gore" <pa...@gmail.com> on 2012/12/29 17:40:45 UTC

cxfrs(authentication and authorization)

Hi
In my company we are working in a new prototype , the idea is to have
restful services , and we wish to work with camel here.
We create with no problem the different services , but now , I have a new
requirement ,  the rest services should be insured(authentication and
authorization)
How can I integrated jaxrs with spring-security /shiro?
Someone did it  before ?
Thanks and regards.
Pablo Gore





--
View this message in context: http://camel.465427.n5.nabble.com/cxfrs-authentication-and-authorization-tp5724718.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: cxfrs(authentication and authorization)

Posted by Jason Chaffee <jc...@shopzilla.com>.
Fixing the link.  :)

http://sberyozkin.blogspot.com/2010/12/authentication-and-authorization-cxf
.html





On 1/1/13 5:58 PM, "Jason Chaffee" <jc...@shopzilla.com> wrote:

>http://sberyozkin.blogspot.com/2010/12/authentication-and-authorization-cx
>f
>.html


Re: cxfrs(authentication and authorization)

Posted by Jason Chaffee <jc...@shopzilla.com>.
Sergey has a great blog on the subject from a CXF perspective.

http://sberyozkin.blogspot.com/2010/12/authentication-and-authorization-cxf
.html

Jason

On 1/1/13 10:05 AM, "Sergey Beryozkin" <sb...@gmail.com> wrote:

>Hi
>Using CXF JAASLoginInterceptor alongside SimpleAuthorizingInterceptor
>can work quite well too
>
>thanks, Sergey
>
>
>On 31/12/12 03:47, Jason Chaffee wrote:
>>
>> I think there are a number ways you could to it.
>>
>> 1) If you wanted to secure your routing and/or do it at the camel route
>>level then you could use camel-shiro.  See
>>http://camel.apache.org/shiro-security.html
>>
>> Or camel-spring-security.  See
>>http://camel.apache.org/spring-security.html
>>
>>
>> 2) You could use a JAXRS filter.  See
>>http://cxf.apache.org/docs/jax-rs-filters.html
>>
>> 3) You could use a CXF interceptor, but this more tightly couples you
>>with CXF itself.
>>
>> There are other possibilities as well, but (1) or (2) would be my first
>>choices and I would decide on them based on my particular user scenario
>>/ use-case.
>>
>> Jason
>>
>>
>> On Dec 29, 2012, at 8:40 AM, pablo.m.gore<pa...@gmail.com>
>>wrote:
>>
>>> Hi
>>> In my company we are working in a new prototype , the idea is to have
>>> restful services , and we wish to work with camel here.
>>> We create with no problem the different services , but now , I have a
>>>new
>>> requirement ,  the rest services should be insured(authentication and
>>> authorization)
>>> How can I integrated jaxrs with spring-security /shiro?
>>> Someone did it  before ?
>>> Thanks and regards.
>>> Pablo Gore
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>>http://camel.465427.n5.nabble.com/cxfrs-authentication-and-authorization
>>>-tp5724718.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>
>


Re: cxfrs(authentication and authorization)

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
Using CXF JAASLoginInterceptor alongside SimpleAuthorizingInterceptor 
can work quite well too

thanks, Sergey


On 31/12/12 03:47, Jason Chaffee wrote:
>
> I think there are a number ways you could to it.
>
> 1) If you wanted to secure your routing and/or do it at the camel route level then you could use camel-shiro.  See http://camel.apache.org/shiro-security.html
>
> Or camel-spring-security.  See http://camel.apache.org/spring-security.html
>
>
> 2) You could use a JAXRS filter.  See http://cxf.apache.org/docs/jax-rs-filters.html
>
> 3) You could use a CXF interceptor, but this more tightly couples you with CXF itself.
>
> There are other possibilities as well, but (1) or (2) would be my first choices and I would decide on them based on my particular user scenario / use-case.
>
> Jason
>
>
> On Dec 29, 2012, at 8:40 AM, pablo.m.gore<pa...@gmail.com>  wrote:
>
>> Hi
>> In my company we are working in a new prototype , the idea is to have
>> restful services , and we wish to work with camel here.
>> We create with no problem the different services , but now , I have a new
>> requirement ,  the rest services should be insured(authentication and
>> authorization)
>> How can I integrated jaxrs with spring-security /shiro?
>> Someone did it  before ?
>> Thanks and regards.
>> Pablo Gore
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/cxfrs-authentication-and-authorization-tp5724718.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>

Re: cxfrs(authentication and authorization)

Posted by Jason Chaffee <jc...@shopzilla.com>.
I think there are a number ways you could to it.  

1) If you wanted to secure your routing and/or do it at the camel route level then you could use camel-shiro.  See http://camel.apache.org/shiro-security.html

Or camel-spring-security.  See http://camel.apache.org/spring-security.html


2) You could use a JAXRS filter.  See http://cxf.apache.org/docs/jax-rs-filters.html

3) You could use a CXF interceptor, but this more tightly couples you with CXF itself.  

There are other possibilities as well, but (1) or (2) would be my first choices and I would decide on them based on my particular user scenario / use-case.

Jason


On Dec 29, 2012, at 8:40 AM, pablo.m.gore <pa...@gmail.com> wrote:

> Hi
> In my company we are working in a new prototype , the idea is to have
> restful services , and we wish to work with camel here.
> We create with no problem the different services , but now , I have a new
> requirement ,  the rest services should be insured(authentication and
> authorization)
> How can I integrated jaxrs with spring-security /shiro?
> Someone did it  before ?
> Thanks and regards.
> Pablo Gore
> 
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/cxfrs-authentication-and-authorization-tp5724718.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>