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

feat: Allow for users without password #1715

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

rhbvkleef
Copy link
Contributor

This commit updates the security code to allow for users to be configured in security.json without a password value. These users can then only be logged in with using the signalk-generate-token script.

Fixes #1714.

This commit updates the security code to allow for users to be
configured in `security.json` without a password value.
These users can then only be logged in with using the
`signalk-generate-token` script.

Fixes SignalK#1714.
@tkurki tkurki added the feature label Apr 15, 2024
@tkurki
Copy link
Member

tkurki commented Apr 15, 2024

I think this should have a test in security tests to go with it. Care to add one, please?

@rhbvkleef
Copy link
Contributor Author

@tkurki I've added tests as requested.

test/security.js Outdated Show resolved Hide resolved
@rhbvkleef rhbvkleef force-pushed the 1714-users-without-passwords branch from e2069bf to 45c2952 Compare April 16, 2024 08:59
@tkurki
Copy link
Member

tkurki commented Apr 22, 2024

Looking good! Just one more thing, eslint errors in tokensecurity, and then we should be done.

@tkurki tkurki merged commit 4489441 into SignalK:master Apr 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When ADMINUSER is set, don't replace existing users
2 participants