0

I am trying to apply basic authentication in GeoServer but somehow it is not reflecting while consuming the WMS service through OpenLayers.

I am accessing it thorough below urls:

Either way it is not working. Below are the screen shots from GeoServer :

Filter Chain : enter image description here

default chain config (with basic authentication as well)

enter image description here

I created a Child role and created a child user with this role, Also I created service access rule as below

enter image description here

Please suggest if I am missing anything.

3
  • 1
    When you say it's not working, what is not working? no access? no password required?
    – nmtoken
    Aug 29, 2019 at 14:51
  • I tried with the 3 url's , One with capability gives message : Problem accessing /geoserver/wms. Other 2 calls form openlayers does not render any layer.
    – user684805
    Aug 29, 2019 at 14:53
  • Can you assist me on how to send credentials to GeoServer request, Also once the credentials are provided in popup on browser the WMS url does not ask for the credential second time until I close the browser and run the url again.
    – user684805
    Aug 29, 2019 at 17:49

1 Answer 1

0

Acording Geoserver-docs Layer security, challenge or mixed mode help you to access private data, the Geoserver forces most clients to show an authentication dialog which mean you can use basic auth. Otherwise you will receive a HTTP 401 code or HTTP 404 code if mode is hide.

Security->Data->MIXED enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.