I'm wondering if there is a way from a Dynamics Portal page to securely call an Azure App Service with only allowing either authenticated users or only calls from the Dynamics Portal?
*This post is locked for comments
I'm wondering if there is a way from a Dynamics Portal page to securely call an Azure App Service with only allowing either authenticated users or only calls from the Dynamics Portal?
*This post is locked for comments
To restrict usage of Azure App Service to just some IP Addresses you can use : docs.microsoft.com/.../app-service-ip-restrictions
If you use to authenticate your users with Azure AD B2C you can limit access to the Azure App Service to specific users from the Portal using msftplayground.com/.../restricting-access-to-your-azure-web-application (second section)
As well if you are relying on Azure AD B2C you can build really secure interaction with portal companion application
Thank you for your response.
This is more what I'm looking for:
Dynamics Portal <- (allowed) -> Azure App Service <- (not allowed) -> Public
You have asked several questions:
1) Calling from the portal page azure app service allowing for authenticated users:
Either way access to the specific page you can easily grant just to specific web-role including auth users role using Web page access control rules - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/webpage-access-control
From that page, you can call app service with Javascript, and not-auth users will be returned back to the Login screen.
2) Another way to call app services is from code behind in .NET. You can read PoC here - https://uds.systems/2017/03/20/how-to-run-custom-code-in-dynamics-365-portal/
3) Allow calls from Dynamics Portal (you need to limit Azure App Service to accept calls only from specified IP range. Hopefully MS didn't change it often)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156