Skip to Content

Register App in Microsoft Application Registration Portal

test
0 %
Register App in Microsoft Application Registration Portal
Details
// Explore More Tutorials

Register App in Microsoft Application Registration Portal

05/24/2019

Register a application in the Azure portal so that it can be issues access tokens

You will learn

  • How to register app in the Microsoft Azure Portal
  • Why access tokens are needs to access Microsoft Graph


Step 1: Go to the App Registration page in the Azure Portal

Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade

Alternatively, you can also search for App reg in the search bar to get to the same page.

portal apps overview
Log on to answer question
Step 2: Register a new app

Click on New Registration on the upper left corner.

portal apps overview
Log on to answer question
Step 3: Configure the new registration
  1. You should now give your application a certain name. This name will be visible when the user logs into your app for the very first time.
  2. Make sure the Supported account types are set to Accounts in any organizational directory and personal Microsoft accounts to allow the usage of personal accounts.
  3. Add the URL of your SAPUI5 application you have deployed in the previous tutorial. Make sure to copy the entire URL including the /index.html suffix.
  4. Proceed with Register.
portal app name
Why do you need to register a "redirect URL" at the Microsoft Application Registration Portal (for web applications)?
×
Step 4: Define the permissions
  1. To enable your application to access data from the Microsoft Graph like emails and documents, navigate to API Permissions, click on Add a permission.

    portal app name
  2. Choose the Microsoft Graph tile as we want to access those APIs.

    portal app name
  3. When asked for the type of permissions, select Delegated Permission as the user will delegate the app to access the Microsoft Graph API.

    portal app name

  4. Use the search bar to filter the required permissions. Select the Mail.Read, Files.ReadWrite.All and Files.Read permissions and confirm with Add Permission.

    These listed permissions are a superset of the permissions your app actually needs. Your application specifies at runtime which permissions it actually wants to request.

    portal app name

  5. Check that all permission have been added to your app registration.

    portal app name

Log on to answer question
Step 5: Enable the OAuth2 Implicit Flow
  1. Navigate to the Manifest section in the side panel.
  2. Change the fields oauth2AllowIdTokenImplicitFlow and oauth2AllowImplicitFlow to true to enable the implicit flow.
  3. Confirm with Save.
portal app name
Log on to answer question
Step 6: Get the application Id

Navigate to the Overview section in the side panel and look for the field Application (client) ID. Save this id as you will need it in the next tutorial. You can use the button next to the id to copy it to your clipboard.

appid

You (and the users of your application) can revoke the given permissions at https://myapps.microsoft.com [for Microsoft Office 365 users] or https://account.live.com/consent/Manage [for outlook.com users].

Log on to answer question

Next Steps

Back to top