The slides shown in the FOSS4G tutorial in advance to this tutorial are available here.
This tutorial will guide you to set up and configure the necessary access control service to protect an OGC Web Map Service and load it into an OGC WMS client.
You will install the 52°North WSS. For demonstration purposes, the "protected" WMS will be the famous Demis WMS. The uDig client will be used to visualize the results.
The following software has to be installed on your system, to walk through this tutorial:
The WSS web application is part of the Jetty Web Server bundle and is configured as follows:
File > New > New Map
> [right-click "Alice's Map"] > Add... > Web Map Server
> [paste URL http://localhost:8080/wss/httpauth/demiswms/] > Next > [log in as alice/alice]
> [select all layers] > Finish
You should at least be able to see country borders and airports (large scale!)
As you can see, for Alice everything works as if she had loaded the WMS directly.
<User username="bob" password="bob" realname="Bob">
<Role name="bob"/>
<Role name="main"/>
</User>
<!-- Users of role 'bob' can view Cities, Builtup areas, Hillshading, Borders, Countries, Airports
GetFeatureInfo only on Contries -->
<Permission name="most_GetMap_GetCaps">
<Resource value="layers/Cities" />
<Resource value="layers/Builtup%20areas" />
<Resource value="layers/Hillshading" />
<Resource value="layers/Borders" />
<Resource value="layers/Countries" />
<Resource value="layers/Airports" />
<Action value="operations/GetCapabilities" />
<Action value="operations/GetMap" />
<Subject value="bob" />
</Permission>
<Permission name="bob_Countries_GetFeatureInfo">
<Resource value="layers/Countries" />
<Action value="operations/GetFeatureInfo" />
<Subject value="bob" />
</Permission>
<Subject value="guest" />
<!-- users with role guest can request GetFeatureInfo on Countries only within american continent -->
<Permission name="guest_countries_GetFeatureInfo_obliged">
<Resource value="layers/Countries" />
<Action value="operations/GetFeatureInfo" />
<Subject value="guest" />
<Obligation name="obligation:wms:extent:boundingbox">
<Attribute name="srs">EPSG:4326</Attribute>
<Attribute name="box">-170,-56,-36,83</Attribute>
</Obligation>
</Permission>
Go to the advanced Tutorial...