How to migrate power page from ADAL to MSAL

Esmaeel Rahimi 0 Reputation points
2024-11-20T09:11:29.8066667+00:00

We have a power page that uses azure b2c for authentication and authorization. We have identified that our Dynamics solution uses the Active Directory Authentication Library (known as ADAL), a code library for authentication and authorization against Entra ID. ADAL has been discontinued by Microsoft and has not been supported since June 2023, nor are any security patches being released for ADAL. As a result, solutions that use ADAL pose a security risk.

We have tried to migrate urls in Azure B2C: User's image

User's image

but this is the error we get when we try to sign-inn after migration:

User's image

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,934 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 29,941 Reputation points Microsoft Employee
    2024-11-21T07:57:43.21+00:00

    Hi @Esmaeel Rahimi ,

    Thanks for reaching out.

    Your understanding is right.

    You're on the right track by identifying that ADAL is deprecated and must be replaced with Microsoft's newer Microsoft Authentication Library (MSAL) for handling authentication and authorization with Entra ID.

    You need to replace ADAL reference libraries with MSAL libraries.

    You don't need to migrate your B2C URLs to MSAL. MSAL is a library for handling authentication and authorization, while B2C is a cloud identity management solution. However, you may need to update your B2C policies to work with MSAL instead of ADAL.

    Reference - https://learn.microsoft.com/en-us/entra/msal/dotnet/how-to/msal-net-migrationHope this will help.

    Thanks,

    Shweta

    Please "Accept the answer" if above answer helps you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.