Socket
Socket
Sign inDemoInstall

@neo4j/graphql-plugin-auth

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j/graphql-plugin-auth - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

dist/Neo4jGraphQLAuthJWKSPlugin.d.ts

@@ -5,5 +5,7 @@ import { JwksClient } from "jwks-rsa";

rolesPath?: string;
globalAuthentication?: boolean;
}
declare class Neo4jGraphQLAuthJWKSPlugin {
rolesPath?: string;
isGlobalAuthenticationEnabled?: boolean;
client: JwksClient;

@@ -10,0 +12,0 @@ constructor(input: JWKSPluginInput);

3

dist/Neo4jGraphQLAuthJWKSPlugin.js

@@ -32,2 +32,3 @@ "use strict";

this.rolesPath = input.rolesPath;
this.isGlobalAuthenticationEnabled = input.globalAuthentication || false;
const options = {

@@ -60,3 +61,3 @@ jwksUri: input.jwksEndpoint,

this.client.getSigningKey(kid, (err, key) => {
const signingKey = key === null || key === void 0 ? void 0 : key.getPublicKey();
const signingKey = key?.getPublicKey();
callback(err, signingKey);

@@ -63,0 +64,0 @@ });

@@ -5,2 +5,3 @@ import jsonwebtoken from "jsonwebtoken";

noVerify?: boolean;
globalAuthentication?: boolean;
rolesPath?: string;

@@ -12,2 +13,3 @@ }

rolesPath?: string;
isGlobalAuthenticationEnabled?: boolean;
constructor(input: JWTPluginInput);

@@ -14,0 +16,0 @@ decode<T>(token: string): Promise<T | undefined>;

@@ -33,2 +33,6 @@ "use strict";

this.rolesPath = input.rolesPath;
this.isGlobalAuthenticationEnabled = input.globalAuthentication || false;
if (this.noVerify && this.isGlobalAuthenticationEnabled) {
throw new Error("Neo4jGraphQLAuthJWTPlugin, noVerify and globalAuthentication can not both be enabled simultaneously.");
}
}

@@ -35,0 +39,0 @@ /* eslint-disable @typescript-eslint/require-await */

@@ -190,3 +190,3 @@

Copyright 2021 Neo4j Inc.
Copyright 2022 Neo4j Inc.

@@ -203,2 +203,2 @@ Licensed under the Apache License, Version 2.0 (the "License");

See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
{
"name": "@neo4j/graphql-plugin-auth",
"version": "1.0.0",
"version": "1.1.0",
"description": "Auth decode plugins for @neo4j/graphql",

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

},
"homepage": "https://github.com/neo4j/graphql/tree/dev/packages/graphql-plugin-auth",
"homepage": "https://github.com/neo4j/graphql/tree/dev/packages/plugins/graphql-plugin-auth",
"exports": "./dist/index.js",

@@ -33,15 +33,15 @@ "main": "./dist/index.js",

"dependencies": {
"@types/jsonwebtoken": "8.5.1",
"debug": "^4.3.3",
"debug": "^4.3.4",
"jsonwebtoken": "^8.5.1",
"jwks-rsa": "^2.0.5"
"jwks-rsa": "^2.1.4"
},
"devDependencies": {
"@types/debug": "4.1.7",
"@types/jest": "27.4.0",
"@types/node": "16.11.24",
"jest": "27.5.1",
"ts-jest": "27.1.3",
"typescript": "4.5.5"
"@types/jest": "28.1.7",
"@types/jsonwebtoken": "8.5.9",
"@types/node": "16.11.56",
"jest": "28.1.3",
"ts-jest": "28.0.8",
"typescript": "4.7.4"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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