[OpenLayers-Users] Authenticating against a secured WMS server under IIS

Paul Angelino pangelino at tnc.org
Thu Apr 3 14:56:44 EDT 2008


Hello,

 

I'm pretty new to OpenLayers.  I recently began using it to add spatial
functionality to an existing non-spatial web app.  We're publishing WMS
services from an ArcGIS Server 9.2 instance under IIS, configured to
prevent anonymous access.  This is a good thing since some of the layers
we're serving contain sensitive data.  I saw this previous post to the
user forum: 
http://openlayers.org/pipermail/users/2007-February/000721.html, which
is exactly what is happening in my situation.  The user gets prompted to
authenticate against the web server.  The problem is that the user has
already been authenticated by the web application so I'd like to be able
to programmatically impersonate the user to our WMS server so there is
no prompting for credentials.  I don't see anything in the OpenLayers
2.5 API to support this, but I did run across this: 
http://trac.openlayers.org/browser/sandbox/tschaub/request/lib/OpenLayer
s/Request.js?rev=6351.  This OpenLayers.Request method seems to support
username and password parameters for HTTP authentication.  Is there a
way that this can be used instead of a call to OpenLayers.Layer.WMS to
instantiate a layer?  Is the OpenLayers.Request method something in the
underlying library that is not exposed in the public API, or is this
something slated for a future release?

 

Any information is greatly appreciated on how to access secured WMS
layers without getting the popup authentication dialog.

 

Thanks,

 

Paul

 

________________________________

Paul Angelino
Senior Programmer/Analyst

pangelino at tnc.org
(303) 945-4137 (Office) 
(303) 601-4856 (Mobile) 
(702) 993-8647 (Fax) 

nature.org <http://nature.org/>  

     

The Nature Conservancy

2391 Braun Drive
Golden, CO 80401

     

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20080403/c4762419/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 53 bytes
Desc: image001.gif
Url : http://openlayers.org/pipermail/users/attachments/20080403/c4762419/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3343 bytes
Desc: image002.gif
Url : http://openlayers.org/pipermail/users/attachments/20080403/c4762419/attachment-0003.gif 


More information about the Users mailing list