- Emit 502 error when an issue occurs with reaching oauth2 server.
- Finally! Curveball v1. Only took 6 years.
- CommonJS support has been dropped. The previous version of this library supported both CommonJS and ESM. The effort of this no longer feels worth it. ESM is the future, so we're dropping CommonJS.
- Now requires Node 18.
- Upgraded to Typescript 5.3.
- Removed node-fetch. All versions of Node supported by this library have a built-in fetch now
- This package now supports ESM and CommonJS modules.
- No longer supports Node 14. Please use Node 16 or higher.
- Stable release!
- Switched to
@badgateway/oauth2-client
fromfetch-mw-oauth2
.
- Upgraded from
@curveball/core
to@curveball/kernel
.
- Alpha release.
- Provide compatibility with a12n-server that uses
admin
as a catch-all privilege. - Compatibility with Node 16.
- Alpha release.
- Fix a bug in loading new Curveball context definitions.
- Alpha release.
- Requires Node 18.
- Renamed the
whitelist
setting topublicPrefixes
. - Added
ctx.auth.isLoggedIn()
,ctx.auth.principal
. - Can now provide information about the privileges a user has, either by using the data from @curveball/a12n-server, or by providing your own. Using this is optional, but it's there if you need it.
- Added
ctx.privileges.has()
,ctx.privileges.require()
,ctx.privileges.get()
.
- Alpha release.
- Switched to the new
fetch-mw-oauth2
library for all oauth2 handling. the setup for this middleware has changed slightly, but all features remain the same. Take a look at the readme to see the new setup instructions.
- Bring package fully up to date with coding standards and dependencies.
- Update everything to the latest Curveball standards.
- No functional changes.
- Allow installation on Curveball 0.10.
@curveball/core
is now a peerDependency.
- Correctly registering Request, Response, Header classes.
- Register
fetch()
as a global polyfill.
- First version