-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set basic HTTP authentification #15
Comments
Hi @aurelien-m 👋 Thanks for opening this issue! I'm open to any proposals you have to fix this, we can briefly discuss it and either you can open a PR with a fix or I can work on it. Up to you 😉 Let me know which way you prefer. |
Speaking of possible solution, the first and most simple thing that comes to my mind is to add new func WithBasicHTTPAuth(username, password string) ClientOption {
return func(c *Client) {
c.username = username
c.password = password
}
} Then we can access both |
Hey @lmikolajczak! So I've actually done something similar in my own fork: https://github.com/aurelien-m/wms-tiles-downloader/pull/1/files. I've also added And by the way, I haven't done a lot of Go, so don't hesitate if you see anything clumsy 😄 |
Extra note: I've also modify your app to be able to read GeoJSON files and extract tiles from a polygon. You can see what I've done here: https://github.com/aurelien-m/wms-tiles-downloader/pull/2/files. |
First of all, thanks for this simple and great tool. I need to access a WMS server that has basic HTTP authentication. I had to add an extra line in the request function from
wms/client.go
to make it work:It would be nice to have an optional argument passing a username and password for this case, unless you see any better way of doing it? I can propose a PR for this. 😄
The text was updated successfully, but these errors were encountered: