Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bell authentication example #5

Open
kevindeasis opened this issue Jun 15, 2015 · 2 comments
Open

bell authentication example #5

kevindeasis opened this issue Jun 15, 2015 · 2 comments

Comments

@kevindeasis
Copy link

Im trying to use bell and facebook for authentication, can you please give an example;
I cant seem to get it to work properly

@sibartlett
Copy link
Owner

I've just taken a look at bell, they recommend using it with the hapi-auth-cookie plugin.

Once the [bell] handler is called, the application must set its own session management. A common solution is to combine bell with the hapi-auth-cookie authentication scheme plugin.

In this case, only the facebook login endpoint would use the bell plugin, the rest of your application would then use the hapi-auth-cookie plugin. hapi-io can then use the cookie to authenticate the user.

@kevindeasis
Copy link
Author

Thanks, it works beautifully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants