Hello all,
Is it possible to use acegi-security to restrict the access to a page. And how can we do it ?
My page is for moment in geoserver base directory ( …Tomcat 6.0\webapps\geoserver\GeoWeb++.html )
Stevan Gaillard 2ème année DUT informatique
Stevan Gaillard ha scritto:
Hello all,
Is it possible to use acegi-security to restrict the access to a page. And how can we do it ?
My page is for moment in geoserver base directory ( ...Tomcat 6.0\webapps\geoserver\GeoWeb++.html )
There is no user configuration allowing for that.
But if you're familiar with Acegi you can get that working by
unpacking WEB-INF/lib/main-<version>.jar and editing
applicationSecurityContext.xml
If you're in the business
of modifying that file often I suggest your copy that file
over to WEB-INF/classes and repack main-<version>.jar without
it inside
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
OK thanks Andrea.
My traineeship ends, and it was really nice to work on GeoServer. You all the DevTeam made an excellent job, your user-support is truly impressive.
I would like to thank you all and I hope that this project will continue to live long. And finally, I wish you many good things 
2009/6/16 Stevan Gaillard <stevan.gaillard@anonymised.com>
Hello all,
Is it possible to use acegi-security to restrict the access to a page. And how can we do it ?
My page is for moment in geoserver base directory ( …Tomcat 6.0\webapps\geoserver\GeoWeb++.html )
Stevan Gaillard 2ème année DUT informatique
–
Stevan Gaillard 2ème année DUT informatique
I think it is ok now, there is what i changed if someone is interested.
So i use the same authentication as in config interface, but i could use another user too. I added at the end of this xml my own page.
Thanks again to Andrea
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/geoweb.html=ROLE_ADMINISTRATOR
/config/=ROLE_ADMINISTRATOR
/=IS_AUTHENTICATED_ANONYMOUSLY