We are trying to restrict access to all profile and people pages to not allow unathenticated users to see them.
The profile pages we were able to secure by overriding the struts action with our own and adding the @requiresAuthorization annotation to the new classes (btw, isn't there a declarative way of doing this other than having to extend a class just to add this annotation?)
For the people page though, it is not clear to me what action needs to be overriden. The url to this page is http://<clearspace.url>/people which doesn't have the .jspa extension on it. Does anyone know how to secure this page?
Thanks.
One thing that might be easier / less intrusive would be to write a custom Acegi filter (details here: http://www.jivesoftware.com/builds/docs/jive_sbs_employee/latest/developer/ExampleAuthenticationandAuthorization.html) that maps to /people and have the implementation of the filter check (and reject) anonymous users.
Long term we're definitely looking to enable this through configuration rather than customization.
Cheers,
AJ
Hi Aaron,
Thanks for your reply. Unfortunately we can not go down the filter path because we are using an SSO plugin (which we do not own) that's already overwriting the spring filter chain definition.
Can you tell what class do I have to override to get the /people url secured??
Thanks.
Erick.
Hi Erick,
A little more hack-ish way to do this (and not nearly as clean as an acegi filter) would be to modify the templates that display the people page and profile pages to first check if the user is authenticated or not. Here is a public case explaining how to customize the people page specifically:
http://www.jivesoftware.com/jivespace/message/106447#106447
Basically, you'll need to wrap the people.ftl template around this code if you want to hide it for guests:
<#if !(authentication.anonymous)>
PLACE CODE HERE
<#else>
DO SOMETHING ELSE
</#if>
If you are a little more adventurous you could attempt to modify the filter chain dynamically from your plugins init() method (I believe someone internally has done this before). Hope that helps. Thanks.
-Todd
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us