简体   繁体   中英

SPA/CORS connection to Dynamics 365/CRM

I followed this manual Use OAuth with Cross-Origin Resource Sharing to connect a Single Page Application to Dynamics 365

My questions are:

  1. Is it possible to make it work WITHOUT Azure?
  2. Does this concept even have some real-life utilization (with our without Azure)? Do you know some?

According to my knowledge:

  • Dynamics 365 (internal) users should connect into Dynamics 365 UI. Then, they can use custom JS application inside of Dynamics 365 without need of CORS.
  • External users (thru portals, extranets etc.) use server-side web application (eg .NET). These users don't have Dynamics 365 credentials. The credentials (one pair) are securely stored on the server side.

Therefore, it seems it is not usable for external users (they don't have credentials; credentials cannot be stored securely) and it is useless for internal users (they can use common UI).

  1. Is that correct?

responding to your first question, No, it's only possible with Azure Active Directory, all microsoft online products are licensed and accessed through azure AD, you can extend it to your local AD and use it across web and on premises, either way you need azure

for your second question, more than a SPA scenario, extend Dynamics 365 to other web apps using non-microsoft tech or just client-side programming it's a business necessity, you could create a portal for non-dynamics user connected to dynamics 365 and execute already proof business logic

hope it helps regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM