Can anyone tell me how can passport js be integreated using adonis js, is it the same as socket .io? since using express you need to set the session and initialize using app.use(passport.initialize()) and app.use(passport.session()). Thank you!
I recommend you to read docs, there is inbuilt support for social authentication http://adonisjs.com/docs/4.0/social-auth#sponsor
Advice: Try to go through docs, and Adonis is completely different from express
Yes I am aware, I’m using adonis since it’s great for building large marketplace websites like laravel does. But I’m trying to login with steam OpenID which strategy is available through passport.
I believe I can add support for Open Id inside ally. PassportJs is too verbose to be used inside a conventional framework.
That would be great since logging inside open ID can be quite crud if done manually
One more question does every script on the folder start ran on startup?
Nope, there are some special files like
start/routes.js, that ignitor loads. Rest you can tell ignitor to preload files for you, or use hooks, if you want to run some code at a special event.