Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

E-Commerce: 400 Error (AAD Authentication Failed) While Running Microsoft Dynamics 365 Online SDK

(2) ShareShare
ReportReport
Posted on by 14

Hi,

I am currently working with the Microsoft Dynamics 365 E-Commerce Online SDK. The following environment variables have been correctly set in the .env file:

PORT=4000  
MSDyn365_HOST=abc.com  
MSDyn365Commerce_BASEURL=XXXXXX  
MSDyn365Commerce_CHANNELID=XXXX  
MSDyn365Commerce_CATALOGID=XXXX  
MSDyn365Commerce_OUN=XXX  
MSDyn365Commerce_BASEIMAGEURL=XXX  

After running the yarn start command, the application redirects from https://localhost:4000/ to another page where I encounter a 400 error that appears to be related to AAD (Azure Active Directory) authentication failure which I feel.

Could you please guide me on the steps I need to follow to resolve this issue?


 
Categories:
  • S Gopi Krishna Profile Picture
    468 on at
    E-Commerce: 400 Error (AAD Authentication Failed) While Running Microsoft Dynamics 365 Online SDK
    Try using the dev tools to see which URI request is returning the 400 error

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 255 Moderator

#2
Siv Sagar Profile Picture

Siv Sagar 111 Super User 2025 Season 1

#3
Danny Bilodeau Profile Picture

Danny Bilodeau 105 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans