Provider Authentication Overview
About
By the end of this section, the objective is to successfully authenticate your application and link provider credentials to Leaf, enabling you to start integrating standardized data from major agricultural providers. Ultimately you’ll want your customers to be able to integrate their (user-permissioned) data from their providers into your application. So in order to set this up at the user level, you’ll need to attach the user token from the provider to the Leaf User.
TIP: Once you get to the stage of building the user authentication UI for your customers integrating their providers, we recommend using our pre-built Leaf Link widget.
Provider authentication process with Leaf
Each data provider's authentication flow is slightly different. Please refer to the tutorials below for the steps:
- AgLeader authentication with Leaf
- Climate Fieldview authentication with Leaf
- CNHi authentication with Leaf
- John Deere authentication with Leaf
- Raven Slingshot authentication with Leaf
- Stara authentication with Leaf
- Trimble authentication with Leaf
- Integrating Sentera layers and imagery
- For more crop monitoring or weather providers, head to the relevant documentation sections. If you still don't see your provider, contact us at help@withleaf.io for more information.
This authentication flow has to be done only once in most cases. Leaf will manage the tokens and refresh them when needed.
Provider scopes
Some providers like John Deere and Climate FieldView keep their resources under specific permissions, which means the user needs to grant access during the authentication process mentioned before. The allowed permissions are grouped in Leaf products as described below:
Scope | Description |
---|---|
FIELDS:READ | Requests permission to access the field boundaries entities from the provider |
FIELDS:WRITE | Requests permission to create field boundary entities in the provider |
OPERATIONS:READ | Requests permission to fetch and download operation data and files from the provider |
PRESCRIPTION:READ | Requests permission to fetch and download prescription data and files from the provider |
PRESCRIPTION:WRITE | Requests permission to upload prescription files to the provider |
ASSETS:READ | Requests permission to get asset information like machines, implements, and operators from the provider |
PRODUCTS:READ | Requests permission to get products and varieties information from the provider, like fertilizers, and chemicals |
ZONES:READ | Requests permission to get zone information from the provider |
The scopes can be used in the Leaf authentication URL helper or in the application key information from Leaf Link.
Provider credentials endpoints
For more details about provider credentials endpoints, see below for:
Also, we recommend use our Providers Integrations Resources endpoint to debrief the ingested resources from the authenticated account. With the Providers Integrations Resources, you can access all the relevant information between the authentication and the processing of your resources ingested into Leaf's API. The resource summary gives you more visibility on what and how many resources are being processed.
Need more guidance? Contact us at help@withleaf.io
.