<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class="">WMS source works like that but in WMTS I didn’t get it working. Source request log says authentication failed and it returns no tiles.</div><div class=""><br class=""></div><div class="">I actually got it working by adding custom http header for the basic auth:</div><div class=""><br class=""></div><div class=""><div class=""><b class="">wmts_source:</b></div><div class=""><b class=""> type: tile</b></div><div class=""><b class=""> grid: GLOBAL_WEBMERCATOR </b></div><div class=""><b class=""> url: ’…...'</b></div></div><div class=""><div class=""><b class=""> http:</b></div><div class=""><b class=""> headers:</b></div><div class=""><b class=""> Authorization: Basic THIS_IS_MY_BASE64_ENCODED_USERNAME_AND_PASSWORD</b></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Mikko</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Oliver Tonnhofer <<a href="mailto:olt@omniscale.de" class="">olt@omniscale.de</a>> kirjoitti 1.3.2016 kello 18.01:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">that should work. Can you provide more information? Log output, full configuration, etc?<br class=""><br class=""><br class="">Regards,<br class="">Oliver<br class=""><br class="">-- <br class="">Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.com" class="">http://omniscale.com</a><br class="">OpenStreetMap WMS and tile services | <a href="http://maps.omniscale.com" class="">http://maps.omniscale.com</a><br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 20.02.2016, at 16:30, Mikko Kutilainen <<a href="mailto:mikko93@gmail.com" class="">mikko93@gmail.com</a>> wrote:<br class=""><br class="">Hi,<br class="">I am trying to access WMTS source which has basic authentication. I add credentials as I add them to the WMS source but I cannot get it work.<br class=""><br class="">source_with_basic_auth:<br class=""> type: tile<br class=""> grid: GLOBAL_WEBMERCATOR <br class=""> url: '<a href="https://username:password@tile.url....png'" class="">https://username:password@tile.url....png'</a><br class=""><br class=""><br class="">Should this work and if not, what options do I have to get it working?<br class=""><br class=""><br class=""><br class="">Thanks,<br class="">Mikko Kutilainen<br class="">_______________________________________________<br class="">MapProxy mailing list<br class=""><a href="mailto:MapProxy@lists.osgeo.org" class="">MapProxy@lists.osgeo.org</a><br class="">http://lists.osgeo.org/mailman/listinfo/mapproxy<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></body></html>