These are chat archives for neilstuartcraig/ah-passport-plugin

18th
Mar 2015
Sebastien Stettler
@billybonks
Mar 18 2015 13:33
yo @neilstuartcraig i installed the plugin, started actionhero but it doesnt seem to be loading the plugin from node_modules
any ideas?
Neil Craig
@neilstuartcraig
Mar 18 2015 13:45
Hey @billybonks. Did you add the plugin to config/plugins.js? Also, which version of actionhero are you running?
Sebastien Stettler
@billybonks
Mar 18 2015 13:47
version 10
ok ye problem was that i didnt add the name into plugins.js
@evantahler what do you think about plugins being auto loaded if installed, thats how it works in ember-cli
searches directory for ember-addon keyword in package.json
Neil Craig
@neilstuartcraig
Mar 18 2015 13:54
We’ve had some discussions on autoloading and went instead for a little PR i submitted which allows them to be automatically included in plugins.js when using generate via a flag —plugins plugin1,plugin2...
That was in 10.0 i think
automatically adding plugins feels a little too much of a secuirty risk
maybe plugins.js could have an “auto” config setting though? That;d be the only way i’d consider it myself
Sebastien Stettler
@billybonks
Mar 18 2015 13:57
i would be happy with an auto config setting, i understand your concerns for security
Neil Craig
@neilstuartcraig
Mar 18 2015 13:58
Maybe see how Evan and the others feel about it then and submit a PR :-)
Let me know how you get on with the passport plugin though
I have only done very minimal testing currently as i’ve not got much time
big project on
Sebastien Stettler
@billybonks
Mar 18 2015 14:02
will let you know how it goes and what i think :smile:
how do i run ah in debug mode ?
api.log("ah-passport-plugin initialiser: Started...", "debug");
Neil Craig
@neilstuartcraig
Mar 18 2015 14:02
if you edit config/logger.js you can switch the logging level to debug
that should do the job
you can also enable development mode (which restarts when most files - e.g. actions) are edited
Sebastien Stettler
@billybonks
Mar 18 2015 14:04
ye currently in development mode
Neil Craig
@neilstuartcraig
Mar 18 2015 14:04
ok cool
the log level should be what you need then