Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Authentication Isse with Dynamics 365 App for Outlook (onPrem)

(0) ShareShare
ReportReport
Posted on by 25

I ran into a problem with our production CRM system, specifically with the Dynamics 365 app for Outlook. Our setup was working fine until recently.

Now when someone opens the Dynamics 365 panel in Outlook or OWA (any browser), the panel starts loading and after about a minute seems to time out and display an error ("cannot connect").

After checking all network related options I started debuggin the Javascript to try to figure out at which point exactly the problem occurs. I found the following:

  • at some early point in the login process of the app, the embedded iframe sends an XHttpRequest to the following URL: https://<crmserver>/XRMServices/2011/Organization.svc/web?SdkClientVersion=7.0.0000
  • the server replies with an http status 401 (access denied). This seems to be intentional
  • Some Javascript code now processes the reply, specifically the http header "WWW-Authenticate". From the code I can derive that the heaeder's value is expected to look something like this: "bearer authorization_uri=<URL>, resource_id=<some ID>"
  • But the server sends this header with an empty value
  • This leads to an error, which seems to not be handled... leading to the timeout.

Does anyone have an idea what the problem might be?

Like I said, everything worked fine until about 2 weeks ago. At the time we updated the certificates of the CRM server and the ADFS server and had all available Windows updates installed. No changes to the CRM beyond that. We're using CRM on premise, current version: 8.2.10.24. I'm aware that there are newer patches and we plan to install them.

  • Brandon Sambat Profile Picture
    on at
    RE: Authentication Isse with Dynamics 365 App for Outlook (onPrem)

    Thanks Dennis, I am glad that you resolved the issue.  Based on the information you provided I will sent this to our Support and Engineering teams as the documentation doesn't seem to include this scenario.  

  • Suggested answer
    Dennis G Profile Picture
    25 on at
    RE: Authentication Isse with Dynamics 365 App for Outlook (onPrem)

    Brandon, thanks for replying.

    We actually figured it out yesterday: for security reasons all SSL certificates company-wide had been exchanged recently. Apparently this procedure disables the OAuth interface of Dynamics 365. That's what caused the authentication issue I described.

  • Brandon Sambat Profile Picture
    on at
    RE: Authentication Isse with Dynamics 365 App for Outlook (onPrem)

    Hi Dennis, Thanks for using the Dynamics Communities.  Apologies for the issue you are experiencing.  This sounds like it is affecting multiple people.  I would suggest going thru the following to test the Internal and External IFD docs.microsoft.com/.../dn609803(v=crm.8).  

    If you check and verify the Internal and External links are working correctly, you should create a Support Request for Dynamics Support.  serviceshub.microsoft.com/.../contactsupport

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans