Repository navigation
v1.0.0
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
GETtoauthenticateHandler, whichSameSite=Laxcookies 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_hintwas treated as authoritative, so a refresh token submitted with the wrong hint stayed usable- Redirect URIs could use cleartext
httpon routable hosts (OAuth 2.1 §2.3.1) policy_uriand six other metadata URL fields acceptedjavascript:- Device approval accepted
user_codefrom 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 includingAuthInfo- Type declarations now resolve under
node10module resolution and for CommonJSrequireconsumers, not onlybundler/node16/nodenext
Full details in CHANGELOG.md.