Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Server side (Custom module?) to access value of CRMOWinAuth cookie?

(0) ShareShare
ReportReport
Posted on by 5

We're trying to access a D365 CRM instance via a custom URL, i.e. using crm.sampleurl.com to access samplesite.crm11.dynamics.com. The reason for this is that we have a software proxy to run under the custom URL that will allow us to provide a multilingual interface for D365 (www.linguaskin.com).

We have a working solution, but it requires us to run the whole authentication process through our proxy so that we can control the final redirect to the D365 URL, i.e. to direct it to our custom URL. However, this feels like a fragile approach as any untested route through the authentication process, or any changes in the future could break it.

So, we have a simpler solution - create an app in the Main (list of apps) home page for D365, and when selected automatically run javascript to redirect the user to the custom URL. This works.

However, it causes the user to go through the login process, and via our proxied authentication process, since the login/auth cookies for *.crm11.dynamics.com aren't available under the new domain.

In manual tests we've extracted the value of the CRMOWinAuth cookie (using Fiddler), added it into our Javascript redirect (as part of the querystring, our proxy them does a redirect/set-cookie to get this into the browser for the domain) and this works.

But, we can't directly get the CRMOWinAuth cookie value in our javascript as its set to httponly.

Is there a way to get this value so that it can be accesses by Javascript? For instance, is it possible to have a user interface field on a dashboard that triggers some custom code/module (apologies for wrong terminology!) to render the CRMOWinAuth value on the response returned to the browser (so that Javascript can extract it)?

Or, is there another way that anyone can suggest on how we can get this redirect to another domain name whilst maintaining the authentication context for the user?

  • restassured Profile Picture
    restassured 60 on at
    RE: Server side (Custom module?) to access value of CRMOWinAuth cookie?

    RSDraig have you found any way to find this value?

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