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

passport-sirena-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-sirena-oauth2 - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

33

lib/strategy.js

@@ -60,2 +60,19 @@ /**

/**
* Edit the Authenticate request to add more parameters to the authenticate request
*
* @param {http.IncomingMessage} req
* @param {object} options
* @access protected
*/
Strategy.prototype.authenticate = function(req, options) {
// If there's a username in the body of the request, pass it as option
if (req.body && req.body.username) {
options.username = req.body.username;
}
OAuth2Strategy.prototype.authenticate.call(this, req, options);
};
/**
* Retrieve user profile from the authorization server.

@@ -116,4 +133,20 @@ *

/**
* Return extra parameters to be included in the authorization request.
*
* @param {object} options
* @return {object}
* @access protected
*/
Strategy.prototype.authorizationParams = function(options) {
var params = {};
if (options.username) {
params['username'] = options.username;
}
return params;
}
/**
* Expose `Strategy`.
*/
module.exports = Strategy;

2

package.json
{
"name": "passport-sirena-oauth2",
"version": "1.1.1",
"version": "1.2.0",
"description": "Sirena (OAuth 2.0) authentication strategy for Passport",

@@ -5,0 +5,0 @@ "main": "./lib",

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