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

Server 500 error when submitting an unencoded utf-8 password string #60

Open
zfi opened this issue May 15, 2019 · 1 comment
Open

Server 500 error when submitting an unencoded utf-8 password string #60

zfi opened this issue May 15, 2019 · 1 comment
Assignees

Comments

@zfi
Copy link
Contributor

zfi commented May 15, 2019

Calling the /authentication/local endpoint with a password that is UTF-8 encoded causes an unhandled server failure. The endpoint is expecting a base-64 encoded string but is not reacting well to a UTF-8 encoded password string.

@zfi zfi self-assigned this May 15, 2019
@zfi
Copy link
Contributor Author

zfi commented May 15, 2019

The sha256 hash function requires a byte array in Python3 and we were still providing a string. This triggered the TypeError exception that looked a lot like an encoding issue we see while transporting data on HTTPS.

The fix to this is to rework the parameters to the hash encoding method to provide a byte array instead of a string.

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

No branches or pull requests

1 participant