@neo4j/graphql-plugin-auth
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,2 +6,3 @@ import { JwksClient } from "jwks-rsa"; | ||
globalAuthentication?: boolean; | ||
bindPredicate?: "all" | "any"; | ||
} | ||
@@ -12,2 +13,3 @@ declare class Neo4jGraphQLAuthJWKSPlugin { | ||
client: JwksClient; | ||
bindPredicate: "all" | "any"; | ||
constructor(input: JWKSPluginInput); | ||
@@ -14,0 +16,0 @@ decode<T>(token: string): Promise<T | undefined>; |
@@ -33,2 +33,3 @@ "use strict"; | ||
this.isGlobalAuthenticationEnabled = input.globalAuthentication || false; | ||
this.bindPredicate = input.bindPredicate || "all"; | ||
const options = { | ||
@@ -35,0 +36,0 @@ jwksUri: input.jwksEndpoint, |
@@ -7,2 +7,3 @@ import jsonwebtoken from "jsonwebtoken"; | ||
rolesPath?: string; | ||
bindPredicate?: "all" | "any"; | ||
} | ||
@@ -14,2 +15,3 @@ declare class Neo4jGraphQLAuthJWTPlugin { | ||
isGlobalAuthenticationEnabled?: boolean; | ||
bindPredicate: "all" | "any"; | ||
constructor(input: JWTPluginInput); | ||
@@ -16,0 +18,0 @@ decode<T>(token: string): Promise<T | undefined>; |
@@ -34,2 +34,3 @@ "use strict"; | ||
this.isGlobalAuthenticationEnabled = input.globalAuthentication || false; | ||
this.bindPredicate = input.bindPredicate || "all"; | ||
if (this.noVerify && this.isGlobalAuthenticationEnabled) { | ||
@@ -36,0 +37,0 @@ throw new Error("Neo4jGraphQLAuthJWTPlugin, noVerify and globalAuthentication can not both be enabled simultaneously."); |
{ | ||
"name": "@neo4j/graphql-plugin-auth", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Auth decode plugins for @neo4j/graphql", | ||
@@ -34,13 +34,13 @@ "keywords": [ | ||
"jsonwebtoken": "^8.5.1", | ||
"jwks-rsa": "^2.1.4" | ||
"jwks-rsa": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/debug": "4.1.7", | ||
"@types/jest": "28.1.7", | ||
"@types/jest": "29.2.4", | ||
"@types/jsonwebtoken": "8.5.9", | ||
"@types/node": "16.11.56", | ||
"jest": "28.1.3", | ||
"ts-jest": "28.0.8", | ||
"typescript": "4.7.4" | ||
"@types/node": "18.11.10", | ||
"jest": "29.3.1", | ||
"ts-jest": "29.0.3", | ||
"typescript": "4.9.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
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
27603
227
+ Added@types/jsonwebtoken@9.0.7(transitive)
+ Addedjose@4.15.9(transitive)
+ Addedjwks-rsa@3.1.0(transitive)
- Removed@panva/asn1.js@1.0.0(transitive)
- Removed@types/jsonwebtoken@8.5.9(transitive)
- Removedjose@2.0.7(transitive)
- Removedjwks-rsa@2.1.5(transitive)
Updatedjwks-rsa@^3.0.0