Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Conversation

jdmwood
Copy link

@jdmwood jdmwood commented Nov 1, 2018

Potential fix for #14

This isn't ideal because it assumes some inner workings of how DOT works and also requires an extra database call to fetch the token.

Also, I actually think it's better to not even allow users to specify the username in the POST and instead just insert it automatically into the JWT payload if found. What do you think? If you agree I'll make that change too.

Copy link

@rafa-munoz rafa-munoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this security issue and the fix! I will deliver a new version then.

@rafa-munoz rafa-munoz merged commit a54216b into humanitec:master Nov 8, 2018
@jdmwood jdmwood deleted the secure_username branch November 8, 2018 14:26
@jdmwood
Copy link
Author

jdmwood commented Nov 8, 2018

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants