You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Cristiano Costantini <cr...@gmail.com> on 2013/12/23 00:47:50 UTC
Feature for spring-security
Hi All,
I wonder why a feature for spring-security does not exists in ServiceMix or
Karaf.
I just finished playing around with it on ServiceMix 4.5.3, and I got it
working, even if fore a basic example.
In my test I used the following feature for installing spring security
dependencies
<feature name="springsec-test" version="${project.version}">
<feature>spring-dm-web</feature>
<bundle
start-level="50">mvn:org.springframework.security/spring-security-core/${spring-security.version}</bundle>
<bundle
start-level="50">mvn:org.springframework.security/spring-security-config/${spring-security.version}</bundle>
<bundle
start-level="50">mvn:org.springframework.security/spring-security-web/${spring-security.version}</bundle>
<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>
</feature>
(with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound to
Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
The fact that it does not exists scary me as I see it really
straightforward to have a feature like "spring-security" that would allow
to rewrite the code above as:
<feature name="springsec-test" version="${project.version}">
<feature>spring-dm-web</feature>
<feature>spring-security</feature>
<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>
</feature>
why nobody has yet added such feature to karaf/servicemix?
Thank you
(and merry holidays to everybody!)
Cristiano
Re: Feature for spring-security
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks Cristiano,
I gonna review it.
Regards
JB
On 12/30/2013 04:46 PM, Cristiano Costantini wrote:
> Hi,
> it is not yet of a good quality to be published as an example, but here is
> the code I've worked on to test spring security on servicemix:
> https://github.com/cristcost/springsec
>
> I'm not going to clean the project in short time, so I've decided to
> publish to github anyway, but if anyone of you is interested to it and need
> help I will be glad to support using it.
>
> Please note the Git tags, I've worked adding Spring Security support to the
> example step by step, and I've tagged every time I have achieved a
> significant milestone.
>
> Regards,
> Cristiano
>
>
>
>
> 2013/12/23 Jean-Baptiste Onofré <jb...@nanthrax.net>
>
>> It sounds good. Thanks.
>>
>> Regards
>> JB
>>
>>
>> On 12/23/2013 08:04 AM, Cristiano Costantini wrote:
>>
>>> Thank you!
>>>
>>> I will provide testing support for that and publish open source examples
>>> that shows how to use it.
>>>
>>> Regards,
>>> Cristiano
>>>
>>>
>>> Il giorno lunedì 23 dicembre 2013, Jean-Baptiste Onofré ha scritto:
>>>
>>> Hi Cristiano,
>>>>
>>>> It has not been added because nobody needs it up to now ;)
>>>>
>>>> However, it's a good addition, agree.
>>>>
>>>> I'm adding it in the Karaf Spring features (see KARAF-2649).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
>>>>
>>>> Hi All,
>>>>> I wonder why a feature for spring-security does not exists in ServiceMix
>>>>> or
>>>>> Karaf.
>>>>>
>>>>> I just finished playing around with it on ServiceMix 4.5.3, and I got it
>>>>> working, even if fore a basic example.
>>>>>
>>>>> In my test I used the following feature for installing spring security
>>>>> dependencies
>>>>> <feature name="springsec-test" version="${project.version}">
>>>>> <feature>spring-dm-web</feature>
>>>>>
>>>>> <bundle
>>>>> start-level="50">mvn:org.springframework.security/
>>>>> spring-security-core/${spring-security.version}</bundle>
>>>>> <bundle
>>>>> start-level="50">mvn:org.springframework.security/
>>>>> spring-security-config/${spring-security.version}</bundle>
>>>>>
>>>>> <bundle
>>>>> start-level="50">mvn:org.springframework.security/
>>>>> spring-security-web/${spring-security.version}</bundle>
>>>>>
>>>>>
>>>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>>>> project.version}/war</bundle>
>>>>>
>>>>> </feature>
>>>>>
>>>>> (with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound
>>>>> to
>>>>> Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
>>>>>
>>>>>
>>>>> The fact that it does not exists scary me as I see it really
>>>>> straightforward to have a feature like "spring-security" that would
>>>>> allow
>>>>> to rewrite the code above as:
>>>>>
>>>>> <feature name="springsec-test" version="${project.version}">
>>>>> <feature>spring-dm-web</feature>
>>>>> <feature>spring-security</feature>
>>>>>
>>>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>>>> project.version}/war</bundle>
>>>>>
>>>>> </feature>
>>>>>
>>>>> why nobody has yet added such feature to karaf/servicemix?
>>>>>
>>>>>
>>>>> Thank you
>>>>> (and merry holidays to everybody!)
>>>>>
>>>>> Cristiano
>>>>>
>>>>>
>>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Feature for spring-security
Posted by Cristiano Costantini <cr...@gmail.com>.
Hi,
it is not yet of a good quality to be published as an example, but here is
the code I've worked on to test spring security on servicemix:
https://github.com/cristcost/springsec
I'm not going to clean the project in short time, so I've decided to
publish to github anyway, but if anyone of you is interested to it and need
help I will be glad to support using it.
Please note the Git tags, I've worked adding Spring Security support to the
example step by step, and I've tagged every time I have achieved a
significant milestone.
Regards,
Cristiano
2013/12/23 Jean-Baptiste Onofré <jb...@nanthrax.net>
> It sounds good. Thanks.
>
> Regards
> JB
>
>
> On 12/23/2013 08:04 AM, Cristiano Costantini wrote:
>
>> Thank you!
>>
>> I will provide testing support for that and publish open source examples
>> that shows how to use it.
>>
>> Regards,
>> Cristiano
>>
>>
>> Il giorno lunedì 23 dicembre 2013, Jean-Baptiste Onofré ha scritto:
>>
>> Hi Cristiano,
>>>
>>> It has not been added because nobody needs it up to now ;)
>>>
>>> However, it's a good addition, agree.
>>>
>>> I'm adding it in the Karaf Spring features (see KARAF-2649).
>>>
>>> Regards
>>> JB
>>>
>>> On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
>>>
>>> Hi All,
>>>> I wonder why a feature for spring-security does not exists in ServiceMix
>>>> or
>>>> Karaf.
>>>>
>>>> I just finished playing around with it on ServiceMix 4.5.3, and I got it
>>>> working, even if fore a basic example.
>>>>
>>>> In my test I used the following feature for installing spring security
>>>> dependencies
>>>> <feature name="springsec-test" version="${project.version}">
>>>> <feature>spring-dm-web</feature>
>>>>
>>>> <bundle
>>>> start-level="50">mvn:org.springframework.security/
>>>> spring-security-core/${spring-security.version}</bundle>
>>>> <bundle
>>>> start-level="50">mvn:org.springframework.security/
>>>> spring-security-config/${spring-security.version}</bundle>
>>>>
>>>> <bundle
>>>> start-level="50">mvn:org.springframework.security/
>>>> spring-security-web/${spring-security.version}</bundle>
>>>>
>>>>
>>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>>> project.version}/war</bundle>
>>>>
>>>> </feature>
>>>>
>>>> (with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound
>>>> to
>>>> Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
>>>>
>>>>
>>>> The fact that it does not exists scary me as I see it really
>>>> straightforward to have a feature like "spring-security" that would
>>>> allow
>>>> to rewrite the code above as:
>>>>
>>>> <feature name="springsec-test" version="${project.version}">
>>>> <feature>spring-dm-web</feature>
>>>> <feature>spring-security</feature>
>>>>
>>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>>> project.version}/war</bundle>
>>>>
>>>> </feature>
>>>>
>>>> why nobody has yet added such feature to karaf/servicemix?
>>>>
>>>>
>>>> Thank you
>>>> (and merry holidays to everybody!)
>>>>
>>>> Cristiano
>>>>
>>>>
>>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Feature for spring-security
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It sounds good. Thanks.
Regards
JB
On 12/23/2013 08:04 AM, Cristiano Costantini wrote:
> Thank you!
>
> I will provide testing support for that and publish open source examples
> that shows how to use it.
>
> Regards,
> Cristiano
>
>
> Il giorno lunedì 23 dicembre 2013, Jean-Baptiste Onofré ha scritto:
>
>> Hi Cristiano,
>>
>> It has not been added because nobody needs it up to now ;)
>>
>> However, it's a good addition, agree.
>>
>> I'm adding it in the Karaf Spring features (see KARAF-2649).
>>
>> Regards
>> JB
>>
>> On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
>>
>>> Hi All,
>>> I wonder why a feature for spring-security does not exists in ServiceMix
>>> or
>>> Karaf.
>>>
>>> I just finished playing around with it on ServiceMix 4.5.3, and I got it
>>> working, even if fore a basic example.
>>>
>>> In my test I used the following feature for installing spring security
>>> dependencies
>>> <feature name="springsec-test" version="${project.version}">
>>> <feature>spring-dm-web</feature>
>>>
>>> <bundle
>>> start-level="50">mvn:org.springframework.security/
>>> spring-security-core/${spring-security.version}</bundle>
>>> <bundle
>>> start-level="50">mvn:org.springframework.security/
>>> spring-security-config/${spring-security.version}</bundle>
>>> <bundle
>>> start-level="50">mvn:org.springframework.security/
>>> spring-security-web/${spring-security.version}</bundle>
>>>
>>>
>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>> project.version}/war</bundle>
>>>
>>> </feature>
>>>
>>> (with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound
>>> to
>>> Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
>>>
>>>
>>> The fact that it does not exists scary me as I see it really
>>> straightforward to have a feature like "spring-security" that would allow
>>> to rewrite the code above as:
>>>
>>> <feature name="springsec-test" version="${project.version}">
>>> <feature>spring-dm-web</feature>
>>> <feature>spring-security</feature>
>>>
>>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>>> project.version}/war</bundle>
>>>
>>> </feature>
>>>
>>> why nobody has yet added such feature to karaf/servicemix?
>>>
>>>
>>> Thank you
>>> (and merry holidays to everybody!)
>>>
>>> Cristiano
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Feature for spring-security
Posted by Cristiano Costantini <cr...@gmail.com>.
Thank you!
I will provide testing support for that and publish open source examples
that shows how to use it.
Regards,
Cristiano
Il giorno lunedì 23 dicembre 2013, Jean-Baptiste Onofré ha scritto:
> Hi Cristiano,
>
> It has not been added because nobody needs it up to now ;)
>
> However, it's a good addition, agree.
>
> I'm adding it in the Karaf Spring features (see KARAF-2649).
>
> Regards
> JB
>
> On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
>
>> Hi All,
>> I wonder why a feature for spring-security does not exists in ServiceMix
>> or
>> Karaf.
>>
>> I just finished playing around with it on ServiceMix 4.5.3, and I got it
>> working, even if fore a basic example.
>>
>> In my test I used the following feature for installing spring security
>> dependencies
>> <feature name="springsec-test" version="${project.version}">
>> <feature>spring-dm-web</feature>
>>
>> <bundle
>> start-level="50">mvn:org.springframework.security/
>> spring-security-core/${spring-security.version}</bundle>
>> <bundle
>> start-level="50">mvn:org.springframework.security/
>> spring-security-config/${spring-security.version}</bundle>
>> <bundle
>> start-level="50">mvn:org.springframework.security/
>> spring-security-web/${spring-security.version}</bundle>
>>
>>
>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>> project.version}/war</bundle>
>>
>> </feature>
>>
>> (with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound
>> to
>> Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
>>
>>
>> The fact that it does not exists scary me as I see it really
>> straightforward to have a feature like "spring-security" that would allow
>> to rewrite the code above as:
>>
>> <feature name="springsec-test" version="${project.version}">
>> <feature>spring-dm-web</feature>
>> <feature>spring-security</feature>
>>
>> <bundle>mvn:${project.groupId}/${project.artifactId}/${
>> project.version}/war</bundle>
>>
>> </feature>
>>
>> why nobody has yet added such feature to karaf/servicemix?
>>
>>
>> Thank you
>> (and merry holidays to everybody!)
>>
>> Cristiano
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Feature for spring-security
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Cristiano,
It has not been added because nobody needs it up to now ;)
However, it's a good addition, agree.
I'm adding it in the Karaf Spring features (see KARAF-2649).
Regards
JB
On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
> Hi All,
> I wonder why a feature for spring-security does not exists in ServiceMix or
> Karaf.
>
> I just finished playing around with it on ServiceMix 4.5.3, and I got it
> working, even if fore a basic example.
>
> In my test I used the following feature for installing spring security
> dependencies
> <feature name="springsec-test" version="${project.version}">
> <feature>spring-dm-web</feature>
>
> <bundle
> start-level="50">mvn:org.springframework.security/spring-security-core/${spring-security.version}</bundle>
> <bundle
> start-level="50">mvn:org.springframework.security/spring-security-config/${spring-security.version}</bundle>
> <bundle
> start-level="50">mvn:org.springframework.security/spring-security-web/${spring-security.version}</bundle>
>
>
> <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>
>
> </feature>
>
> (with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound to
> Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)
>
>
> The fact that it does not exists scary me as I see it really
> straightforward to have a feature like "spring-security" that would allow
> to rewrite the code above as:
>
> <feature name="springsec-test" version="${project.version}">
> <feature>spring-dm-web</feature>
> <feature>spring-security</feature>
>
> <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>
>
> </feature>
>
> why nobody has yet added such feature to karaf/servicemix?
>
>
> Thank you
> (and merry holidays to everybody!)
>
> Cristiano
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com