Ticket #107 (feature request)
Opened 2 years ago
Last modified 8 months ago
Support for basic auth and WMS
Status: closed (fixed)
| Reported by: | seang | Assigned to: | seang |
|---|---|---|---|
| Priority: | major | Milestone: | OWSLib 0.3 |
| Component: | OWSLib | Version: | |
| Keywords: | authentication wms | Cc: | |
A user contribution
My name is Paul Hiemstra and I am a PhD student at the university of Utrecht in the Netherlands.
I wanted to read a WMS server that was protected by a password (Apache BasicAuthentication?). I modified the wms.py (owslib 0.2.0) to make this possible. The call to the WMS would look something like:
from owslib.wms import WebMapService wms = WebMapService(url, username, password)
Attachments
Change History
04/19/07 10:26:31: Modified by seang
- attachment paul-auth.patch added.
11/06/07 10:48:21: Modified by seang
- status changed from new to assigned.
- milestone set to OWSLib 0.3.
05/08/08 12:08:43: Modified by seang
- status changed from assigned to closed.
- resolution set to fixed.

Patch accepted and committed in r1092 with modifications. Instead of globally registering an opener, I am binding the service's _open attribute to the opener's open method, and doing it at once in init instead of for each request.