The original version of this document is located at https://docs.qfield.org/how-to/advanced-how-tos/authentication
QField supports connecting to services requiring access authentication.
This page will go through authentication examples as well as demonstrating how to export authentication configuration from QGIS into QField
🖥️ Desktop preparation
To successfully load OAuth2-protected layers in QField, these layers must be setup to use OAuth2 in QGIS.
To setup a WFS with OAuth2 in QGIS follow these steps.
Workflow


🖥️ Desktop preparation
Prior to exporting authentication configurations, it is always good to verify that you are able to properly connect to relevant services using QGIS.
Workflow
Direct to Settings > Options > Authentication
Select one or more rows in the configurations table widget.

Warning
You will be warned that you might be leaking sensitive information, which is a good reminder to treat the resulting XML with caution.
🖥️ Desktop preparation
In order for a service that requires authentication to run in QField, after configuring the required credentials in QGIS, the information needs to be added into QField as well.
Workflow
Tip
For authentication methods requiring user input such as OAuth2, QField will provide a browser or dialog to prompting for the required details such as user, password, or 2-step authentication code.