Set up Microsoft as an external IdP for your application and enable permissions for
your application.
-
Go to Microsoft Azure portal at https://portal.azure.com/.
-
In the App registrations section, select your
application.
-
On the left, click API permissions.
-
Click + Add a permission.
-
Click Microsoft Graph, then click Delegated
permissions.
-
Select the following:
email
offline_access
openid
profile
User.Read
-
Click Add permissions.