passport-keycloak-bearer
Advanced tools
Comparing version 1.0.2-beta.1 to 1.0.2-beta.2
@@ -10,3 +10,3 @@ "use strict"; | ||
var _logging = _interopRequireDefault(require("./logging")); | ||
var _simpleNodeLogger = _interopRequireDefault(require("simple-node-logger")); | ||
@@ -25,3 +25,3 @@ var _jwtVerification = _interopRequireDefault(require("./jwtVerification")); | ||
const log = (0, _logging.default)('Keycloak: Bearer strategy'); | ||
const log = _simpleNodeLogger.default.createSimpleLogger(); | ||
@@ -47,3 +47,3 @@ const verifyOptions = options => { | ||
this.log = log; | ||
this.log.levels('console', options.loggingLevel || 'warn'); | ||
this.log.setLevel(options.loggingLevel || 'warn'); | ||
this.log = options.customLogger ? options.customLogger : log; | ||
@@ -122,6 +122,6 @@ this.userVerify = verify || this.success; | ||
this.log.debug('KeycloakBearerStrategy - Passing req back to callback'); | ||
this.userVerify(req, verifiedToken, user, this.verified); | ||
this.userVerify(req, verifiedToken, user, this.verified.bind(this)); | ||
} else { | ||
this.log.debug('KeycloakBearerStrategy - We did not pass Req back to callback'); | ||
this.userVerify(verifiedToken, user, this.verified); | ||
this.userVerify(verifiedToken, user, this.verified.bind(this)); | ||
} | ||
@@ -128,0 +128,0 @@ } |
{ | ||
"name": "passport-keycloak-bearer", | ||
"version": "1.0.2-beta.1", | ||
"version": "1.0.2-beta.2", | ||
"description": "HTTP Bearer authentication strategy for Passport and Keycloak", | ||
@@ -51,5 +51,5 @@ "keywords": [ | ||
"axios": "0.19.0-beta.1", | ||
"bunyan": "^1.8.12", | ||
"jsonwebtoken": "^8.3.0", | ||
"passport-strategy": "^1.0.0" | ||
"passport-strategy": "^1.0.0", | ||
"simple-node-logger": "^0.93.40" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17122
7
217
+ Addedsimple-node-logger@^0.93.40
+ Addedlodash@4.17.21(transitive)
+ Addedsimple-node-logger@0.93.42(transitive)
- Removedbunyan@^1.8.12
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbunyan@1.8.15(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddtrace-provider@0.8.8(transitive)
- Removedglob@6.0.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmv@2.1.1(transitive)
- Removednan@2.22.0(transitive)
- Removedncp@2.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.4.5(transitive)
- Removedsafe-json-stringify@1.2.0(transitive)
- Removedwrappy@1.0.2(transitive)