Fix nonce signing when auth_required is omitted#1109
Conversation
Servers with no_auth_user defined omit auth_required from INFO but still send a nonce. NKey-configured clients must respond with a signature or the server rejects the connection.
|
Claude finished @mtmk's task in 2m 3s —— View job PR Review: Fix nonce signing when auth_required is omitted
SummaryThe fix is correct, minimal, and well-targeted. No significant issues found. AnalysisRoot cause confirmed
Change is safe
Test The new Config file
No issues foundThis is a clean, one-line logic fix backed by a focused integration test, consistent with how the Go and Python clients handle the same case. |
When the server is configured with
no_auth_user, it omitsauth_requiredfrom the INFO message but still sends anonce. The client was gating signature generation onAuthRequired: true, so an NKey-configured client would sendnkeywithoutsigand the server would reject the connection withAuthorization Violation. Other clients (Go, Python) sign whenever a nonce is present; this aligns the .NET client with that behaviour.Fixes #1087