Hi All,
Back in the days when ADFS was running in IIS we where able to adjust the permissions on the ADFS virtual folders so that things like "Windows Authentication" and "Anonymous" could be adjusted on the "/ADFS/LS" folders etc.
We are having an issue which I have tracked down using the fiddler tool. Following this great article to help me I was able to find that there are permission issues with an ADFS Endpoint "adfs/oauth2"
[View:http://survivingcrm.com/2014/08/troubleshooting-crm-tablets-login-issues/]
Issue we are having is this:
We are getting a HTTP 401 on the ADFS/oauth2 folder when trying to access our CRM instance Externally via IFD. Apps like Dynamics CRM for Outlook 2016 and Dynamics CRM for Phone (iphone) are just not logging in to CRM when accessed Externally.
Our Claims + IFD was working perfectly in CRM 2015 and it seems to be working perfectly in CRM 2016 as we can login internally and externally without any issues via the website. It just seems that any login attempts that utilises the OAUTH endpoint when accessed externally are being knocked back due to permission. Issues with the OAUTH endpoint. When I VPN in it works perfectly.
Have tried the following:
1. Repaired CRM 2016 instance
2. Rebooted
3. Removed and Reinserted the Post installation ADFS commands to allow OAUTH applications as per Microsoft Article:
[View:https://technet.microsoft.com/en-us/library/hh699726.aspx]
4. Have also checked if we have any MEX Endpoint issues as per CRM 2011 / 2013 but that is not the case.
5. Have also re-ran the Claims and IFD setup through deployment manager.
6. Checked for ADFS logs on server and none are generated during login of the client.
Ideally what I would like to do is add "Windows Authentication" option to ADFS 3.0 Endpoint "ADFS/oauth2". I feel I have almost fixed the issue and just need some further expert assistance to push this one over the line.
Some have suggested disabling "Windows Authentication" on the "Intranet" section of the Relaying Party Trust but this is not an option for us as we have systems that required "Windows Authentication" when using CRM as its not possible to login using Forms on those systems.
Our environment is mixed "Forms Based Authentixation + Windows Authentication"
This was all working perfectly in CRM 2015 on Server 2012 R2.
Our in-place upgrade also went through very smoothly to CRM 2016 a couple of weeks ago.
Is anyone using CRM 2016 + Server 2012 R2 and having similar issues with OAUTH?
Would love to hear your expert thoughts.