Skip to main content

Notifications

Announcements

No record found.

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 884
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 !

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans