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

Consider result of ServerConfigCallback when setting NoClientAuth #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

3 participants