Skip to content
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

Does MapCache REST cache support Basic/Digest authentication? Configuration example needed #346

Open
samtux opened this issue Dec 14, 2024 · 0 comments

Comments

@samtux
Copy link

samtux commented Dec 14, 2024

I'm trying to configure MapCache REST cache with authentication to a WebDAV server. Here's my current configuration:

<cache name="restcache" type="rest">
    <url>https://gisdev.ambientebogota.gov.co/cache/{tileset}/{grid}/{z}/{x}/{y}.{ext}</url>
    <headers>
        <Host>gisdev.ambientebogota.gov.co</Host>
        <Authorization>Basic user:password_in_base64</Authorization>
    </headers>
</cache>

Working curl command for reference:

curl -v -X MKCOL -u user:ultrasecret "https://gisdev.ambientebogota.gov.co/cache/{tileset}/{grid}/{z}"

mapcache_seed gives the following error:

aborting seed as 100.0% of the last 1000 requests failed
failed to seed tile z1,x0,y0:
curl_easy_perform() failed in rest put with code 409: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>409 Conflict</title>
</head><body>
<h1>Conflict</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

Does MapCache REST cache backend support Basic or Digest authentication?

Environment:

MapCache version: 1.14.1
Apache version: 2.4.57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant