...
Here you will find Client Id (App Id) and Tenant Id. These are needed later, when adding SharePoint in Canvas.
...
Choose Application permission, select SharePoint and choose the Sites.Selected permission
Finally, give grant the permission admin consent:
...
SharePoint domain is unique to your organization, for example: connectmyapps.sharepoint.com
Site is the Sharepoint SharePoint site you wish to give API access to.
...
Enter the Azure Client Id (App Id) from earlier and press Lookup.
Title should then be automatically populated.
Set App Domain to "localhost" and Redirect URL to "https://localhost".
...
Press Create. This will redirect you to a site where you have to Trust trust the application.
Choose Trust It
...