jose-browser-runtime
Advanced tools
Comparing version 4.14.6 to 4.15.0
@@ -32,1 +32,2 @@ export { compactDecrypt } from './jwe/compact/decrypt.js'; | ||
export { base64url_1 as base64url }; | ||
export { default as cryptoRuntime } from './runtime/runtime.js'; |
@@ -13,3 +13,3 @@ # `jose` API Documentation | ||
```js | ||
import * as jose from 'https://deno.land/x/jose@v4.14.6/index.ts' | ||
import * as jose from 'https://deno.land/x/jose@v4.15.0/index.ts' | ||
``` | ||
@@ -21,9 +21,9 @@ | ||
- [Signing](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwt_sign.SignJWT.md) using the `SignJWT` class | ||
- [Verification & JWT Claims Set Validation](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwt_verify.jwtVerify.md) using the `jwtVerify` function | ||
- [Using a remote JWKS](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwks_remote.createRemoteJWKSet.md) | ||
- [Using a local JWKS](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwks_local.createLocalJWKSet.md) | ||
- [Signing](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwt_sign.SignJWT.md) using the `SignJWT` class | ||
- [Verification & JWT Claims Set Validation](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwt_verify.jwtVerify.md) using the `jwtVerify` function | ||
- [Using a remote JWKS](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwks_remote.createRemoteJWKSet.md) | ||
- [Using a local JWKS](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwks_local.createLocalJWKSet.md) | ||
- Utility functions | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.14.6/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
- [Decoding JWT Claims Set](https://github.com/panva/jose/blob/v4.14.6/docs/functions/util_decode_jwt.decodeJwt.md) prior to its validation | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.15.0/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
- [Decoding JWT Claims Set](https://github.com/panva/jose/blob/v4.15.0/docs/functions/util_decode_jwt.decodeJwt.md) prior to its validation | ||
@@ -34,6 +34,6 @@ ### Encrypted JSON Web Tokens | ||
- [Encryption](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwt_encrypt.EncryptJWT.md) using the `EncryptJWT` class | ||
- [Decryption & JWT Claims Set Validation](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwt_decrypt.jwtDecrypt.md) using the `jwtDecrypt` function | ||
- [Encryption](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwt_encrypt.EncryptJWT.md) using the `EncryptJWT` class | ||
- [Decryption & JWT Claims Set Validation](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwt_decrypt.jwtDecrypt.md) using the `jwtDecrypt` function | ||
- Utility functions | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.14.6/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.15.0/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
@@ -45,13 +45,13 @@ ### Key Utilities | ||
- Key Import Functions | ||
- [JWK Import](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_import.importJWK.md) | ||
- [Public Key Import (SPKI)](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_import.importSPKI.md) | ||
- [Public Key Import (X.509 Certificate)](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_import.importX509.md) | ||
- [Private Key Import (PKCS #8)](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_import.importPKCS8.md) | ||
- [JWK Import](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_import.importJWK.md) | ||
- [Public Key Import (SPKI)](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_import.importSPKI.md) | ||
- [Public Key Import (X.509 Certificate)](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_import.importX509.md) | ||
- [Private Key Import (PKCS #8)](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_import.importPKCS8.md) | ||
- Key and Secret Generation Functions | ||
- [Asymmetric Key Pair Generation](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_generate_key_pair.generateKeyPair.md) | ||
- [Symmetric Secret Generation](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_generate_secret.generateSecret.md) | ||
- [Asymmetric Key Pair Generation](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_generate_key_pair.generateKeyPair.md) | ||
- [Symmetric Secret Generation](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_generate_secret.generateSecret.md) | ||
- Key Export Functions | ||
- [JWK Export](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_export.exportJWK.md) | ||
- [Private Key Export](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_export.exportPKCS8.md) | ||
- [Public Key Export](https://github.com/panva/jose/blob/v4.14.6/docs/functions/key_export.exportSPKI.md) | ||
- [JWK Export](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_export.exportJWK.md) | ||
- [Private Key Export](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_export.exportPKCS8.md) | ||
- [Public Key Export](https://github.com/panva/jose/blob/v4.15.0/docs/functions/key_export.exportSPKI.md) | ||
@@ -62,8 +62,8 @@ ### JSON Web Signature (JWS) | ||
- Signing - [Compact](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jws_compact_sign.CompactSign.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jws_flattened_sign.FlattenedSign.md), [General JSON](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jws_general_sign.GeneralSign.md) | ||
- Verification - [Compact](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jws_compact_verify.compactVerify.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jws_flattened_verify.flattenedVerify.md), [General JSON](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jws_general_verify.generalVerify.md) | ||
- [Verify using a remote JWKS](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwks_remote.createRemoteJWKSet.md) | ||
- [Verify using a local JWKS](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwks_local.createLocalJWKSet.md) | ||
- Signing - [Compact](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jws_compact_sign.CompactSign.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jws_flattened_sign.FlattenedSign.md), [General JSON](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jws_general_sign.GeneralSign.md) | ||
- Verification - [Compact](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jws_compact_verify.compactVerify.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jws_flattened_verify.flattenedVerify.md), [General JSON](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jws_general_verify.generalVerify.md) | ||
- [Verify using a remote JWKS](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwks_remote.createRemoteJWKSet.md) | ||
- [Verify using a local JWKS](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwks_local.createLocalJWKSet.md) | ||
- Utility functions | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.14.6/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.15.0/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
@@ -74,6 +74,6 @@ ### JSON Web Encryption (JWE) | ||
- Encryption - [Compact](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwe_compact_encrypt.CompactEncrypt.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwe_flattened_encrypt.FlattenedEncrypt.md), [General JSON](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwe_general_encrypt.GeneralEncrypt.md) | ||
- Decryption - [Compact](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwe_compact_decrypt.compactDecrypt.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwe_flattened_decrypt.flattenedDecrypt.md), [General JSON](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwe_general_decrypt.generalDecrypt.md) | ||
- Encryption - [Compact](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwe_compact_encrypt.CompactEncrypt.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwe_flattened_encrypt.FlattenedEncrypt.md), [General JSON](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwe_general_encrypt.GeneralEncrypt.md) | ||
- Decryption - [Compact](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwe_compact_decrypt.compactDecrypt.md), [Flattened JSON](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwe_flattened_decrypt.flattenedDecrypt.md), [General JSON](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwe_general_decrypt.generalDecrypt.md) | ||
- Utility functions | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.14.6/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
- [Decoding Token's Protected Header](https://github.com/panva/jose/blob/v4.15.0/docs/functions/util_decode_protected_header.decodeProtectedHeader.md) | ||
@@ -84,6 +84,6 @@ ### Other | ||
- [Calculating JWK Thumbprint](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwk_thumbprint.calculateJwkThumbprint.md) | ||
- [Calculating JWK Thumbprint URI](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwk_thumbprint.calculateJwkThumbprintUri.md) | ||
- [Verification using a JWK Embedded in a JWS Header](https://github.com/panva/jose/blob/v4.14.6/docs/functions/jwk_embedded.EmbeddedJWK.md) | ||
- [Unsecured JWT](https://github.com/panva/jose/blob/v4.14.6/docs/classes/jwt_unsecured.UnsecuredJWT.md) | ||
- [JOSE Errors](https://github.com/panva/jose/blob/v4.14.6/docs/modules/util_errors.md) | ||
- [Calculating JWK Thumbprint](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwk_thumbprint.calculateJwkThumbprint.md) | ||
- [Calculating JWK Thumbprint URI](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwk_thumbprint.calculateJwkThumbprintUri.md) | ||
- [Verification using a JWK Embedded in a JWS Header](https://github.com/panva/jose/blob/v4.15.0/docs/functions/jwk_embedded.EmbeddedJWK.md) | ||
- [Unsecured JWT](https://github.com/panva/jose/blob/v4.15.0/docs/classes/jwt_unsecured.UnsecuredJWT.md) | ||
- [JOSE Errors](https://github.com/panva/jose/blob/v4.15.0/docs/modules/util_errors.md) |
@@ -48,1 +48,2 @@ export { compactDecrypt } from './jwe/compact/decrypt'; | ||
export type { KeyLike, JWK, FlattenedJWSInput, GeneralJWSInput, FlattenedJWS, GeneralJWS, JoseHeaderParameters, JWSHeaderParameters, JWEKeyManagementHeaderParameters, FlattenedJWE, GeneralJWE, JWEHeaderParameters, CritOption, DeflateOption, DecryptOptions, EncryptOptions, JWTClaimVerificationOptions, VerifyOptions, SignOptions, JWTPayload, DeflateFunction, InflateFunction, FlattenedDecryptResult, GeneralDecryptResult, CompactDecryptResult, FlattenedVerifyResult, GeneralVerifyResult, CompactVerifyResult, JWTVerifyResult, JWTDecryptResult, ResolvedKey, CompactJWEHeaderParameters, CompactJWSHeaderParameters, JWTHeaderParameters, JSONWebKeySet, } from './types'; | ||
export { default as cryptoRuntime } from './runtime/runtime'; |
@@ -79,12 +79,21 @@ /** | ||
/** | ||
* Generic Interface for consuming operations dynamic key resolution. No token components have been | ||
* verified at the time of this function call. | ||
* Generic Interface for consuming operations dynamic key resolution. | ||
* | ||
* If you cannot match a key suitable for the token, throw an error instead. | ||
* | ||
* @param protectedHeader JWE or JWS Protected Header. | ||
* @param token The consumed JWE or JWS token. | ||
* @param IProtectedHeader Type definition of the JWE or JWS Protected Header. | ||
* @param IToken Type definition of the consumed JWE or JWS token. | ||
*/ | ||
export interface GetKeyFunction<T, T2> { | ||
(protectedHeader: T, token: T2): Promise<KeyLike | Uint8Array> | KeyLike | Uint8Array | ||
export interface GetKeyFunction<IProtectedHeader, IToken> { | ||
/** | ||
* Dynamic key resolution function. No token components have been verified at the time of this | ||
* function call. | ||
* | ||
* If you cannot match a key suitable for the token, throw an error instead. | ||
* | ||
* @param protectedHeader JWE or JWS Protected Header. | ||
* @param token The consumed JWE or JWS token. | ||
*/ | ||
( | ||
protectedHeader: IProtectedHeader, | ||
token: IToken, | ||
): Promise<KeyLike | Uint8Array> | KeyLike | Uint8Array | ||
} | ||
@@ -601,1 +610,3 @@ | ||
} | ||
export type CryptoRuntime = 'WebCryptoAPI' | 'node:crypto' |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "4.14.6", | ||
"version": "4.15.0", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -5,0 +5,0 @@ "repository": "panva/jose", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
584099
116
12351