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

passport-keycloak-bearer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-keycloak-bearer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-beta.1

16

lib/strategy.js

@@ -119,6 +119,6 @@ "use strict";

this.log.debug('KeycloakBearerStrategy - Passing req back to callback');
this.userVerify(req, verifiedToken, user, this.success);
this.userVerify(req, verifiedToken, user, this.verified);
} else {
this.log.debug('KeycloakBearerStrategy - We did not pass Req back to callback');
this.userVerify(verifiedToken, user, this.success);
this.userVerify(verifiedToken, user, this.verified);
}

@@ -135,2 +135,14 @@ }

verified(err, user, info) {
if (err) return this.error(err);
if (!user) {
let msg = 'error: invalid_token';
if (info && typeof info === 'string') msg += `, error description: ${info}`;else if (info) msg += `, error description: ${JSON.stringify(info)}`;
return this.failWithLog(msg);
}
return this.success(user, info);
}
authenticate(req) {

@@ -137,0 +149,0 @@ const token = this.tokenFromReq(req);

4

package.json
{
"name": "passport-keycloak-bearer",
"version": "1.0.1",
"version": "1.0.2-beta.1",
"description": "HTTP Bearer authentication strategy for Passport and Keycloak",

@@ -50,3 +50,3 @@ "keywords": [

"dependencies": {
"axios": "^0.18.0",
"axios": "0.19.0-beta.1",
"bunyan": "^1.8.12",

@@ -53,0 +53,0 @@ "jsonwebtoken": "^8.3.0",

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