Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Ws-Trust authentication failure

(0) ShareShare
ReportReport
Posted on by 190

Hi,

We have dynamics 365 portal developed using "xRM Portals Community Edition" which is working fine, however, the same code does not work for newly created dynamics 365 instances. The following error is thrown

An error occurred when processing the security tokens in the message:You are using Ws-Trust authentication which has been deprecated and no longer supported in your environment. Please use OAuth2.0 authentication.

We have changed the connection string to use OAuth as mentioned below but the problem perisit.

AuthType=OAuth;
 Username=jsmith;
 Password=passcode;
 Url=https://xxx.crm4.dynamics.com;
 AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;
 RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;
 TokenCacheStorePath=c:\MyTokenCache;
 LoginPrompt=Auto"

How to fix this?

regards
Venkatesh
  • Ali .NET Profile Picture
    Ali .NET on at
    RE: Ws-Trust authentication failure

    Refer to this article published by Brian please

    How to fix Office 365 WS-Trust Authentication Deprecation for Dataverse and Dynamics 365 Client Applications

  • a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Ws-Trust authentication failure

    Hello,

    Have you updated references to the latest version of the SDK?

    Have you tried to use "App User" and "ClientSecret" authentication instead?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans