Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As part of the process for deploying MyTasksthe SharePoint Online microservice, a service principal application used to authenticate the MyTasks backend App Service that hosts the microservice must be registered in Azure.

Register the service principal application

  1. Log in to your Azure portal as a user with the necessary permissions to create an application in Azure AD.

  2. In Azure, navigate to your Azure Active Directory.

  3. On the Azure Active Directory navbar, click App registrations.

  4. On the App registrations page, click New registration.

    Image RemovedImage Added

  5. Name the application, select the scope for the application (single or multitenant) and click Register.

  6. Once the application is registered, copy the Application (client) ID, Directory (tenant) ID and Object ID from the Overview page. These values are used later to configure AD authentication for the MyTasks SharePoint Online App service.

    The next step is to upload the base-64 encoded certificate that you have selected to authenticate to the application.

    Insert excerpt
    IL:Azure Cert Requirements
    IL:Azure Cert Requirements
    nopaneltrue

  7. Under Manage, click Certificates & secrets.

  8. Under Certificates, click Upload certificate and upload the base-64 encoded certificate.

  9. Under Client secrets, click New client secret. The secret is used by the application to prove its identity when requesting a token.

  10. Enter a Description for the client secret, select when Copy the secret Expires and then click Add.

  11. Under Manage, select Branding and update the settings accordingly. The Home page URL should be set to the URL for the MyTasks Front-End app service you created earlier.

  12. Save the settings.

  13. Under Manage, select Authentication and click Add a platform.

  14. Click Add a platform.

  15. Select Web.

  16. In the Configure Web pane do the following:

    1. In the Redirect URIs field, enter the URL for the MyTasks UI Web Service appended with /callback, such as https://{{mytasks-ui-url}}/callback, where {{mytasks-ui-url}} is the URL for the MyTasks UI App Service you created.

    2. Under Implicit grant, select both Access tokens and ID tokens.

    3. Click Configure.

  17. After the application configuration completes, click Add URI and enter the URL for the MyTasks UI Web Service appended with /.auth/login/aad/callback, such as https://{{mytasks-ui-url}}/.auth/login/aad/callback, where {{mytasks-ui-url}} is the URL for the MyTasks UI App Service you created.

  18. Click Save.

  19. Under Manage, select Expose an API and then click the Application ID URI Set link.

  20. In the Application ID URI field of the Set the App ID URI dialog, enter the URL for the My Tasks API App Service you created earlier and then click Save. The URI should look similar to https://mytasks-api-app.azurewebsites.net, where mytasks-api-app is the name of the MyTasks API app service.

  21. Under Scopes defined by this API, click Add a scope and enter the following information:

    • Scope name — Enter mytasks.all

    • Who can consent? — Select Admins and users.

    • Admin consent display name — Enter a desired display name.

    • Admin consent description — Enter a desired description.

    • State — Select Enabled.

    • Click Add Scope.

  22. Under Manage, select API Permissions and click Add a permission.

  23. Select APIs my organization uses and then search for and select the MyIdentity-API-AD application you created above.

  24. Select Delegated permissions and then select the myidentity.all scope.

  25. Click Add permissions. You will use it to configure Azure Active Directory Authentication.

Insert excerpt
IL:External Stylesheet
IL:External Stylesheet
nopaneltrue

...