Hi,
i try to protect an application using the CrowdSecurityFilter as described in the documentation.
I added crowd-integration-client-2.2.7.jar and all jar's in lib from the client directory of the crowd pakage to my WEB-INF/lib directory.
Also i added the crowd.properties and crowd-ehcache.xml to my WEB-INF/classes diretory.
As last point i added:
<address><filter></address><address> <filter-name>CrowdSecurityFilter</filter-name></address><address> <filter-class>com.atlassian.crowd.integration.http.filter.CrowdSecurityFilter</filter-class></address><address></filter></address> <address><filter-mapping></address><address> <filter-name>CrowdSecurityFilter</filter-name></address><address> <url-pattern>/*</url-pattern></address><address></filter-mapping></address><address> </address>Community moderators have prevented the ability to post new answers.
Something to add to Divya's answer: Make sure applicationContext-CrowdRestClient.xml is in your classpath. Even though I was including crowd-integration-client-rest.jar (v2.4.2) in my app, this file wasn't available (??). I had to drop the beans defined at https://developer.atlassian.com/display/CROWDDEV/Java+Integration+Libraries into my applicationContext.xml. Worked fine.
Just sharing what I did.
I used crowd-integration-client-rest-2.2.4.jar and put it in WEB-INF/lib folder.
And used Spring security 3.0 and used Spring's Delegating filterproxy
<font style="color: #008080; font-size: x-small;" size="2" color="#008080"></font>
<
<font style="color: #008080; font-size: x-small;" size="2" color="#008080"></font>
context-param
>
<param-name>contextConfigLocation</param-name<font size="2" color="#008080"><font size="2" color="#008080">></font></font><param-value><u style="text-decoration: underline;"><font size="2">classpath</font></u>:/applicationContext-CrowdRestClient.xml
</param-value<font size="2" color="#008080"><font size="2" color="#008080">></font></font></context-param<font size="2" color="#008080"><font size="2" color="#008080">></font></font><filter>
<filter-name>crowdSecurityFilter</filter-name
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>crowdSecurityFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
You have to give exact name with case since this is the bean defined in the jar's application context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Divya,
I am really struggling with this as the documentation currently sucks. I want to use Crowd for authentication and authorization for a simple webapp. Could you please point me in right direction.
Thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.