PowerObjects Blog 

for Microsoft Business Applications

Enabling Modern Authentication in your PowerPack Add-Ons

Post Author: Joe D365 |

With Microsoft enforcing modern authentication, you may have been wondering how your PowerPack add-ons will authenticate moving forward.

As you may have heard from us before, automated data processing is not compatible with user accounts where multi-factor authentication (MFA) is enabled, as MFA is designed to be used where the user is directly interacting with an application while it is running. Due to the automated nature of the cloud components of our PowerPack add-ons, the authentication for these applications will happen often and at times when a user may not be available to respond to a prompt.

We realize this is not practical, and our team has been working hard to develop and test updates to our cloud infrastructure that will support more advanced authentication mechanisms that do not require MFA as a security measure.

And with that, we are pleased to bring you ServertoServer authentication for our PowerPack add-ons!

Why this is important

From November 9th onwards, PowerPack add-ons will be supporting ServertoServer authentication (recommended and supported for CRM online) along with IFD authentication (supported for on-premises) for these add-ons:

  • PowerEmail
  • PowerConstantContact
  • PowerMailChimp
  • PowerSMS
  • PowerSurveyPlus
  • PowerWebForm
  • PowerWebTraffic

If you are on version or above of Dynamics 365, you will not be able to authenticate using username and password at all. Instead, you will be required to use ServertoServer authentication, as Microsoft turned off authentication using App password starting with this version.

Prerequisites to Using ServertoServer Authentication

To use ServertoServer authentication in your add-on, an online CRM deployment is required, and you will need to upgrade to the latest version of the add-on released to the website. These solutions will start to be released on November 9, 2020. Check the add-ons “change log” on the respective webpage to confirm that the version supports ServertoServer authentication. If you have any questions, please reach out to powerpackpro@hcl-powerobjects.com.

Configuration of ServertoServer Authentication in PowerPack Add-ons

Part 1: Create App Id and App Secret in Azure Tenant

Login to https://www.portal.azure.com with the same credentials as your Dynamics 365 tenant.

Note: Make sure you have access to create Active Directory app registration in Azure Portal.

1. Navigate to Azure Active Directory

2. Navigate to App registrations à New registration

3. Fill in the values for a, b, and c as shown below:

  • Name: ‘ServertoServer Authentication for PowerPack AddOn’ or any name of your choice.
  • Supported account types: Single Tenant
  • Redirect URI: ‘Web’ – https://<CRMOrgName>.com/auth

4. Click on Register.

Once the registration is successful, you will be redirected to it.

5. Create the app Secret by navigating to Certificates & secrets à New client secret

  • Description: ‘Secret for ServertoServer Authentication for PowerPack AddOn’ or any name of your choice
  • Expires: You can set ‘Expires’ field according to your choice.
  • Note: If you set expiry of the secret to 1 year or 2 years, you will need to follow this procedure again after expiration.

6. Once the secret is added, it can be copied as follows:

Step 2: Create a user in CRM

1. Create a new Application User as follows:

  • Navigate to Advanced Settings>Settings>Security>Users>Change the view to "Application Users">Create a New User.
  • Provide Application User with the "System Administrator" Role.

2. Enter in the Application ID and click on Save. This will automatically populate the other locked fields.

Note: To get the Application ID, navigate to Azure Active directory and Select the App Registration you created in Part 1 > Overview > Copy Application (client) ID. 

3. Assign Security Roles to the user, as shown in the User Guide of the PowerPack (navigate to our website here > open the webpage for the specific PowerPack > Scroll down to bottom of page where it says User Guide and click View user guide.)

Part 3: Configuration of PowerPack to use ServertoServer Authentication

1. Navigate to the configuration Page of the PowerPack

2. Click on Authentication tab

3. For Authentication Method, select ServertoServer (Recommended)

4. Application Id: Navigate to the App Registration created in Part 1and copy Application (client) ID


5. App Secret: This is the ‘Value’ of the Secret created in Part 1:


6. Tenant Id: Directory (tenant) ID


7. Click Save.

You are all set! Happy Power Packing!

By Joe D365
Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

PowerObjects Recommends