web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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
I have the same question (0)
  • Ali .NET Profile Picture
    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
    84,331 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 134

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 106

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans