-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add experimental support for edge compute runtimes JWKS caching
- Loading branch information
Showing
15 changed files
with
625 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Interface: ExportedJWKSCache | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [jwks](ExportedJWKSCache.md#jwks) | ||
- [uat](ExportedJWKSCache.md#uat) | ||
|
||
## Properties | ||
|
||
### jwks | ||
|
||
• **jwks**: [`JWKS`](JWKS.md) | ||
|
||
___ | ||
|
||
### uat | ||
|
||
• **uat**: `number` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Interface: JWK | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Indexable | ||
|
||
▪ [parameter: `string`]: [`JsonValue`](../types/JsonValue.md) \| `undefined` | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [alg](JWK.md#alg) | ||
- [crv](JWK.md#crv) | ||
- [e](JWK.md#e) | ||
- [key\_ops](JWK.md#key_ops) | ||
- [kid](JWK.md#kid) | ||
- [kty](JWK.md#kty) | ||
- [n](JWK.md#n) | ||
- [use](JWK.md#use) | ||
- [x](JWK.md#x) | ||
- [y](JWK.md#y) | ||
|
||
## Properties | ||
|
||
### alg | ||
|
||
• `Optional` `Readonly` **alg**: `string` | ||
|
||
___ | ||
|
||
### crv | ||
|
||
• `Optional` `Readonly` **crv**: `string` | ||
|
||
___ | ||
|
||
### e | ||
|
||
• `Optional` `Readonly` **e**: `string` | ||
|
||
___ | ||
|
||
### key\_ops | ||
|
||
• `Optional` `Readonly` **key\_ops**: `string`[] | ||
|
||
___ | ||
|
||
### kid | ||
|
||
• `Optional` `Readonly` **kid**: `string` | ||
|
||
___ | ||
|
||
### kty | ||
|
||
• `Optional` `Readonly` **kty**: `string` | ||
|
||
___ | ||
|
||
### n | ||
|
||
• `Optional` `Readonly` **n**: `string` | ||
|
||
___ | ||
|
||
### use | ||
|
||
• `Optional` `Readonly` **use**: `string` | ||
|
||
___ | ||
|
||
### x | ||
|
||
• `Optional` `Readonly` **x**: `string` | ||
|
||
___ | ||
|
||
### y | ||
|
||
• `Optional` `Readonly` **y**: `string` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Interface: JWKS | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [keys](JWKS.md#keys) | ||
|
||
## Properties | ||
|
||
### keys | ||
|
||
• `Readonly` **keys**: [`JWK`](JWK.md)[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Interface: JWKSCacheOptions | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [[experimental\_jwksCache]](JWKSCacheOptions.md#experimental_jwkscache) | ||
|
||
## Properties | ||
|
||
### [experimental\_jwksCache] | ||
|
||
• `Optional` **[experimental\_jwksCache]**: [`JWKSCacheInput`](../types/JWKSCacheInput.md) | ||
|
||
See [experimental_jwksCache](../variables/experimental_jwksCache.md). | ||
|
||
## Hierarchy | ||
|
||
- **`JWKSCacheOptions`** | ||
|
||
↳ [`ValidateJwtAuthResponseOptions`](ValidateJwtAuthResponseOptions.md) | ||
|
||
↳ [`ValidateDetachedSignatureResponseOptions`](ValidateDetachedSignatureResponseOptions.md) | ||
|
||
↳ [`ValidateJWTAccessTokenOptions`](ValidateJWTAccessTokenOptions.md) |
61 changes: 61 additions & 0 deletions
61
docs/interfaces/ValidateDetachedSignatureResponseOptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Interface: ValidateDetachedSignatureResponseOptions | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [[customFetch]](ValidateDetachedSignatureResponseOptions.md#customfetch) | ||
- [[experimental\_jwksCache]](ValidateDetachedSignatureResponseOptions.md#experimental_jwkscache) | ||
- [headers](ValidateDetachedSignatureResponseOptions.md#headers) | ||
- [signal](ValidateDetachedSignatureResponseOptions.md#signal) | ||
|
||
## Properties | ||
|
||
### [customFetch] | ||
|
||
• `Optional` **[customFetch]**: (`input`: `RequestInfo` \| [`URL`]( https://developer.mozilla.org/docs/Web/API/URL ), `init?`: `RequestInit`) => [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`Response`]( https://developer.mozilla.org/docs/Web/API/Response )\> | ||
|
||
See [customFetch](../variables/customFetch.md). | ||
|
||
___ | ||
|
||
### [experimental\_jwksCache] | ||
|
||
• `Optional` **[experimental\_jwksCache]**: [`JWKSCacheInput`](../types/JWKSCacheInput.md) | ||
|
||
See [experimental_jwksCache](../variables/experimental_jwksCache.md). | ||
|
||
___ | ||
|
||
### headers | ||
|
||
• `Optional` **headers**: [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `string`\> \| [`string`, `string`][] \| [`Headers`]( https://developer.mozilla.org/docs/Web/API/Headers ) | ||
|
||
Headers to additionally send with the HTTP request(s) triggered by this function's invocation. | ||
|
||
___ | ||
|
||
### signal | ||
|
||
• `Optional` **signal**: [`AbortSignal`]( https://developer.mozilla.org/docs/Web/API/AbortSignal ) \| () => [`AbortSignal`]( https://developer.mozilla.org/docs/Web/API/AbortSignal ) | ||
|
||
An AbortSignal instance, or a factory returning one, to abort the HTTP request(s) triggered by | ||
this function's invocation. | ||
|
||
**`Example`** | ||
|
||
A 5000ms timeout AbortSignal for every request | ||
|
||
```js | ||
const signal = () => AbortSignal.timeout(5_000) // Note: AbortSignal.timeout may not yet be available in all runtimes. | ||
``` | ||
|
||
## Hierarchy | ||
|
||
- [`HttpRequestOptions`](HttpRequestOptions.md) | ||
|
||
- [`JWKSCacheOptions`](JWKSCacheOptions.md) | ||
|
||
↳ **`ValidateDetachedSignatureResponseOptions`** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Interface: ValidateJwtAuthResponseOptions | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [[customFetch]](ValidateJwtAuthResponseOptions.md#customfetch) | ||
- [[experimental\_jwksCache]](ValidateJwtAuthResponseOptions.md#experimental_jwkscache) | ||
- [headers](ValidateJwtAuthResponseOptions.md#headers) | ||
- [signal](ValidateJwtAuthResponseOptions.md#signal) | ||
|
||
## Properties | ||
|
||
### [customFetch] | ||
|
||
• `Optional` **[customFetch]**: (`input`: `RequestInfo` \| [`URL`]( https://developer.mozilla.org/docs/Web/API/URL ), `init?`: `RequestInit`) => [`Promise`]( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise )\<[`Response`]( https://developer.mozilla.org/docs/Web/API/Response )\> | ||
|
||
See [customFetch](../variables/customFetch.md). | ||
|
||
___ | ||
|
||
### [experimental\_jwksCache] | ||
|
||
• `Optional` **[experimental\_jwksCache]**: [`JWKSCacheInput`](../types/JWKSCacheInput.md) | ||
|
||
See [experimental_jwksCache](../variables/experimental_jwksCache.md). | ||
|
||
___ | ||
|
||
### headers | ||
|
||
• `Optional` **headers**: [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `string`\> \| [`string`, `string`][] \| [`Headers`]( https://developer.mozilla.org/docs/Web/API/Headers ) | ||
|
||
Headers to additionally send with the HTTP request(s) triggered by this function's invocation. | ||
|
||
___ | ||
|
||
### signal | ||
|
||
• `Optional` **signal**: [`AbortSignal`]( https://developer.mozilla.org/docs/Web/API/AbortSignal ) \| () => [`AbortSignal`]( https://developer.mozilla.org/docs/Web/API/AbortSignal ) | ||
|
||
An AbortSignal instance, or a factory returning one, to abort the HTTP request(s) triggered by | ||
this function's invocation. | ||
|
||
**`Example`** | ||
|
||
A 5000ms timeout AbortSignal for every request | ||
|
||
```js | ||
const signal = () => AbortSignal.timeout(5_000) // Note: AbortSignal.timeout may not yet be available in all runtimes. | ||
``` | ||
|
||
## Hierarchy | ||
|
||
- [`HttpRequestOptions`](HttpRequestOptions.md) | ||
|
||
- [`JWKSCacheOptions`](JWKSCacheOptions.md) | ||
|
||
↳ **`ValidateJwtAuthResponseOptions`** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Type alias: JWKSCacheInput | ||
|
||
[💗 Help the project](https://github.com/sponsors/panva) | ||
|
||
Ƭ **JWKSCacheInput**: [`ExportedJWKSCache`](../interfaces/ExportedJWKSCache.md) \| [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )\<`string`, `never`\> |
Oops, something went wrong.