Can I use passport-local
strategy, knowing that i'm using angular front-end generated by the composer-rest-server tool?
Because in the passportjs
documentation for passport-local
they write that it can be used just in node.js applications.
Can I use passport-local
strategy, knowing that i'm using angular front-end generated by the composer-rest-server tool?
Because in the passportjs
documentation for passport-local
they write that it can be used just in node.js applications.
The yo generated angular application is only meant to give you a starting point. It is not designed to work with any authentication or multi-user enablement of the composer-rest-server. You will have to modify the generated application to suite your needs and also implement whatever is necessary to support whatever passport strategy you have chosen for the composer-rest-server to use. Please note that the local passport strategy will not work out of the box. There is more information about this available here Composer-rest-server with passport-local strategy