cantina-auth-facebook
Facebook authentication for Cantina.
Dependencies
- auth - Authentication support provided by cantina-auth
Adds Middleware
- Facebook authentication middleware under the
authURL
route.
Configuration
- successRedirect - Where to redirect after the authentication succeeds.
- failureRedirect - Where to redirect if the authentication fails.
- clientID - Facebook app client id.
- clientSecret - Facebook app client secret.
- callbackURL - Callback URL (publicly accessible) for authentication.
- authURL - A path to initiation the authentication process.
- scope - ?
Defaults
'auth-facebook': successRedirect: '/' failureRedirect: '/' authURL: '/login'
Usage
Your application MUST provide handlers for serializing, deserializing, and verifying users.
app.serializeUser
app.deserializeUser
app.verifyFacebookUser
Example
var app = ; app;
Terra Eclipse
Developed byTerra Eclipse, Inc. is a nationally recognized political technology and strategy firm located in Santa Cruz, CA and Washington, D.C.