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

Make cache keys reproducible and auth code string optional #103

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

Ndiritu
Copy link
Contributor

@Ndiritu Ndiritu commented Nov 26, 2024

Changes hashing of the access token to create a cache-key to a reproducible algorithm. password_hash uses the bcrypt algorithm with its own built-in random salt making consecutive runs for the same token string produce different hashes.

Streamlining this to a reproducible algorithm reduces complexity and makes the in memory cache easier to extend due to better consistency.

context: #98

@Ndiritu Ndiritu self-assigned this Nov 26, 2024
@Ndiritu Ndiritu requested a review from a team as a code owner November 26, 2024 08:49
musale
musale previously approved these changes Nov 26, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for making the changes!

Copy link

sonarcloud bot commented Nov 27, 2024

@Ndiritu Ndiritu merged commit 0ba4e7c into main Nov 27, 2024
11 checks passed
@Ndiritu Ndiritu deleted the fix/delegated-token-hash branch November 27, 2024 12:34
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.

3 participants