Socket
Socket
Sign inDemoInstall

passport-predix-oauth

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-predix-oauth

Predix UAA authentication strategy for Passport.


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

Passport-Predix-Oauth

Passport strategy for authenticating with Predix UAA service using the OAuth 2.0 API.

Overview of Predix UAA

The Predix platform provides UAA as a service for developers to authenticate their application users. As a Predix platform user, you can secure access to your application by obtaining a UAA instance from the Cloud Foundry marketplace and configuring it to authenticate trusted users.

Installation

$ npm install passport-predix-oauth

Example Node.js Express starter application

Check out the app.js file in this application to see how to use this Passport strategy in an Express web application. https://github.com/predixdev/predix-nodejs-starter

Usage

var cfStrategy = new CloudFoundryStrategy({
 	clientID: CLIENT_ID,
 	clientSecret: CLIENT_SECRET,
  	callbackURL: CALLBACK_URL,
  	authorizationURL: AUTHORIZATION_URL,
  	tokenURL: TOKEN_URL,
},refreshStrategy.getOAuth2StrategyCallback() //Create a callback for OAuth2Strategy
function(accessToken, refreshToken, profile, done) {      
	 token = accessToken;
	 done(null, profile);
});

passport.use(cfStrategy);

Keywords

FAQs

Package last updated on 22 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