Archive
The reply address does not match the configured – Azure ADAL and Dynamics 365
I was building a standalone HTML page which retrieves the Account records from Dynamics 365 and show them in a table.
As a prerequisite, I registered the application in Azure Active Directory’s ‘App registrations’.
Also configured the Application details in my HTML page
var organizationURI = “https://{orgname}.crm.dynamics.com”; //The URL to connect to CRM (online)
var tenant = “{Azure Tenant Name}.onmicrosoft.com”; //The name of the Azure AD organization you use
var clientId = “{Application ID}”; //The ApplicationId you got when you registered the application
var pageUrl = “http://localhost”; //The URL of your HTML page in your development environment.
After all the configuration, I was getting below error during the authentication
The reply address “http://…..” does not match the reply address configured for the application.
Reason and Fix:
- There must be a ‘Return URL’ configured with your application URL (i.e., HTML url in my case).
- To configure the ‘Return URL’
- Connect to ‘Azure Active Directory’ –> App registrations
- Select your configured Application
- Under ‘Settings’, click on ‘Reply URLs’
- Add your application URL (i.e., HTML url in my case)
- Rerun the Application and you should be able to connect and get Accounts
Refer this MSDN article for step by step to connect via ADAL
🙂
Stats
- 1,555,880 hits
Tweets
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 16 hours ago
- RT @ravichada: 🎥 The demo video is ready now. Do check out the Dataverse Security Roles risk assessment tool in action. Leave a comment or… 16 hours ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 16 hours ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 2 weeks ago
- New blog post : Dataverse solution import error | Environment variable value cannot be an empty string rajeevpentyala.com/2023/01/05/dat… 3 weeks ago
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Power Automate Flows | 'Callback Registration Expander' System Jobs stuck at 'Waiting For Resources'
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- [Step by Step] Postman tool with Microsoft Dataverse Web API
- God Mode - Level Up - Dynamics 365 Chrome Extension
- [Step by Step] Dataverse | Plugins | Using Dependent Assemblies
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Associate/Disassociate plugin messages in CRM
- Power Apps - 'Environment Variables' and their usage in Canvas Apps