Socket
Socket
Sign inDemoInstall

passport-trello

Package Overview
Dependencies
4
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    passport-trello

Trello authentication strategy for Passport.


Version published
Weekly downloads
14K
decreased by-10.43%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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
)

Keywords

FAQs

Last updated on 02 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc