oauth4webapi 2.17.0 → 3.0.1

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 CHANGED
@@ -1,4 +1,6 @@
1
- # Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
1
+ # oauth4webapi
2
+
3
+ > Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
2
4
 
3
5
  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
6
 
@@ -17,6 +19,16 @@ The following features are currently in scope and implemented in this software:
17
19
  - JWT Secured Introspection, Response Mode (JARM), Authorization Request (JAR), and UserInfo
18
20
  - Validating incoming JWT Access Tokens
19
21
 
22
+ ## Sponsor
23
+
24
+ <picture>
25
+ <source media="(prefers-color-scheme: dark)" srcset="./sponsor/Auth0byOkta_dark.png">
26
+ <source media="(prefers-color-scheme: light)" srcset="./sponsor/Auth0byOkta_light.png">
27
+ <img height="65" align="left" alt="Auth0 by Okta" src="./sponsor/Auth0byOkta_light.png">
28
+ </picture>
29
+
30
+ 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>
31
+
20
32
  ## [Certification](https://openid.net/certification/faq/)
21
33
 
22
34
  [<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 +49,7 @@ Support from the community to continue maintaining and improving this module is
37
49
 
38
50
  ## [Examples](examples/README.md)
39
51
 
40
- **`example`** ESM import
52
+ **`example`** ESM import[^cjs]
41
53
 
42
54
  ```js
43
55
  import * as oauth from 'oauth4webapi'
@@ -64,7 +76,6 @@ import * as oauth from 'oauth4webapi'
64
76
  - FAPI 2.0 Security Profile - [source](examples/fapi2.ts) | [diff](examples/fapi2.diff)
65
77
  - FAPI 2.0 Message Signing - [source](examples/fapi2-message-signing.ts) | [diff](examples/fapi2-message-signing.diff)
66
78
 
67
-
68
79
  ## Supported Runtimes
69
80
 
70
81
  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 +85,17 @@ The supported JavaScript runtimes include those that support the utilized Web AP
74
85
  - Cloudflare Workers
75
86
  - Deno
76
87
  - Electron
77
- - Node.js ([runtime flags may be needed](https://github.com/panva/oauth4webapi/issues/8))
88
+ - Node.js
78
89
  - Vercel's Edge Runtime
79
90
 
80
- ## Out of scope
91
+ ## Supported Versions
92
+
93
+ | Version | Security Fixes 🔑 | Other Bug Fixes 🐞 | New Features ⭐ |
94
+ | ------------------------------------------------------- | ----------------- | ------------------ | --------------- |
95
+ | [v3.x](https://github.com/panva/oauth4webapi/tree/v3.x) | ✅ | ✅ | ✅ |
96
+ | [v2.x](https://github.com/panva/oauth4webapi/tree/v2.x) | ❌ | ❌ | ❌ |
97
+ | [v1.x](https://github.com/panva/oauth4webapi/tree/v1.x) | ❌ | ❌ | ❌ |
81
98
 
82
- The following features are currently out of scope:
99
+ [sponsor-auth0]: https://auth0.com/signup?utm_source=external_sites&utm_medium=panva&utm_campaign=devn_signup
83
100
 
84
- - CommonJS
85
- - Implicit, Hybrid, and Resource Owner Password Credentials Flows
86
- - JSON Web Encryption (JWE)
87
- - Automatic polyfills of any kind
101
+ [^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.