Skip to content

fuwaneko/passport-trello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trello strategy for passport


Install

$ npm i -S passport-trello

Simple usage:

const { Strategy: TrelloStrategy } = require('passport-trello');

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 (!req.user) {
            # user is not authenticated, log in via trello or do something else
        } else {
            # authorize user to use Trello api
        }
    }
));

About

Trello authentication provider for passport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published