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

Resolve line ending canonicalization issue on Windows #84

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

mehle
Copy link
Contributor

@mehle mehle commented Mar 26, 2024

Description

The 0.6.x versions of the client use the System.lineSeparator() method for line endings. On Windows systems, this method returns a CRLF, but Duo requires the signature input to be canonicalized with only a line feed. I reverted this behavior by directly inserting "\n" for line separators.

Motivation and Context

This allows the project to be built and run on Windows systems. Without this change, all invocations of the client from Windows returns an invalid signature error.

How Has This Been Tested?

Unit and function tested on Windows 10 and Ubuntu.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@AaronAtDuo AaronAtDuo merged commit 769ba20 into duosecurity:master Apr 9, 2024
3 checks passed
@AaronAtDuo
Copy link
Contributor

0.6.2 has been released with the fix. Thanks for the PR! And thanks for using Duo.

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