New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

authport-makerpass

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authport-makerpass

An AuthPort plugin for MakerPass

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

AuthPort MakerPass

npm install --save authport-makerpass

Example Use

//
// Setup
//
var AuthPort = require('authport')
var MakerpassService = require('authport-makerpass')

if (! process.env.MAKERPASS_CLIENT_ID || ! process.env.MAKERPASS_CLIENT_SECRET) {
  throw new Error("Please set MAKERPASS_CLIENT_ID and MAKERPASS_CLIENT_SECRET")
}

AuthPort.registerService('makerpass', MakerpassService)

AuthPort.createServer({
  service: 'makerpass',
  id: process.env.MAKERPASS_CLIENT_ID,
  secret: process.env.MAKERPASS_CLIENT_SECRET,
  callbackURL: process.env.HOST + '/auth/makerpass/callback',
})

AuthPort.on('auth', function(req, res, data) {
  console.log("OAuth success!", data)
  req.session.accessToken = data.token
  res.redirect('/')
})

AuthPort.on('error', function(req, res, data) {
  console.log("OAuth failed.", data)
  res.status(500).send({ error: 'oauth_failed' })
})


//
// Adding to your express app
//
var express = require('express')
var app = express()

app.get("/auth/:service", AuthPort.app)

app.listen(4000)

FAQs

Package last updated on 11 Aug 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc