Is the October 2024 MFA enforcement applied on MSAL.NET accessing the Microsoft Graph API?

Robin Bouwmeester 21 Reputation points
2024-09-10T15:39:09.63+00:00

As mentioned on many channels Microsoft want to enforce MFA on administration portals, Azure CLI, Azure PowerShell, Azure Mobile app and IaC tools.

https://learn.microsoft.com/en-us/entra/identity/authentication/concept-mandatory-multifactor-authentication

Our app is using the non-interactive ROPC authentication flow https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/username-password-authentication using MSAL.NET to manage group membership in Entra ID (Azure AD) and manage SharePoint online.

We are using the following authentication method:

PublicClientApplication.AcquireTokenByUsernamePassword(scopes, userPrincipalName, securePassword)
										   .ExecuteAsync().Result;

The userPrinciapName/password are serviceaccount users (not end-users).

We are planning to migrate to a ConfidentialClient and use the Client credentials flow https://learn.microsoft.com/en-us/entra/identity-platform/msal-authentication-flows#client-credentials, but we cannot update all of our customers before October 2024.

Does the MFA requirement also applies for custom apps which are using the Microsoft Graph API? They are not listed in the Microsoft articles and the article does not state that these kind of apps are affected as well or not.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,888 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,452 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 104.3K Reputation points MVP
    2024-09-10T16:20:23.84+00:00

    No. Only the list of (first-party) apps in that article will be affected come October. Microsoft will likely expand these restrictions to cover other apps, including custom ones, but that would be in the future. For now, you should be safe.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.