@vertx/auth-jwt
Advanced tools
Comparing version 3.9.4 to 4.0.0-CR1
@@ -20,3 +20,3 @@ /* | ||
import { Vertx } from '@vertx/core'; | ||
import { AuthProvider } from '@vertx/auth-common'; | ||
import { AuthenticationProvider } from '@vertx/auth-common'; | ||
import { JWTOptions } from '@vertx/auth-common/options'; | ||
@@ -26,5 +26,5 @@ import { JWTAuthOptions } from './options'; | ||
/** | ||
* Factory interface for creating JWT based {@link AuthProvider} instances. | ||
* Factory interface for creating JWT based {@link AuthenticationProvider} instances. | ||
*/ | ||
export abstract class JWTAuth extends AuthProvider { | ||
export abstract class JWTAuth extends AuthenticationProvider { | ||
/** | ||
@@ -45,1 +45,25 @@ * Create a JWT auth provider | ||
} | ||
import { AuthorizationProvider } from '@vertx/auth-common'; | ||
/** | ||
* Implementation of the JWT authorization provider. | ||
*/ | ||
export abstract class JWTAuthorization extends AuthorizationProvider { | ||
/** | ||
* Factory method to create a Authorization provider for JWT tokens. | ||
*/ | ||
static create(rootClaim: string) : JWTAuthorization; | ||
} | ||
/** | ||
* Implementation of the Microprofile MP-JWT 1.1 RBAC based on the access token groups key. | ||
*/ | ||
export abstract class MicroProfileAuthorization extends AuthorizationProvider { | ||
/** | ||
* Factory method to create a Authorization provider for tokens adhering to the MP-JWT 1.1 spec. | ||
* When the user is known to not be a JWT, (e.g.: a OAuth2 response token) then the root claim | ||
* is expected to be extracted from under the key <code>accessToken</code>. | ||
*/ | ||
static create() : MicroProfileAuthorization; | ||
} |
@@ -20,6 +20,8 @@ /* | ||
/** | ||
* @typedef { import("es4x") } Java | ||
* @typedef { import("@vertx/core") } Java | ||
*/ | ||
module.exports = { | ||
JWTAuth: Java.type('io.vertx.ext.auth.jwt.JWTAuth') | ||
JWTAuth: Java.type('io.vertx.ext.auth.jwt.JWTAuth'), | ||
JWTAuthorization: Java.type('io.vertx.ext.auth.jwt.authorization.JWTAuthorization'), | ||
MicroProfileAuthorization: Java.type('io.vertx.ext.auth.jwt.authorization.MicroProfileAuthorization') | ||
}; |
@@ -20,3 +20,2 @@ /* | ||
import { JWTOptions } from '@vertx/auth-common/options'; | ||
import { SecretOptions } from '@vertx/auth-common/options'; | ||
@@ -56,93 +55,2 @@ /** | ||
getSecrets(): SecretOptions; | ||
setSecrets(secrets: SecretOptions): JWTAuthOptions; | ||
addSecret(secrets: SecretOptions): JWTAuthOptions; | ||
} | ||
/** | ||
* Options describing how an JWT KeyStore should behave. | ||
*/ | ||
export class JWTKeyStoreOptions { | ||
constructor(); | ||
constructor(obj: JWTKeyStoreOptions); | ||
getPassword(): string; | ||
setPassword(password: string): JWTKeyStoreOptions; | ||
getPath(): string; | ||
setPath(path: string): JWTKeyStoreOptions; | ||
getType(): string; | ||
setType(type: string): JWTKeyStoreOptions; | ||
} | ||
/** | ||
* Options related to creation of new tokens. | ||
* | ||
* If any expiresInMinutes, audience, subject, issuer are not provided, there is no default. | ||
* The jwt generated won't include those properties in the payload. | ||
* | ||
* Generated JWTs will include an iat claim by default unless noTimestamp is specified. | ||
*/ | ||
export class JWTOptions { | ||
constructor(); | ||
constructor(obj: JWTOptions); | ||
getAlgorithm(): string; | ||
setAlgorithm(algorithm: string): JWTOptions; | ||
getAudience(): string; | ||
setAudience(audience: string): JWTOptions; | ||
addAudience(audiences: string): JWTOptions; | ||
setExpiresInMinutes(expiresInMinutes: number): JWTOptions; | ||
getExpiresInSeconds(): number; | ||
setExpiresInSeconds(expiresInSeconds: number): JWTOptions; | ||
getHeader(): { [key: string]: any }; | ||
setHeader(header: { [key: string]: any }): JWTOptions; | ||
isIgnoreExpiration(): boolean; | ||
setIgnoreExpiration(ignoreExpiration: boolean): JWTOptions; | ||
getIssuer(): string; | ||
setIssuer(issuer: string): JWTOptions; | ||
getLeeway(): number; | ||
setLeeway(leeway: number): JWTOptions; | ||
isNoTimestamp(): boolean; | ||
setNoTimestamp(noTimestamp: boolean): JWTOptions; | ||
getPermissions(): string; | ||
setPermissions(permissions: string): JWTOptions; | ||
addPermission(permissions: string): JWTOptions; | ||
getSubject(): string; | ||
setSubject(subject: string): JWTOptions; | ||
} |
@@ -20,8 +20,6 @@ /* | ||
/** | ||
* @typedef { import("es4x") } Java | ||
* @typedef { import("@vertx/core") } Java | ||
*/ | ||
module.exports = { | ||
JWTAuthOptions: Java.type('io.vertx.ext.auth.jwt.JWTAuthOptions'), | ||
JWTKeyStoreOptions: Java.type('io.vertx.ext.auth.jwt.JWTKeyStoreOptions'), | ||
JWTOptions: Java.type('io.vertx.ext.auth.jwt.JWTOptions') | ||
JWTAuthOptions: Java.type('io.vertx.ext.auth.jwt.JWTAuthOptions') | ||
}; |
{ | ||
"name" : "@vertx/auth-jwt", | ||
"description" : "Generated Eclipse Vert.x bindings for 'vertx-auth-jwt'", | ||
"version" : "3.9.4", | ||
"version" : "4.0.0-CR1", | ||
"license" : "Apache-2.0", | ||
@@ -10,8 +10,7 @@ "public" : true, | ||
"artifactId" : "vertx-auth-jwt", | ||
"version" : "3.9.4" | ||
"version" : "4.0.0.CR1" | ||
}, | ||
"dependencies" : { | ||
"@vertx/core" : "3.9.4", | ||
"@vertx/auth-common" : "3.9.4", | ||
"@vertx/jwt" : "3.9.4" | ||
"@vertx/core" : "4.0.0-CR1", | ||
"@vertx/auth-common" : "4.0.0-CR1" | ||
}, | ||
@@ -21,2 +20,7 @@ "main" : "index.js", | ||
"types" : "index.d.ts", | ||
"exports" : { | ||
"." : "./index.mjs", | ||
"./index" : "./index.mjs", | ||
"./options" : "./options.mjs" | ||
}, | ||
"sideEffects" : false, | ||
@@ -23,0 +27,0 @@ "repository" : { |
![npm (scoped)](https://img.shields.io/npm/v/@vertx/auth-jwt.svg) | ||
![npm](https://img.shields.io/npm/l/@vertx/auth-jwt.svg) | ||
![Security Status](https://snyk-widget.herokuapp.com/badge/npm/@vertx/auth-jwt.svg) | ||
![Security Status](https://snyk-widget.herokuapp.com/badge/npm/%40vertx%2Fauth-jwt/badge.svg) | ||
@@ -5,0 +5,0 @@ Generated JavaScript bindings for Eclipse Vert.x. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
9875
200
2
+ Added@vertx/auth-common@4.0.0-CR1(transitive)
+ Added@vertx/core@4.0.0-CR1(transitive)
- Removed@vertx/jwt@3.9.4
- Removed@vertx/auth-common@3.9.4(transitive)
- Removed@vertx/core@3.9.4(transitive)
- Removed@vertx/jwt@3.9.4(transitive)
Updated@vertx/auth-common@4.0.0-CR1
Updated@vertx/core@4.0.0-CR1