Closed nicholaschantcs closed 8 years ago
@nicholaschantcs
What you are doing is correct, but not sufficient in this moment because not all dependent modules are published yet:
So, for now, until we have all modules published you should use something like this:
var plugins = [
{register: Bell},
{register: Cookie},
{register: Chairo, options: {
web: require('seneca-web')
} },
.......
]
server.register(plugins, function (err) {
and in your package.json:
"seneca-web": "0.7.1"
This will force using latest seneca-web that knows how to redirect.
Let me know if it is OK.
Thanks @mirceaalexandru
The alternative approach that you suggested works fine . Oh, I can picture it now. Until the dependent modules are published, I suppose for now I need to explicitly use the latest options for the web.
@nicholaschantcs Great!
You can close the issue if it is OK with you. Hopefully all dependent modules will be published soon.
@nicholaschantcs BTW, really soon a seneca-auth with support for Hapi will be available, now you can see that version on
@nicholaschantcs BTW, the strategies (and server) parameters are not longer required as in the last version the local strategy is loaded by default.
I just changed the example from Readme.
@mirceaalexandru :+1: Alright, thanks for the heads up.
Hi, I am trying to get the redirects working in Hapi but it seemed to return me the callback rather than the http redirect and the URL is showing localhost:10000/auth/login
options.js
Am I doing it wrongly? I supposed it should be the similar approach with using Express but it's seemed more complicated than I thought.