passport-keycloak-bearer
Advanced tools
Comparing version 1.0.1 to 1.0.2-beta.1
@@ -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); |
{ | ||
"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", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17628
238
1
+ Addedaxios@0.19.0-beta.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.18.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@0.19.0-beta.1