Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

passport-auth0

Package Overview
Dependencies
Maintainers
48
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-auth0 - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

.circleci/config.yml

6

CHANGELOG.md
# Change Log
## [v1.4.1](https://github.com/auth0/passport-auth0/tree/v1.4.1) (2020-10-22)
[Full Changelog](https://github.com/auth0/passport-auth0/compare/v1.4.1...v1.4.0)
**Changed**
Replace request with axios [\#144](https://github.com/auth0/passport-auth0/pull/144) ([frederikprijck](https://github.com/frederikprijck))
## [v1.4.0](https://github.com/auth0/passport-auth0/tree/v1.4.0) (2020-10-22)

@@ -4,0 +10,0 @@ [Full Changelog](https://github.com/auth0/passport-auth0/compare/v1.4.0...v1.3.3)

26

lib/index.js

@@ -6,5 +6,6 @@ /**

OAuth2Strategy = require('passport-oauth').OAuth2Strategy,
request = require('request'),
axios = require('axios'),
pkg = require('../package.json')
crypto = require('crypto');
crypto = require('crypto')
querystring = require('querystring');

@@ -163,3 +164,3 @@ function encodeClientInfo(obj) {

/**
* TODO: Deprecate
* @deprecated An Access Token is already included as part of the verify callback passed to Auth0Strategy.
*/

@@ -174,19 +175,12 @@ Strategy.prototype._getAccessToken = function(done){

request({
axios({
method: 'POST',
url: this.options.tokenURL,
form: body,
headers: {
data: querystring.stringify(body),
headers: {
'Auth0-Client': clientInfoHeader
}
}, function (err, resp, body) {
if(err) return done(err);
var result = JSON.parse(body);
var accessToken = result['access_token'];
var idToken = result['id_token'];
done(null, accessToken, idToken);
});
})
.then((response) => done(null, response.data['access_token'], response.data['id_token']))
.catch((err) => done(err));
};

@@ -193,0 +187,0 @@

{
"name": "passport-auth0",
"version": "1.4.0",
"version": "1.4.1",
"description": "Auth0 platform authentication strategy for Passport.js",

@@ -20,6 +20,6 @@ "main": "lib/index.js",

"dependencies": {
"axios": "^0.21.4",
"passport-oauth": "^1.0.0",
"passport-oauth2": "^1.5.0",
"request": "^2.88.0"
"passport-oauth2": "^1.6.0"
}
}
# passport-auth0
> :information_source: **Maintenance Advisory:** With the release of https://github.com/auth0/express-openid-connect, we will no longer be adding new features to this library, however we will continue to maintain this library and fix issues. You can read more about the release of our new library at https://auth0.com/blog/auth0-s-express-openid-connect-sdk/

@@ -9,3 +10,3 @@

[![Build Status](https://travis-ci.org/auth0/passport-auth0.svg?branch=master)](https://travis-ci.org/auth0/passport-auth0)
[![Build Status](https://circleci.com/gh/auth0/passport-auth0/tree/master.svg?style=svg)](https://circleci.com/gh/auth0/passport-auth0/tree/master)
[![npm](https://img.shields.io/npm/v/passport-auth0)](https://npmjs.org/package/passport-auth0)

@@ -161,2 +162,2 @@ [![npm](https://img.shields.io/npm/dm/passport-auth0)](https://npmjs.org/package/passport-auth0)

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fpassport-auth0.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fpassport-auth0?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fpassport-auth0.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fpassport-auth0?ref=badge_large)

Sorry, the diff of this file is not supported yet

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