The original version of this document is located at https://docs.qfield.org/how-to/advanced-how-tos/authentication
QField supports connecting to web services requiring user or token authentication.
This page details configuring OAuth2 services in QGIS and exporting authentication configurations to QField mobile devices.
🖥️ Desktop preparation
Before loading the OAuth2-protected web layers (such as WFS or WMS) into QField you need to configure them accordingly in in QGIS.
Workflow


🖥️ Desktop preparation
In order to view the layers in QField you need to export the authentication configurations from QGIS.
Workflow

Warning
Leaving authentication export passwords blank stores credentials in plain text inside the output XML file.
Keep exported XML files secure and delete them after completing device deployment.
📱 Fieldwork
Now youi have to transfer the exported authentication configuration XML file directly into the QField application directory on your mobile device.
Workflow
QField/Auth directory on your device App Directory.Tip
For interactive authentication methods (such as OAuth2), QField opens an in-app browser dialog prompting for user credentials, passwords, or two-factor authentication (2FA) verification codes when connecting to services.