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

Announcements

No record found.

News and Announcements icon
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)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

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

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

  • Ali .NET Profile Picture
    on at

    Refer to this article published by Brian please

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans