SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
307 stars 152 forks source link

feat: Allow for users without password #1715

Closed rhbvkleef closed 5 months ago

rhbvkleef commented 5 months ago

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 https://github.com/SignalK/signalk-server/issues/1714.

tkurki commented 5 months ago

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

rhbvkleef commented 5 months ago

@tkurki I've added tests as requested.

tkurki commented 5 months ago

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