dotnet / wcf

This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.
MIT License
1.72k stars 558 forks source link

Migrating Durable Issued Token Provider to .net standard2.0 #5647

Open JoseAngelSalmeronMorote opened 2 months ago

JoseAngelSalmeronMorote commented 2 months ago

Describe the bug I have a .net framework 4.8 project with code coming from Durable Issued Token Provider sample referencing System.ServiceModel 4.0.0.0.

After upgrading this project to .net standard2.0 using VS Upgrade tool and fixing some incompatible code im stuck on migrating the functionality provided from Durable Issued Token Provider.

I've also tried to multi-target the project, <TargetFrameworks>net6.0;net48</TargetFrameworks>, without luck as these classes:

WSSecurityTokenSerializer and IssuedSecurityTokenProvider are no longer available in .net standard2.0, .net6 or .net8 and could not find any equivalent class which achieve the same functionality.

Is there any workaround for this process? How could i migrate this functionality about issued security tokens to .net standard or .net6/.net8 ?

To Reproduce Steps to reproduce the behavior:

  1. .NET Framework 4.8 project including Durable Issued Token Provider sample.
  2. Migrating this project to .net standard using VS Upgrade tool
  3. Build fails with next error: DurableIssuedSecurityTokenProvider.cs(14,9,14,36): error CS0246: The type or namespace name 'IssuedSecurityTokenProvider' could not be found (are you missing a using directive or an assembly reference?)

Expected behavior Some workaround to migrate this functionality.