Skip to content

Conversation

@aik-jahoda
Copy link
Contributor

Summary

Collect all changes from #3916 related to SslServerAuthenticationOptions

@dotnet-bot dotnet-bot added this to the June 2020 milestone Jun 11, 2020
@aik-jahoda aik-jahoda requested review from ManickaP and mairaw June 11, 2020 14:41
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</summary>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can skip the <see cref="T:System.Boolean" /> here.

a certificate for authentication --> an authentication certificate maybe???

if no certificate is provided, the server still accepts the connection request. really? I'm looking into some of ours code using this property and it doesn't seem to me like that. But I might be reading the code wrong, or looking at the wrong place, so feel free to disregard this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Gets or sets a <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" /> delegate responsible for validating the certificate supplied by the remote party.</summary>
Copy link
Member

Choose a reason for hiding this comment

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

The callback is used as certificate validation override, i.e. the user can provide their own logic to validate the certificate instead of using the default behavior, see: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Net.Security/src/System/Net/Security/SecureChannel.cs#L1007.

It will still work if nothing is provided.

@ManickaP ManickaP requested a review from wfurt June 12, 2020 10:04
@ManickaP
Copy link
Member

I tried to look into usages of this class to add deeper documentation for the properties. Though, it might not be something desired here since it's API reference docs and also the class might potentially be used in different scenarios/contexts than SslStream. So please take my comments with that in mind.

aik-jahoda pushed a commit to aik-jahoda/dotnet-api-docs that referenced this pull request Jun 15, 2020
aik-jahoda pushed a commit that referenced this pull request Jun 16, 2020
* SslApplicationProtocol: update documention

* Update xml/System.Net.Security/SslApplicationProtocol.xml

Co-authored-by: Maira Wenzel <mairaw@microsoft.com>

* Update xml/System.Net.Security/SslApplicationProtocol.xml

Co-authored-by: Maira Wenzel <mairaw@microsoft.com>

* Fix see reference

* Add @ManickaP comments raised in #4367

* Remove space from remarks and

Co-authored-by: Jan Jahoda <jajahoda@.microsoft.com>
Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
@aik-jahoda aik-jahoda requested a review from ManickaP June 17, 2020 12:01
Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

There's a typo in the type's summary: a values. Indefinite article cannot be used with plural nouns (https://en.wiktionary.org/wiki/indefinite_article: in the plural, an indefinite article isn't used at all.)
I think this should read: a value, singular.
I know it's not part of your changes, but could this be fixed either here or in a separate PR.

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

Mostly language NITs, otherwise LGTM, thanks.

@aik-jahoda aik-jahoda merged commit 7459a14 into dotnet:master Jun 18, 2020
@aik-jahoda aik-jahoda deleted the jajahoda/SslServerAuthenticationOptions branch June 18, 2020 11:27
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.

3 participants