Novel Preposterous Mockery
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    passport-trellopublic

    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 
    )

    install

    npm i passport-trello

    Downloadsweekly downloads

    147

    version

    0.1.5

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar