Hello,
I am working on Microsoft Graph in my powershell script and I am authenticating to Azure AD and then getting a token for Microsoft Graph to retrieve the required information. I am using Oauth 2.0 and Authorization Code Grant Flow for this scenario.
I don't have anything mentioned in my powershell script specifically for MFA, however my script initiates MFA authentication for this to work.
What my script does is that, it gives me a login window, where I need to enter my user account credentials and after that it triggers the MFA authentication window.
So I would like to know whether MFA is a mandatory requirement for Microsoft Graph to obtain a token to work or is it by design, that MFA is required for Microsoft Graph.
Can someone please help me to understand and confirm this?
Thanks



