Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Is it possible to authenticate odata source for virtual entity?

Posted on by 515

Hello,

Latest dynamics 365 version allows us to create virtual entity to interact with external systems which is very well explained here - https://blogs.technet.microsoft.com/lystavlen/2017/09/08/virtual-entities/

 but I am wondering about how can we authenticate data source? any one has tried it?

Regards,

Ashish

*This post is locked for comments

  • ZiaUddin Profile Picture
    ZiaUddin 15 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    Hello 

    I have been using the static API Key method for the last X number of years - is there a solution to authenticate the odata source using the MS identity platform in azure app service, are we still stuck on this issue where the model driven application cannot provide the necessary authentication to the app service (in which odata source his hosted). 

  • Suggested answer
    Farzad Profile Picture
    Farzad 15 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    depends on the security of your oData  server, in most scenario you can't do it and it's useless ! e.g. If you try to connect to another dynamic 365 instance's odata feed , ten you need to generate a "Bear Token" from ADFS.

    The only way that it can work is when you have an oData server which has hardcoded (static) ApiKey.

    in that case when you creating your Data  PRovider , just scroll down and put a http header and put  your ApiKey there.

    in my opinion, microsoft should add  some extra facilities such as:

    * defining username & password

    * a way of use secret key and connection to something like identity server

    * a way if transferring the secuity of the user in run time when your using 2 different dynamic 365 as source and destination.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to authenticate odata source for virtual entity?

    Hi Ashish,

    Were you able to authenticate?

    Thanks,

    Abu Sidhique

  • Suggested answer
    Srujan K Profile Picture
    Srujan K 317 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    It is not possible to authenticate , But you can authorise . Check the  article - community.dynamics.com/.../implementing-authorization-in-odata-v4-source-api-using-query-string-parameters-for-d365-virtual-entities for implementing authorization

  • Micchael Profile Picture
    Micchael 390 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    Hi, in case you need to authenticated u have to create a custom Data Provider. Have a look to the article:

    docs.microsoft.com/.../custom-ve-data-providers

    https://community.dynamics.com/crm/b/jasonlattimersblog/archive/2017/12/18/creating-a-custom-virtual-entity-data-provider 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to authenticate odata source for virtual entity?

    Hi Ashish, 

    Were you able to authenticate the data source? I am trying similar stuff where I need to integrate two MS Dynamics instances.

    Thanks in advance!

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    There is a place to configure your oData source and credentials if am not wrong..

    Inside Dynamics 365, go to Settings Ã  Administration click on Virtual Entity Data Sources.

    For more info, pls refer the link below.

    [View:https://community.dynamics.com/crm/b/nishantranaweblog/archive/2017/10/13/configuring-virtual-entity-in-dynamics-365]

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Is it possible to authenticate odata source for virtual entity?

    Hi Ashish

     there are parameters there, and I'm guessing you should be able to pass those to the data source through the query string.. but, other than that, I'm not sure there is any other way to implement authentication.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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