none
WSTrust,STS support on .Net Core RRS feed

  • Question

  • Hello!

    There is any support for WSTrust STS on .Net Core ?

    I want to do this in .net core:

    else { binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; ep = new EndpointAddress("https://abc.com/adfs/services/trust/13/usernamemixed"); } factory = new WSTrustChannelFactory(binding, ep); factory.TrustVersion = TrustVersion.WSTrust13; factory.Credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials; var rst = new RequestSecurityToken { RequestType = RequestTypes.Issue, AppliesTo = new EndpointReference("urn:adfsmonitor"), KeyType = KeyTypes.Bearer, }; IWSTrustChannelContract channel = factory.CreateChannel(); GenericXmlSecurityToken genericToken = channel.Issue(rst) as GenericXmlSecurityToken; return genericToken.TokenXml.InnerXml.ToString();

    Thanks in advance



    • Edited by Mahefa M Wednesday, March 6, 2019 9:34 AM
    Wednesday, March 6, 2019 9:31 AM

All replies

  • Hi Mahefa M,

    Thank you for posting here.

    Based on my test, you could install System.ServiceModel.Security from NuGet of .net Core application.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 7, 2019 7:58 AM
    Moderator