|
I have two additional security Filter chains than what comes by default with GeoServer:
1. "Service Chain" called OGC which uses a "CAS" Authentication Filter that filters on the Ant pattern: /gwc*,/gwc/,/wfs,/wfs/,/wms,/wms/,/MyWorkspace/*
2. "Service Chain" called KML which uses the out-of-box "Basic" Authentication Filter placed above (infront of) the OGC filter that filters on the Ant pattern: /MyWorkspace/wms*format=application/vnd.google-earth.kml*
I want to be able to authenticate URLs matching the pattern in #1 with CAS and #2 with "Basic" authentication.
This works as far as GeoServer "Filter Chain Tester" is concerned however, when you are not authenticated already and you try it from Google Earth it doesn't work, and sure enough when you do an HTTP GET on the URL from the KML file you get redirected to CAS login page. Why is the GeoServer Authentication Chain mechanism choosing CAS authentication even though the "Filter Chain Tester" tells us that the URL matches a different service chain?
|