To configure auto pulling of documents, you need to generate the Client ID and Client Secret in SharePoint and register them. Follow these steps sequentially:

Step 1: Generate Client ID and Client Secret
Step 2: Register Client ID and Client Secret