Firstly you need to Log in to Microsoft Azure (https://portal.azure.com/#home)
and search "App registration"
Open "New registration" and enter the Name and the URL callback:
SaaS | enter https://businesscentral.dynamics.com/OAuthLanding.htm |
onPrem | URL/InstanceName/OAuthLanding.htm
(eg. http://localhost:8080/BC160/OAuthLanding.htm) |
Press Register.
Authentication
In Authentication check "Access Tokens" e "ID Tokens". Set to Yes "Allow public client flow" and Save
Certificate & Secrets
In Certificate & Secrets add a "New Client Secret" and set the Expiration to "Never".
Once created it must be copied and saved because it will only be visible during creation
API Permissions
In API Permissions add a new permission "Microsoft Graph" type and choose "Application"
finally select the "sites.readwrite.all" permission and click on "Add permissions"
Click on "Grant admin consent for X" (it will start the authorization request)
finally return to the "Overview" tab and copy the client ID and tenant
See also:
Introduction |
Setup Upload |