Authentifizierung¶
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.
OAuth2-Protected Web Services in QGIS¶
Vorbereitung am Schreibtisch
Before loading the OAuth2-protected web layers (such as WFS or WMS) into QField you need to configure them accordingly in in QGIS.
Workflow
- In QGIS, navigate to Layer > Add Layer > Add WFS / OGC API Feature Layer....
- Click New or select an existing service connection and click Edit.
- Under the Authentication section, click the green plus (+) button to add a new authentication configuration.
- Set Type to OAuth2 and adjust parameters to match your OAuth2 provider server setup.
- Save the configuration and verify that layers load correctly on the QGIS canvas.
Export Authentication Configurations from QGIS to QField¶
Vorbereitung am Schreibtisch
In order to view the layers in QField you need to export the authentication configurations from QGIS.
Workflow
- In QGIS, navigate to Settings > Options... > Authentication.
- Select target configuration entries in the configurations table.
- Click Utilities and select Export selected authentication configurations to file....
- When prompted for an encryption password, leave the password field blank.
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.
Import Authentication Configurations into QField¶
Feldarbeit
Now youi have to transfer the exported authentication configuration XML file directly into the QField application directory on your mobile device.
Workflow
- Copy the authentication configuration XML file from wherever you saved it during export.
- Connect to your mobile device (eg. via cable / cloud folder).
- Once connected copy the exported XML file into the
QField/Authdirectory on your device App Directory. - Launch QField and open your project.
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.


