Skip to content

Releases: mkurz/deadbolt-2-java

3.0.0

27 Nov 14:38
3.0.0
554c3ae
Compare
Choose a tag to compare

Noteworthy

This release adds support for Play 3, which is built on Pekko instead of Akka. Of course, this version also ships Scala 3 artifacts.

Pull requests merged

Full Changelog: 2.9.0...3.0.0

2.9.0

27 Nov 14:36
2.9.0
86da4b4
Compare
Choose a tag to compare

Noteworthy

This release adds support for Play 2.9 and Scala 3.

Pull requests merged

New Contributors

Full Changelog: v2.8.1...2.9.0

v2.8.1

04 Mar 19:30
796d963
Compare
Choose a tag to compare
  • #109 Reduce dependencies

v2.8.0

10 Feb 11:00
ea21ac4
Compare
Choose a tag to compare

Support for Play 2.8
Cross release for Scala 2.12 and 2.13

v2.7.0

18 Feb 10:21
Compare
Choose a tag to compare

See #89 for a "changelog".

v2.6.4

02 Mar 10:10
Compare
Choose a tag to compare

Highlights

  • Constraint modes
    New config deadbolt.java.constraint-mode can be PROCESS_FIRST_CONSTRAINT_ONLY (the default, backward compatible), AND (all constraint annotations of the current action composition chain have to be successful) or OR (only one constraint annotation of the current action composition chain has to be successful) See tests added in #83 for examples
  • @Pattern: added mode attribute (can be AND or OR) + value attribute takes an array now
    For examples see #88
  • Constraint annotations are now @Repeatable
    Important: Requires (at least) Play version 2.6.11!
    For examples see #70

Other new features and bug fixes

  • Caching improvements: Allow caching of multiple subjects per request, see #48
  • Faster! Removed reflection calls. This may effects you if you have high load/a lot of traffic. See #62
  • New config deadbolt.java.cache-before-auth-check=[true | false (default) ]
    Caches the result of deadboltHandler.beforeAuthCheck(...) for the current request (similar to deadbolt.java.cache-user). Also see #48 (comment) and #51
  • DeadboltHandler.beforeAuthCheck(...) has been overloaded to also pass Optional<String> content. The original method has been deprecated and will be remove in deadbolt 2.7. See #64
  • Finished removal of ExecutionContextProvider functionality
    It still exists but does nothing. => No thread switching in deadbolt anymore!
    ExecutionContextProvider will be removed in deadbolt 2.7.
  • @Deferrable is not needed anymore, it has been deprecated and you can safely remove it.
  • Bugfix: Action call order was wrong when deferring, see #60
  • @DeferredDeadbolt now also has the content and handlerKey attributes, see #68

...and maybe some smaller bug fixes I can't remember now 😉

Also check our documentation tracking ticket where you can see what was added and/or fixed but hasn't been updated in the documentation yet.