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

actionhero-oauth2-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actionhero-oauth2-client - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

9

lib/index.js

@@ -46,7 +46,12 @@ var OAuth2 = require('simple-oauth2');

OAuth2Client.prototype.redirectToLogin = function(connection){
OAuth2Client.prototype.redirectToLogin = function(connection, username, password){
var req = connection.rawConnection.req;
var res = connection.rawConnection.res;
var credentials = '';
if(username && password){
credentials = '&username=' + username + '&password=' + password;
}
if(!this.redirect_url){

@@ -57,3 +62,3 @@ this.redirect_url = this.protocol + "://" + req.headers.host + '/api/' + this.action;

//redirect to oauth2 server
res.writeHead(303, {Location: this.getAuthorizationUrl()});
res.writeHead(307, {Location: this.getAuthorizationUrl() + credentials});
res.end();

@@ -60,0 +65,0 @@ };

{
"name": "actionhero-oauth2-client",
"version": "1.0.0",
"version": "1.0.1",
"description": "ActionHero OAuth2 Client",

@@ -5,0 +5,0 @@ "keywords": ["actionhero", "oauth2", "client"],

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