[MapProxy] Basic Authentication in WMTS source

Mikko Kutilainen mikko93 at gmail.com
Tue Mar 1 23:01:56 PST 2016


Hi,
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.

I actually got it working by adding custom http header for the basic auth:

wmts_source:
    type: tile
    grid: GLOBAL_WEBMERCATOR 
    url: ’…...'
    http:
        headers:
            Authorization: Basic THIS_IS_MY_BASE64_ENCODED_USERNAME_AND_PASSWORD




Regards,
Mikko


> Oliver Tonnhofer <olt at omniscale.de> kirjoitti 1.3.2016 kello 18.01:
> 
> Hi,
> 
> that should work. Can you provide more information? Log output, full configuration, etc?
> 
> 
> Regards,
> Oliver
> 
> -- 
> Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
> OpenStreetMap WMS and tile services         | http://maps.omniscale.com
> 
> 
> 
> 
>> On 20.02.2016, at 16:30, Mikko Kutilainen <mikko93 at gmail.com> wrote:
>> 
>> Hi,
>> 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.
>> 
>> source_with_basic_auth:
>>    type: tile
>>    grid: GLOBAL_WEBMERCATOR 
>>    url: 'https://username:password@tile.url....png'
>> 
>> 
>> Should this work and if not, what options do I have to get it working?
>> 
>> 
>> 
>> Thanks,
>> Mikko Kutilainen
>> _______________________________________________
>> MapProxy mailing list
>> MapProxy at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapproxy
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160302/68c66136/attachment.html>


More information about the MapProxy mailing list