oauth4webapi 2.16.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -10
- package/build/index.d.ts +888 -605
- package/build/index.js +1082 -759
- package/build/index.js.map +1 -0
- package/package.json +22 -12
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# OAuth 2 / OpenID Connect for JavaScript Runtimes
|
|
1
|
+
# Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
|
|
2
2
|
|
|
3
3
|
This software provides a collection of routines that can be used to build client modules for OAuth 2.1, OAuth 2.0 with the latest Security Best Current Practices (BCP), and FAPI 2.0, as well as OpenID Connect where applicable. The primary goal of this software is to promote secure and up-to-date best practices while using only the capabilities common to both browser and non-browser JavaScript runtimes.
|
|
4
4
|
|
|
@@ -17,6 +17,16 @@ The following features are currently in scope and implemented in this software:
|
|
|
17
17
|
- JWT Secured Introspection, Response Mode (JARM), Authorization Request (JAR), and UserInfo
|
|
18
18
|
- Validating incoming JWT Access Tokens
|
|
19
19
|
|
|
20
|
+
## Sponsor
|
|
21
|
+
|
|
22
|
+
<picture>
|
|
23
|
+
<source media="(prefers-color-scheme: dark)" srcset="./sponsor/Auth0byOkta_dark.png">
|
|
24
|
+
<source media="(prefers-color-scheme: light)" srcset="./sponsor/Auth0byOkta_light.png">
|
|
25
|
+
<img height="65" align="left" alt="Auth0 by Okta" src="./sponsor/Auth0byOkta_light.png">
|
|
26
|
+
</picture>
|
|
27
|
+
|
|
28
|
+
If you want to quickly add authentication to JavaScript apps, feel free to check out Auth0's JavaScript SDK and free plan. [Create an Auth0 account; it's free!][sponsor-auth0]<br><br>
|
|
29
|
+
|
|
20
30
|
## [Certification](https://openid.net/certification/faq/)
|
|
21
31
|
|
|
22
32
|
[<img width="96" height="50" align="right" src="https://user-images.githubusercontent.com/241506/166977513-7cd710a9-7f60-4944-aebe-a658e9f36375.png" alt="OpenID Certification">](#certification)
|
|
@@ -37,7 +47,7 @@ Support from the community to continue maintaining and improving this module is
|
|
|
37
47
|
|
|
38
48
|
## [Examples](examples/README.md)
|
|
39
49
|
|
|
40
|
-
**`example`** ESM import
|
|
50
|
+
**`example`** ESM import[^cjs]
|
|
41
51
|
|
|
42
52
|
```js
|
|
43
53
|
import * as oauth from 'oauth4webapi'
|
|
@@ -64,7 +74,6 @@ import * as oauth from 'oauth4webapi'
|
|
|
64
74
|
- FAPI 2.0 Security Profile - [source](examples/fapi2.ts) | [diff](examples/fapi2.diff)
|
|
65
75
|
- FAPI 2.0 Message Signing - [source](examples/fapi2-message-signing.ts) | [diff](examples/fapi2-message-signing.diff)
|
|
66
76
|
|
|
67
|
-
|
|
68
77
|
## Supported Runtimes
|
|
69
78
|
|
|
70
79
|
The supported JavaScript runtimes include those that support the utilized Web API globals and standard built-in objects. These are _(but are not limited to)_:
|
|
@@ -74,14 +83,17 @@ The supported JavaScript runtimes include those that support the utilized Web AP
|
|
|
74
83
|
- Cloudflare Workers
|
|
75
84
|
- Deno
|
|
76
85
|
- Electron
|
|
77
|
-
- Node.js
|
|
86
|
+
- Node.js
|
|
78
87
|
- Vercel's Edge Runtime
|
|
79
88
|
|
|
80
|
-
##
|
|
89
|
+
## Supported Versions
|
|
90
|
+
|
|
91
|
+
| Version | Security Fixes 🔑 | Other Bug Fixes 🐞 | New Features ⭐ |
|
|
92
|
+
| ------------------------------------------------------- | ----------------- | ------------------ | --------------- |
|
|
93
|
+
| [v3.x](https://github.com/panva/oauth4webapi/tree/v3.x) | ✅ | ✅ | ✅ |
|
|
94
|
+
| [v2.x](https://github.com/panva/oauth4webapi/tree/v2.x) | ❌ | ❌ | ❌ |
|
|
95
|
+
| [v1.x](https://github.com/panva/oauth4webapi/tree/v1.x) | ❌ | ❌ | ❌ |
|
|
81
96
|
|
|
82
|
-
|
|
97
|
+
[sponsor-auth0]: https://auth0.com/signup?utm_source=external_sites&utm_medium=panva&utm_campaign=devn_signup
|
|
83
98
|
|
|
84
|
-
-
|
|
85
|
-
- Implicit, Hybrid, and Resource Owner Password Credentials Flows
|
|
86
|
-
- JSON Web Encryption (JWE)
|
|
87
|
-
- Automatic polyfills of any kind
|
|
99
|
+
[^cjs]: CJS style `let oauth = require('oauth4webapi')` is possible in Node.js versions where `process.features.require_module` is `true` or with the `--experimental-require-module` Node.js CLI flag.
|