web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

D365FO On-Prem: Why D365FO API Call is returning an HTML of a Sign in Page instead of Data?

(0) ShareShare
ReportReport
Posted on by 1,036
Hi dear community !
 
I have a .NET application that is integrated with D365 FO deployed on-prem.
Previously, I had an issue to get the access token from ADFS because MFA was enabled.
Now after we modified the MFA groups on ADFS into 2 groups:
1st group that has the MFA policy enabled
2nd group that has 1 user with no MFA policy (because I want to use this user for the integration)
 
After I did the above modification, I was able to get the access token from ADFS.
But now when I try to call a D365 FO API using this token, I get an HTML code as a response that represents a sign in page asking for a user name and password and also having a hyper link that says /Azure Multi-Factor Authentication/.
 
In D365 FO > System Administration > Set-up > Azure Active Directory Application (Microsoft Entra ID),
I added a new record with the client ID I got from ADFS application registration (the same client ID I'm getting the token with) and I selected the user that is inside the ADFS group that has MFA disabled and has System Admin role in D365.
 
I heard that MFA is not supported for on-prem deployments of D365 FO... But the problem is that the MFA is a requirement from the security team...and i'm unable to do my integration.
Do we really need to turn off the MFA?
Or I do need to add more parameters to the API calls?
 
Please note that the application is working fine successfully in environments that does not have the MFA enabled.
 
Any advice is appreciated.
 
Thanks in advance !
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 692 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 558 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 364 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans