Specify the name, token endpoint, application ID, base URL, username and password, SharePoint library and folder for reports.
Token endpoint: OAuth authentication is performed against the token endpoint. It can be found in the Azure Active Directory; App Registries > [Your app name] > Endpoints > OAuth 2.0 Token Endpoint (v1).
Application ID: The application ID is used for OAuth authentication against the defined endpoint. It can also be found in the Azure Active Directory; App Registries > [Your app name] > Overview > Application ID (Client).
In both cases, an app must first be created.
Create OAuth 2.0 Application in Azure AD:
1. Go to the Azure AD portal via https://aad.portal.azure.com
2. Here, select "Azure Active Directory" and "App Registrations" in the left navigation area and then "New Registration".
3. Here you define the name of the application and the supported account types. The optional redirection URL must remain free.
4. Switch to "API permissions" to grant permissions to your app. Here, select "Add a Permission", then "SharePoint", "Delegated Permissions" and finally, for example, "AllSites.Manage".
5. Click on "Grant administrator approval" to give your approval for the required permissions of the application
6. Select "Authentication" in the left navigation area.
7. Change „Allow public client flows” from “No” to “Yes”.