OAuth2 Services Setup Project In Microsoft: Difference between revisions
Damyon Wiese (talk | contribs) (Created page with "=== Setup App In Microsoft === To setup an OAuth 2 client with Microsoft, first we need to login to the https://apps.dev.microsoft.com/#/appList Microsoft Application Cons...") |
m (Note about intent to not migrate this page to moodledev.io) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Template:WillNotMigrate}} | |||
=== Setup App In Microsoft === | === Setup App In Microsoft === | ||
Line 41: | Line 42: | ||
[[File:microsoft-8-got-it.png|none|frame|Got it]] | [[File:microsoft-8-got-it.png|none|frame|Got it]] | ||
[[ | [[OAuth2 Services|Back to OAuth 2 Services]] |
Latest revision as of 16:05, 30 April 2024
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
Setup App In Microsoft
To setup an OAuth 2 client with Microsoft, first we need to login to the [Microsoft Application Console] and create a new app.
Note: If you have previously registered Applications with an older API your Application Console may look different. In this case you should create a new "Converged Application".
Choose a good name as this is what is shown to users when they are asked to approve the permissions.
Next you have to add a platform to your application.
Choose "Web platform"
Uncheck the "Allow Implicit Flow" checkbox and set the callback URL. The callback URL should point to "your Moodle site URL + /admin/oauth2callback.php". If your Moodle site was available at https://lemon.edu/ the callback URL would be https://lemon.edu/admin/oauth2callback.php. It is important that your Moodle site uses https and not http. Microsoft will not allow the callback url if it is not using https.
Make sure the "Microsoft Graph Permissions" section contains the "User.Read" permission.
Set the options for the consent screen.
Save all the details and then generate a new password.
Enter the password in Moodle as the "Client secret" and the Application ID as the "Client id".