Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

User CRM dynamics 365 domain (dns) as App Service Custom domain

Posted on by 15

Hello,

I have a requirement to call external web api from crm dynamics web ressource. The Web API uses Azure AD authentication an the same tenant as crm dynamics.

I am encountering some issue with the acquireToken. The user might be connected to CRM Dynamics but not connected to his account. So i would like to use CRM dynamics user session to authenticate to the Web API using SSO mechanism.

I use Adal.js within my web resources and i call the method acquireToken. In some cases i get a message login required. 

According to the this documentation:

Applications on different domain

When applications are hosted on different domains, the tokens cached on domain A cannot be accessed by ADAL.js in domain B.

This means that when users signed in on domain A navigate to an application on domain B, they will be redirected to the AAD page. Since Azure AD still has the user session cookie, the user will not have to re-enter the credentials. If the same user has multiple user accounts in session with Azure AD, the user will have a chance to pick the relevant account to login with.

I had an idea and i am not sure if it's applicable but it's to add custom domain on my App Service that uses CRM portal dynamics dns. If this is applicable can anyone tell me how to verify domain ownership within crm dynamics portal ? (i know the crm dynamics instance belog to microsoft but do we have some control on dynamics organization portal ?)

pastedimage1573996278181v1.png

Best regards,

Emad

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans