Skip to content

1.6.0

Compare
Choose a tag to compare
@ferrerojosh ferrerojosh released this 04 Jun 20:08
· 162 commits to master since this release
1.6.0
7e3a0fc

A minor update release.

Breaking Changes:

  • @Roles decorator parameters changed, now requires you to pass a parameter object, a quick snippet (#45, thanks @jalorenz):
// Client application roles
@Roles({ roles: ['admin', 'other'], mode: RoleMatchingMode.ALL })
// Realm roles, simply prefix it with realm:
@Roles({ roles: ['realm:admin', 'realm:other'], mode: RoleMatchingMode.ALL })
  • @Roles decorator now defaults to match ANY roles given
  • Remove @AllowAnyRole decorator

Changes:

  • Add option to configure policy enforcement (#55)
  • Fix bug where GraphQL is not supported when using AuthenticatedUser decorator (#57)
  • Add a way to inject a custom logger implementation (#58)
  • Add option to use nest logger, which allows loggers from NestJS app.useLogger respectively (#58)