[Geoserver-users] How can I configure user name/password in geowebcache.xml for wmslayers?

Hi,

I have this in Geowebcache.xml

<!-- OPTIONAL A HTTP username to use for requests. Due to the design of the HTTP client included with
       Java this setting is global-->
  <httpUsername>username</httpUsername>
  <!-- OPTIONAL Password for the username above -->
  <httpPassword>password</httpPassword>
  
Because it is global you can have directly layers from just one remote secured WMS. For more remote servers you must use some proxy in between.

-Jukka Rahkonen

mano3688 wrote:

For local layers in my won Geoserver,I use Geoserver usename and
password.

But for external service layer,How can I set username and password?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-
can-I-configure-user-name-password-in-geowebcache-xml-for-wmslayers-
tp5023835p5023847.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi thanks.This is very helpful for me.
Based on this,I have added username and password in geowebcache.xml.

*But I have confusion .

I have used 5 wms layers.
But I don't know, how do give authentication for each layer in
geowebcache.xml?
I want to create username and password for each external service layer.*

For Example:

        <httpUsername>tokr</httpUsername>
  <httpPassword>RgTT226</httpPassword>
  <layers>
    <wmsLayer>
    <name>kd:sverigekartan</name>
  
<wmsUrl><string>http://maps.lantmateriet.se/allmannakartor/wms/v1&lt;/string&gt;&lt;/wmsUrl&gt;
    </wmsLayer>
    <wmsLayer>
    <name>kd:topowebbkartan</name>
  
<wmsUrl><string>http://maps-eval.lantmateriet.se/topowebbfast/wms/v1&lt;/string&gt;&lt;/wmsUrl&gt;
    </wmsLayer>
    <wmsLayer>
    <name>kd:orto</name>
  
<wmsUrl><string>http://maps.lantmateriet.se/ortophoto/wms/v1&lt;/string&gt;&lt;/wmsUrl&gt;
    </wmsLayer>
    <wmsLayer>
    <name>gde:Gazetter</name>
  
<wmsUrl><string>http://localhost:8081/geoserver/wms?layers=gde:Gazetter&lt;/string&gt;
</wmsUrl>
    </wmsLayer>
    <wmsLayer>
    <name>0</name>
  
<wmsUrl><string>http://nvkarta.vic-metria.nu/ArcGIS/services/NVKarta/MapServer/WMSServer?&lt;/string&gt;&lt;/wmsUrl&gt;
    </wmsLayer>
  </layers>

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-can-I-configure-user-name-password-in-geowebcache-xml-for-wmslayers-tp5023835p5023897.html
Sent from the GeoServer - User mailing list archive at Nabble.com.