Hello
I have been trying to get the Outlook App for 365 working with our on prem deployment without much success.
I believe that I have everything setup correctly as per all the other posts and troubleshooting steps I have found.
We are running Dynamics 365 9.2 On Prem. It is configured for IFD and logging on successfully through ADFS from various web browsers.
ADFS is Server 2019
All users, regardless of security roles or Windows OS versions (10 and 11) are suffering the same problem.
Exchange is Online 365, Office is Office 365. The Outlook app is the new version Dynamics pushes out, there is no manual installer or settings like in the previous versions of the App.
Now, this is an on prem deployment only, there is no physical access to the Dynamics or the ADFS servers from the outside, but I am only trying to get this to work internally anyway. I thought I should mention it incase there is some requirement where it needs to talk to something on the internet. As mentioned though, it is successfully configured as IFD with proper SSL certs and works fine logging in from browsers internally.
I have tried this many times and each time I make a change to ADFS or the CRM server to attempt to fix this, I get a different error from Outlook, so I know my changes are taking effect. The current error I am getting is continual forms based login prompts with never successfully authenticating. If I cancel the login prompts (there are often a number of prompts on top of each other) the error page in Outlook shows the standard:
We're sorry
Something went wrong during sign-in. Please try again. If the problem persists, contact your system administrator.
with:
Error: Failed to authenticate user
Trace: Error: Failed to authenticate user at new t (IFD_URL/.../shim.js at[....]
I can see an error in the event logs on the CRM server that comes from my workstation's IP at the time I attempt to log in. It is an ASP.NET warning message Event Code 3005:
Event message: An unhandled exception has occurred.
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-133009045811111073
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Dynamics 365\CRMWeb\
Exception information:
Exception type: XmlException
Exception message: The empty namespace requires a null or empty prefix. Line 3, position 28.
Request information:
Request URL: IFD-URL:443/default.aspx
Request path: /default.aspx
User host address: 10.0.0.214
User: [This is a blank line, there is no user info contained in it]
Is authenticated: False
Authentication Type: [This too is blank]
Thread account name: domain\service account
The same issue occurs if I use the Outlook webmail client.
If I had to guess, I would say the ADFS server is not passing the proper credentials (or any) to the CRM server from Outlook, but I can't figure out what setting I missed. Any guidance would be appreciated.
I tried the Grant-AdfsApplicationPermission command
I set Set-ADFSProperties–ExtendedProtectionTokenCheck "None" to allow Windows 11 Edge browsers to connect (there is no "Enable Protected Mode" option in W11 IE settings, so this gets around that)
I have set the properties on the webserver folders and files: XRMServices->2011, Nga, AppWebServices
OAuth claims settings is enabled
The SPNs are correct
I have tried several iterations of the redirect URL as detailed in other posts, but none seem to make a difference. It is currently set to IFD-URL/.../code_auth.aspx. And I can verify this page exists, I can view it in a browser when I add additional parameters that Outlook adds.
Thanks in advance for any help.