wcf icon indicating copy to clipboard operation
wcf copied to clipboard

.NET 6/7 Support for WriteFormPost

Open martintro opened this issue 2 years ago • 2 comments

Describe the bug In .NET Framework we have something like the following code:

...
RequestSecurityTokenResponse rstr = null;
channel.Issue(rst, out rstr)
var signIn = new SignInResponseMessage(uri, rstr, new WSFederationSerializer(), new WSTrustSerializationContext());
var formPost = signIn.WriteFormPost();
...

Would this be possible to do with the currently released nuget packages in .NET 6/7? If so, how? It starts with the missing out parameter for Issue/IssueAsync and I haven't found another way since the needed classes is private/internal.

Expected behavior To be able to get the response as a form post that can be written to a web browser control in a desktop client.

@mconnew helped me a lot during spring. I guess you might any idea about this as well? 😄

martintro avatar Aug 31 '23 15:08 martintro

@brentschmaltz can you please respond with what the modern equivalent way to do this?

This isn't WCF Client functionality.

HongGit avatar Aug 31 '23 22:08 HongGit

I thought that could be the case, but since the Issue method is located in this repo I thought I try here first. I hope @brentschmaltz has the answer 😄

martintro avatar Sep 01 '23 08:09 martintro