Skip to content

v1.0.0

Choose a tag to compare

@wille wille released this 11 Aug 13:56
· 27 commits to master since this release

First stable release.

Upgrading from 0.0.x requires changes to custom OAuthServerModel implementations. A model missing a required method throws at construction with the method name in the error, so an incomplete model fails on boot rather than silently losing a protection. See the migration guide for the SQL shape of each new method.

Security

  • Consent could be granted by a cross-site GET to authenticateHandler, which SameSite=Lax cookies do not protect against
  • Authorization codes, refresh tokens and device authorizations were not atomically single-use: concurrent requests presenting the same grant could each be issued their own tokens
  • Any client could revoke any token whose value it knew (RFC 7009 §2.1)
  • Revoking a refresh token left its access tokens valid for the rest of their lifetime
  • token_type_hint was treated as authoritative, so a refresh token submitted with the wrong hint stayed usable
  • Redirect URIs could use cleartext http on routable hosts (OAuth 2.1 §2.3.1)
  • policy_uri and six other metadata URL fields accepted javascript:
  • Device approval accepted user_code from the query string
  • Client secrets were compared without constant time
  • A CIMD document was buffered in full before its size was checked
  • Device user codes were drawn with modulo bias

Other

  • mcpAuthMetadataRouter, referenced in the docs for resource-server-only deployments, is now actually exported, along with twelve types including AuthInfo
  • Type declarations now resolve under node10 module resolution and for CommonJS require consumers, not only bundler/node16/nodenext

Full details in CHANGELOG.md.