Trello authentication provider for passport
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/passport-trello Update dependencies Dec 2, 2015
.gitignore Initial commit Mar 10, 2013
.npmignore Initial commit Mar 10, 2013
README.md Readme Mar 11, 2013
package.json Update dependencies Dec 2, 2015

README.md

Trello strategy for passport


Install

$ npm install passport-trello

Simple usage (CoffeeScript):

TrelloStrategy = require('passport-trello').Strategy

passport.use 'trello', new TrelloStrategy(
    consumerKey: TRELLO_ID
    consumerSecret: TRELLO_SECRET
    callbackURL: TRELLO_CALLBACK
    passReqToCallback: true
    trelloParams:
        scope: "read,write"
        name: "MyApp"
        expiration: "never"
    (req, token, tokenSecret, profile, done) ->
        if not req.user
            # user is not authenticated, log in via trello or do something else
        else
            # authorize user to use Trello api
)