Skip to content

Conversation

mohammed90
Copy link

I ran into this when I was controlling the authentication methods on per connection basis. Effectively NoClientAuth ends up being true for all connections, regardless of the result ServerConfigCallback, because the authentication callbacks on the server are not configured for the lack of global authentication approach. This commit only disables client authentication when it's explicitly disabled or the authentication callkbacks on both *Server and ServerConfig are nil.

only disable client auth when it's explicitly disabled or the auth callkbacks on both `*Server` and `ServerConfig` are nil
@belak
Copy link
Collaborator

belak commented Nov 7, 2021

This seems like a good solution. I'll try to take a look and get this merged in the next few days.

@gustavosbarreto
Copy link
Collaborator

@belak PING

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