“QField supports connecting to services requiring access authentication.”
I followed https://docs.qfield.org/how-to/advanced-how-tos/authentication/ but using APIHeader.
- Adding the WMTS manually in my QGIS-project by using a APIHeader authentication.
- Saving my Authentication in an xml-file in QGIS: Settings > Options > Authentication, select my APIHeader-configuration, click on Utilities and choosing “Export Authentication Configurations to File”, set no password and save as wmts_auth.xml.
- wmts_auth.xml is copied to the tablet in the QField-folder:
…\Android\data\ch.opengis.qfield\files\QField\auth\wmts_auth.xml - Exporting my QGIS project to the cloud, downloading and opening it in QField. My WMTS-layer is not appearing and get a red ! telling “This layer is invalid. This might be due to a network issue, a missing file or a missing file or a misconfiguration of the project.”
Something I’ve missed?
Is OAuth2 the only valid way?
Using QGIS 3.44.8 and QField 4.1.2 and QFieldCloud 4.18.3.
UPDATE: I renamed my xml-file from wmts_auth.xml to <ID>.xml. ID is the ID given in QGIS and that I can see in QGIS, in the xml-file and in the .qgs-file. However, didn’t help. Perhaps API Header isn’t supported by QField. Would appreciate if anyone could confirm that.

