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

Implement Key Generation Command for Enhanced Security #54

Merged
merged 4 commits into from
May 14, 2024

Conversation

NoahNxT
Copy link
Contributor

@NoahNxT NoahNxT commented May 12, 2024

In this pull request, I'm replicating the feature set of https://github.com/tymondesigns/jwt-auth, which enables users to generate their key/secret using a command. This addition encourages the adoption of more secure keys, in line with industry best practices for security. Additionally, users still retain the option to use a self-chosen key if desired.

@NoahNxT NoahNxT changed the title Add a command to generate the URL_SIGNER_SIGNATURE_KEY Implement Key Generation Command for Enhanced Security May 12, 2024
@freekmurze
Copy link
Member

Nice! Could you also add tests for that command?

De tests on Laravel 9 are failing. Feel free to drop support for that Laravel version.

@NoahNxT
Copy link
Contributor Author

NoahNxT commented May 13, 2024

I'll add some tests and drop the support of L9 later today.

@NoahNxT
Copy link
Contributor Author

NoahNxT commented May 13, 2024

@freekmurze Added some tests, been struggling a bit with the usage of a .env in the test suite.
I found a working solution, I would have liked to use the league/flysystem-vfs but but it looks like it wasn't maintained anymore.

If you have any comments, let me know!

@freekmurze freekmurze merged commit 5917499 into spatie:main May 14, 2024
6 checks passed
@freekmurze
Copy link
Member

Thank you!

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