senecajs / seneca-auth

A Seneca user authentication plugin for Hapi and Express
http://senecajs.org
MIT License
33 stars 29 forks source link

[Feature request] Add support for path to restrict auth by url #106

Open Wardormeur opened 8 years ago

Wardormeur commented 8 years ago

It would be interesting to support the cookie "path" customization and support per-path login, in case you have a restricted url or a scoped url (to a specific user group) It's possible to change the cookie's path through a middleware, but the login doesn't save this path to compare its validity