Hi,

We had to do a similar thing restricting features by user.  We implemented a 
CQL filter that matched something from the user to a property of the feature.  

Implement a class that extends FunctionExpressionImpl that applies the CQL 
filter.  Then implement a callback function that can be used during the feature 
setup process implementing implements DispatcherCallback.

We use our DispatcherCallback class to check for the existence of a defined CQL 
and create an AND filter from the predefined and our security CQL filters.  If 
we don't have a predefined, we set the request setCQLFilter(ourSecurityFilter).

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.


-----Original Message-----
From: Feniks [mailto:svab.ma...@gmail.com] 
Sent: Monday, June 02, 2014 3:04 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] WFS,WMS per feature security

Hello.
I would like to know if its possible to somehow set which features a certain 
user can see?

Example:
Lets say we have a featureType ... workspace:A with 1000 features.
When using a WFS request to get this featureType, 600 features are only seen by 
user X and other 400 features by user Y, and the user Z can see all 1000 
features.

Is this possible with any module, extension, ...?

Thanks for any help.

Regards
Matic




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WFS-WMS-per-feature-security-tp5143498.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to