Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore(). #4247

Merged
merged 3 commits into from
May 1, 2020

Conversation

brentschmaltz
Copy link
Contributor

Exposing GenericXmlSecurityKeyIdentitfierClause is needed for WsFederationSecurityBinding effort as WsTrustChannelSecurityTokenProvider needs to set this clause type.

Exposing CloneCore() is needed so the derived WsTrustClientCredentails.CloneCore() will be called.

@@ -5,6 +5,8 @@
// ------------------------------------------------------------------------------


using System.Xml;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't add using statements, we fully qualify everything.

@@ -227,4 +234,16 @@ public enum SecurityKeyType
AsymmetricKey,
BearerKey
}
public partial class GenericXmlSecurityKeyIdentifierClause : SecurityKeyIdentifierClause
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to declare that the Matches method has been overridden otherwise someone deriving from this class might get wrong behavior if calling base.Matches(). You should probably add the ReferenceXml property too otherwise you can't get the XmlElement back out if you want to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@brentschmaltz
Copy link
Contributor Author

@mconnew thanks !

@mconnew mconnew merged commit bf25ab9 into dotnet:master May 1, 2020
HongGit pushed a commit that referenced this pull request May 2, 2020
…). (#4247)

* Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore().
HongGit pushed a commit that referenced this pull request May 5, 2020
…). (#4247)

* Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore().
HongGit pushed a commit that referenced this pull request May 5, 2020
…). (#4247)

* Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore().
HongGit added a commit that referenced this pull request May 5, 2020
* Add support for WS2007HttpBinding plus some cleanup

* Expose LocalClientSecuritySettings.DetectReplays

* Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore(). (#4247)

* Exposing GenericXmlSecurityKeyIdentifierClause and virtual CloneCore().

Co-authored-by: Matt Connew <mconnew@microsoft.com>
Co-authored-by: Mike Rousos <MikeRou@Microsoft.com>
Co-authored-by: BrentSchmaltz <brentschmaltz@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants