Skip to content

Releases: jasonraimondi/ts-oauth2-server

v4.0.2

25 Aug 00:27
d3f1d8d
Compare
Choose a tag to compare

What's Changed

  • feat: export error helper isOAuthError in d3f1d8d
  • docs: add nuxt adapter indocs by @devcui in #157

New Contributors

Full Changelog: v4.0.1...v4.0.2

v4.0.1

12 Aug 22:15
8850215
Compare
Choose a tag to compare
  • fix: express adapter status method causing build errors

Full Changelog: v4.0.0...v4.0.1

v4.0.0

12 Aug 02:17
cfe994b
Compare
Choose a tag to compare

Changes

There is one small breaking change for users implementing /revoke or /introspect`. And one minor, not technically breaking, but change in defaults.


(breaking) - The /revoke and /introspect endpoints will now authenticate via client_credentials by default

Before (v3.x):

new AuthorizationServer(..., {
  authenticateIntrospect: false, // default was false in 3.x
  authenticateRevoke: false,     // default was false in 3.x
})

After (v4.x):

const auth = new AuthorizationServer(..., {
  authenticateIntrospect: true, // set to false to match 3.x
  authenticateRevoke: true,     // set to false to match 3.x
})

(not-breaking, but a change) - The AuthorizationServer now enables by "client_credentials" and "refresh_token" by default.

Before (v3.x):

authorizationServer.enableGrant("client_credentials")
authorizationServer.enableGrant("revoke_token")

After (v4.x):

authorizationServer.enableGrant("client_credentials") // no longer necessary
authorizationServer.enableGrant("revoke_token") // no longer necessary

// but if you want to tweak the token length of either of these grants, you can 
authorizationServer.enableGrant(["client_credentials", new DateInterval("6h")])

Full Changelog: v3.6.0...v4.0.0

v4.0.0-alpha.1

12 Aug 02:12
5e04419
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

Full Changelog: v3.6.0...v4.0.0-alpha.1

v3.6.0

12 Aug 01:59
036e5e4
Compare
Choose a tag to compare

Whats New

new AuthorizationServer(..., {
  authenticateIntrospect: false, // Default: false (v3.x), true (v4.x)
  authenticateRevoke: false,     // Default: false (v3.x), true (v4.x)
})
  • Default false values maintain v3.x compatibility, and you must implement your own authentication.
  • Setting to true enables client credentials authentication (v4.x behavior).

Full Changelog: v3.4.1...v3.6.0

v3.6.0-alpha.5

12 Aug 01:38
ddf3d16
Compare
Choose a tag to compare
v3.6.0-alpha.5 Pre-release
Pre-release

What's Changed

  • feat: add support for RFC7662 "OAuth 2.0 Token Introspection"
  • add configuration options to control client credentials authentication for /introspect and /revoke endpoints.
new AuthorizationServer({
  authenticateIntrospect: false, // Default: false (v3.x), true (v4.x)
  authenticateRevoke: false,     // Default: false (v3.x), true (v4.x)
})
  • Default false values maintain v3.x compatibility, and you must implement your own authentication.
  • Setting to true enables client credentials authentication (v4.x behavior).

Important Notes

  • If set to false, you must implement your own authentication:

Full Changelog: v3.6.0-alpha.1...v3.6.0-alpha.5

v3.6.0-alpha.1

10 Aug 03:05
d70e038
Compare
Choose a tag to compare
v3.6.0-alpha.1 Pre-release
Pre-release

What's Changed

  • fix: introspect and revoke to spec and return falsey instead of throwing by @jasonraimondi in #154

Full Changelog: v3.6.0-alpha.0...v3.6.0-alpha.1

v3.6.0-alpha.0

09 Aug 03:27
def4f83
Compare
Choose a tag to compare
v3.6.0-alpha.0 Pre-release
Pre-release

What's Changed

Full Changelog: v3.4.1...v3.6.0-alpha.0

v3.4.1 - patch express/fastify adapters handle errors

26 Jul 01:45
e078a6c
Compare
Choose a tag to compare

What's Changed

Thanks

  • @noru - finding and reporting in detail the exact problem

Full Changelog: v3.4.0...v3.4.1

v3.4.0 - Vanilla Request/Response Adapter, new documentation site

05 Jul 15:06
6eabfef
Compare
Choose a tag to compare

Description

New Docs site - https://tsoauth2server.com

New VanillaJS Adapter - https://tsoauth2server.com/docs/adapters/vanilla/

What's Changed

Full Changelog: v3.3.1...v3.4.0