🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

azure-ad-jwt

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-ad-jwt - npm Package Compare versions

Comparing version

to
0.2.0

var jsonwebtoken = require('jsonwebtoken');
var restler = require('restler');
var cache = require('./azure-ad-cache');

@@ -56,2 +57,5 @@ function AzureActiveDirectoryValidationManager() {

var cachedValue = cache.get(tenantOpenIdconfig);
if (cachedValue) return cb(null, cachedValue);
restler.get(tenantOpenIdconfig).on('complete', function(result) {

@@ -61,2 +65,3 @@ if (result instanceof Error) {

} else {
cache.put(tenantOpenIdconfig, result);
cb(null, result);

@@ -73,2 +78,5 @@ }

var cachedValue = cache.get(jwtSigningKeysLocation);
if (cachedValue) return cb(null, cachedValue);
restler.get(jwtSigningKeysLocation).on('complete', function(result) {

@@ -89,2 +97,3 @@ if (result instanceof Error) {

// good to go
cache.put(jwtSigningKeysLocation, certificates);
cb(null, certificates);

@@ -91,0 +100,0 @@ }

{
"name": "azure-ad-jwt",
"description": "An Azure Active Directory Token Validation component for node.js",
"version": "0.1.0",
"version": "0.2.0",
"author": {

@@ -10,2 +10,3 @@ "name": "Dirk Eisenberg"

"dependencies": {
"jsonwebtoken": "^5.0.2",
"restler": "*"

@@ -12,0 +13,0 @@ },