Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

The name 'WebAuthenticationBroker' does not exist in the current context

$
0
0

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:

Web API Helper Code

The Web API Helper Code Nuget package dependency is installed

Web API Helper Code package

The error in a debug session is:

The name 'WebAuthenticationBroker' does not exist in the current context

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?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>