Ticket #2892 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

WFS http authentication support

Reported by: strk Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.6.0
Component: WMS Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

When a WFS server requires HTTP authentication, the current WFS plugin doesn't prompt the user for name/password but passes an empty string to the XML parser instead.

Would be nice to have a user/password prompt or at least a more meaningful error message to allow user to specify them as part of the url (user:pass@server)

Attachments

feature-2892.diff Download (24.2 KB) - added by jef 3 years ago.
patch to port wfs source select and provider to QgsNetworkAccessManager?

Change History

follow-up: ↓ 2   Changed 3 years ago by jef

the WFS provider should probably be ported to use QNetworkAccessManager instead of QgsHttpTransaction? (like the WMS provider). That way the authentication would be handled transparently.

in reply to: ↑ 1   Changed 3 years ago by jef

Replying to jef:

the WFS provider should probably be ported to use QNetworkAccessManager instead of QgsHttpTransaction? (like the WMS provider). That way the authentication would be handled transparently.

see also  r13093

  Changed 3 years ago by pcav

  • milestone set to Version 1.6.0

Changed 3 years ago by jef

patch to port wfs source select and provider to QgsNetworkAccessManager?

  Changed 3 years ago by jef

  • owner changed from timlinux to mhugent
  • component changed from C++ Plugins to WMS+WFS

  Changed 3 years ago by mhugent

Hi Juergen

Thanks for the patch. I'm currently working on WFS-T support and will try to merge your patch with my changes and then commit everything together.

Marco

  Changed 3 years ago by mhugent

  • status changed from new to closed
  • resolution set to fixed

Applied as part of r13985. Thanks, Juergen!

Note: See TracTickets for help on using tickets.