From 253384eee5cda274b972caaade8052b53d2ebbc6 Mon Sep 17 00:00:00 2001 From: Matt Connew Date: Thu, 6 Jul 2023 16:51:40 -0700 Subject: [PATCH] Make Federation package generate documentation file. Fix some doc formatting bugs --- .../src/System.ServiceModel.Federation.csproj | 1 + .../ServiceModel/Federation/IWSTrustChannelContract.cs | 1 - .../src/System/ServiceModel/Federation/WSTrustChannel.cs | 4 ++-- .../System/ServiceModel/Federation/WSTrustUtilities.cs | 3 +++ .../ServiceModel/Federation/WsFederationHttpBinding.cs | 4 ++-- .../Federation/WsTrustChannelClientCredentials.cs | 4 ++-- .../ServiceModel/Federation/WsTrustTokenParameters.cs | 8 +++++--- 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/System.ServiceModel.Federation/src/System.ServiceModel.Federation.csproj b/src/System.ServiceModel.Federation/src/System.ServiceModel.Federation.csproj index 3103de51089..4df54836041 100644 --- a/src/System.ServiceModel.Federation/src/System.ServiceModel.Federation.csproj +++ b/src/System.ServiceModel.Federation/src/System.ServiceModel.Federation.csproj @@ -8,6 +8,7 @@ $(Ship_WcfPackages) net6.0 Provides the types that allow security communications with SOAP messages using WS-Federation. + true diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/IWSTrustChannelContract.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/IWSTrustChannelContract.cs index e012e0dd3ae..b01df3648c5 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/IWSTrustChannelContract.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/IWSTrustChannelContract.cs @@ -19,7 +19,6 @@ public interface IWSTrustChannelContract /// /// The to send to the STS. /// A issued by the STS. - /// [OperationContract(Name = "Issue", Action = "*", ReplyAction = "*")] Task IssueAsync(WsTrustRequest request); } diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustChannel.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustChannel.cs index f266a4f5091..e334ef1d4a7 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustChannel.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustChannel.cs @@ -81,7 +81,7 @@ protected virtual Message CreateRequest(WsTrustRequest trustRequest) /// /// Gets the WS-Addressing SOAP action that corresponds to the .RequestType and .WsTrustVersion. /// - /// The to generate the WS-Addressing action. + /// The to generate the WS-Addressing action. /// The WS-Addressing action to use. public static string GetRequestAction(WsTrustRequest trustRequest) { @@ -112,7 +112,7 @@ public static string GetRequestAction(WsTrustRequest trustRequest) /// /// Gets the to use when serializing the . /// - /// The that will be serialized. + /// The that will be serialized. /// The for the . private WsSerializationContext GetSerializationContext(WsTrustRequest trustRequest) { diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustUtilities.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustUtilities.cs index a301f0f33d4..25226a9e2c8 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustUtilities.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WSTrustUtilities.cs @@ -20,6 +20,7 @@ namespace System.ServiceModel.Federation /// internal static class WSTrustUtilities { + /// /// Get a proof token from a WsTrust request/response pair based on section 4.4.3 of the WS-Trust 1.3 spec. /// How the proof token is retrieved depends on whether the requester or issuer provide key material: /// Requester | Issuer | Results @@ -32,6 +33,8 @@ internal static class WSTrustUtilities /// /// The WS-Trust request (RST). /// The WS-Trust response (RSTR). + /// The serialization context. + /// The algorithm suite. /// The proof token or null if there is no proof token. internal static BinarySecretSecurityToken GetProofToken(WsTrustRequest request, Microsoft.IdentityModel.Protocols.WsTrust.RequestSecurityTokenResponse response, WsSerializationContext serializationContext, SecurityAlgorithmSuite algorithmSuite) { diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsFederationHttpBinding.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsFederationHttpBinding.cs index 1049a5e185b..ba6d6c30b89 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsFederationHttpBinding.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsFederationHttpBinding.cs @@ -45,8 +45,8 @@ public WSTrustTokenParameters WSTrustTokenParameters /// /// a for the RelyingParty channel. /// Creates a new and adds to the appropriate EndpointSupportingTokenParameters (Endorsing or Signed). - /// Sets: == . - /// Sets: == true. + /// Sets: == . + /// Sets: == true. protected override SecurityBindingElement CreateMessageSecurity() { WSTrustTokenParameters.RequireDerivedKeys = false; diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustChannelClientCredentials.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustChannelClientCredentials.cs index 3661fb77e61..838bade5107 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustChannelClientCredentials.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustChannelClientCredentials.cs @@ -36,7 +36,7 @@ protected WSTrustChannelClientCredentials(WSTrustChannelClientCredentials other) /// Crates an instance of with specifying a /// /// The from this parameter will be used to - /// create the in the case the in the channel are not a + /// create the in the case the in the channel are not a public WSTrustChannelClientCredentials(ClientCredentials clientCredentials) : base(clientCredentials) { @@ -62,7 +62,7 @@ protected override ClientCredentials CloneCore() /// /// The is responsible to return the to obtain the issued token. /// If was passed to the constructor, then that will be used to - /// create the in the case the in the channel are not a + /// create the in the case the in the channel are not a /// An instance of . public override SecurityTokenManager CreateSecurityTokenManager() { diff --git a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustTokenParameters.cs b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustTokenParameters.cs index 0420ffa3a6f..14b34f4fb7a 100644 --- a/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustTokenParameters.cs +++ b/src/System.ServiceModel.Federation/src/System/ServiceModel/Federation/WsTrustTokenParameters.cs @@ -31,10 +31,12 @@ public class WSTrustTokenParameters : IssuedSecurityTokenParameters private int _issuedTokenRenewalThresholdPercentage = DefaultIssuedTokenRenewalThresholdPercentage; /// - /// Instantiates a that describe the parameters for a WSTrust request. + /// Instantiates a that describe the parameters for a WSTrust request. /// - /// == . - /// == + /// + /// Sets: == . + /// Sets: == + /// Sets: == public WSTrustTokenParameters() { KeyType = DefaultSecurityKeyType;