Authenticate on external WMS layers behind Geoserver

المشرف العام

Administrator
طاقم الإدارة
I have proxied external WMS sources on my geoserver. This works fine for unsecured layers.

For the case, an external layer needs basic authentication with username and password, I can provide credentials inside geoserver for the datasource. This enables me to request my geoserver layer without providing additional credentials because geoserver uses the ones provided for this datasource.This is not what I want, because like this, the resource becomes unsecured actually.

I would rather need to send an Authorization header with the geoserver request which is than forwarded with the request to the external resource. This does not work, because geoserver itself tries to authenticate with this credentials, but my geoserver does not have a user with the credentials of the remote WMS.So, my geoserver responds with a 401 before it even tries to access the external resource.

Does anyone know a way how to provide the authorization header just to the external resource?



أكثر...
 
أعلى