The Obtain the redirect URI section tells:
execute the following line of code in a debug session
string redirectUri = WebAuthenticationBroker.GetCurrentApplicationCallbackUri().ToString();
for getting the redirect URI.
- We've got the Web API Helper Code:
The Web API Helper Code Nuget package dependency is installed
The error in a debug session is:
The name 'WebAuthenticationBroker' does not exist in the current context
Found that it can be found in the Windows.Security.Authentication.Web namespace. Upon investigating the related thread, found that Microsoft.Preview.WindowsAzure.ActiveDirectory.Authentication & Microsoft.IdentityModel.Clients.ActiveDirectory packages are required. The latter requires .NET core, hence setting up the same.
Have anyone been successful in getting the Dynamics CRM Redirect URI?