You are viewing an earlier version of the admin guide. For the latest version, please visit EmpowerID Admin Guide v7.211.0.0.

Skip to end of banner
Go to start of banner

Copy-Register a Service Principal Application for the My Tasks Microservice

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

As part of the process for deploying MyTasks, 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.

  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 App service.

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

    The public key certificate that you upload to Azure must have a corresponding private key in the EmpowerID certificate store; otherwise, an error will occur when calling Azure’s API.

    If you don’t have a certificate to use for authentication, you can create a self-signed certificate from IIS and export the certificate as .cert, .pem, or .crt format. For help with these tasks, see https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/ and https://support.globalsign.com/ssl/ssl-certificates-installation/import-and-export-certificate-microsoft-windows.

  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 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.

  • No labels