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

Upgraded the project to .Net 8 #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rohitthimaya
Copy link

image
image

@ttu
Copy link
Owner

ttu commented Dec 1, 2024

Thanks for continuing the upgrade. I added the .NET6 commit to the issue where you can check which files should be changed. But as this build shows, there might be other fixes to be made.

System.ArgumentOutOfRangeException : IDX10720: Unable to create KeyedHashAlgorithm for algorithm 'HS256', the key size must be greater than: '256' bits, key has '216' bits. (Parameter 'keyBytes')

Apparently test fails, because in .NET 8, there are stricter security requirements for JWT token signing keys. The current secret key is too short to meet these requirements.

private static string _secretKey = "mysupersecret_secretkey!123";

You can try to change it to e.g. and after that tests should pass.

private static string _secretKey = "mysupersecret_secretkey!123_longer_key_to_meet_256_bits";

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