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 2.2.0 to 2.3.0

4

package.json
{
"name": "passport-keycloak-bearer",
"version": "2.2.0",
"version": "2.3.0",
"description": "HTTP Bearer authentication strategy for Passport and Keycloak",

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

"devDependencies": {
"chai": "^4.3.4",
"chai": "^4.3.7",
"chai-passport-strategy": "^1.0.1",

@@ -54,0 +54,0 @@ "eslint": "^7.32.0",

@@ -16,6 +16,7 @@ const axios = require('axios');

getKeysFromResponse(body) {
if (!body.keys || body.keys.length === 0) {
const rsaKeys = body.keys && body.keys.filter((key) => key.kty === "RSA");
if (!rsaKeys || rsaKeys.length === 0) {
throw new Error('We got no AAD signing Keys');
}
return body.keys.map((key) => ({
return rsaKeys.map((key) => ({
...key,

@@ -22,0 +23,0 @@ pemKey: rsaPublicKeyPem(key.n, key.e),

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