feathersjs-ecosystem / authentication-local

[MOVED] Local authentication plugin for feathers-authentication
https://github.com/feathersjs/feathers
MIT License
26 stars 15 forks source link

Protect hooks does not support dot notation #61

Closed bertho-zero closed 6 years ago

bertho-zero commented 6 years ago

I can not protect my field author.password after a fastJoin and local.hooks.protect.

https://github.com/lodash/lodash/issues/3754

The problem here is that the package 'lodash.omit' does not support dot notation: https://github.com/feathersjs/authentication-local/blob/aec93424d3181b55679919821eeeb31354f1114d/lib/hooks/protect.js#L9


The local.hooks.protect of the users service call in my fastJoin resolver does not omit the password due to the missing provider params, and if I provide them I do not pass my authentication hooks for external calls.

https://github.com/feathersjs/authentication-local/blob/aec93424d3181b55679919821eeeb31354f1114d/lib/hooks/protect.js#L26-L28

daffl commented 6 years ago

Fixed in v1.1.2