[Geoserver-users] How to access secured WMS in web application

2013-01-15 Thread Meichun Li
Hi,   My web application uses Struts Framework, and the enviroments are JDK 6,Tomcat 6, GeoServer 2.2.2.   I configured GeoServer to secure WMS, a basic authencitation window pops up for WMS request. For example, user name and password are required to input to access http://localhost:8080/geose

Re: [Geoserver-users] How to access secured WMS in web application

2013-01-15 Thread christian . mueller
To avoid the popup (challenge) you have to send the Http Header Authorization which each request. Look here for an example http://www.avajava.com/tutorials/lessons/how-do-i-connect-to-a-url-using-basic-authentication.html Christian Zitat von Meichun Li : > Hi, >   > My web application uses S

Re: [Geoserver-users] How to access secured WMS in web application

2013-01-17 Thread Meichun Li
" To: Meichun Li Cc: "geoserver-users@lists.sourceforge.net" Sent: Wednesday, January 16, 2013 1:01 AM Subject: Re: [Geoserver-users] How to access secured WMS in web application To avoid the popup (challenge) you have to send the Http Header Authorization which each request.

Re: [Geoserver-users] How to access secured WMS in web application

2013-01-17 Thread christian . mueller
> > }, > > { > > singleTile: true, > > ratio: 1, > > isBaseLayer: true, > > yx : {'EPSG:4326' : true} > > } > > ); > > > map.addLayers([untiled, tiled]); > > > > > > From: "christia

Re: [Geoserver-users] How to access secured WMS in web application

2013-01-17 Thread Meichun Li
quot;geoserver-users@lists.sourceforge.net" Sent: Thursday, January 17, 2013 10:53 AM Subject: Re: [Geoserver-users] How to access secured WMS in web application I am no Openlayers expert but look here http://osgeo-org.1560.n6.nabble.com/Load-GeoServer-WMS-secured-layers-with-OpenLayers-td3919938.html