AnsweredAssumed Answered

geoserver based WFS with BASIC auth

Question asked by rhutton86 on Jun 4, 2018
Latest reply on Jun 5, 2018 by cwhitmore-esristaff

Hi All,

I'm attempting to add a layer from a geoserver instance that's authenticated with HTTP Basic auth.  I've followed the following guides:

Secure OGC services:
https://doc.arcgis.com/en/arcgis-online/reference/ogc.htm#ESRI_SECTION1_136F31FA3EFC4B0A875D4E590CE59550
and:
Trusted servers:
https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm#ESRI_SECTION1_70CC159B3540440AB325BE5D89DBE94A

 

I've registered the server as a Trusted Server, but I still can't add a layer from it to the web map.  I'm doing Add -> Add Layer from Web, selecting "A WFS OGC Web Service", and entering the URL.  But when I click the Get Layers button, I get this error:

 

The WFS service, http://openapi.aurin.org.au/wfs, can't be added to the map. It's either not available or you have entered an invalid URL for the type of layer you want to reference.

 

 

In the geoserver logs, I see 401 authentication required errors, so it seems like ArcGIS Online isn't sending any authentication details, and isn't prompting for them.  The server is enabled for CORS, with "Access-Control-Allow-Origin: *".

 

Any ideas?

Thanks,

Rob

Outcomes