Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

passport-trello

fuwaneko50.8kMIT1.1.0

Trello authentication strategy for Passport.

passport, trello, auth, authn, authentication, identity

readme

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
        }
    }
));

changelog

Version history

1.1.0

Minor maintenance update.

Updated dependencies:

  • passport to 0.7.0