Releases: mkurz/deadbolt-2-java
Releases · mkurz/deadbolt-2-java
3.0.0
2.9.0
Noteworthy
This release adds support for Play 2.9 and Scala 3.
Pull requests merged
- Support Play Framework 2 9 0 by @kpollardsprypoint in #118
- Some adjustments by @mkurz in #119
- Switch to GitHub actions / Remove Travis CI / Setup sbt-ci-release by @mkurz in #121
New Contributors
- @kpollardsprypoint made their first contribution in #118
Full Changelog: v2.8.1...2.9.0
v2.8.1
v2.8.0
v2.7.0
v2.6.4
Highlights
- Constraint modes
New configdeadbolt.java.constraint-mode
can bePROCESS_FIRST_CONSTRAINT_ONLY
(the default, backward compatible),AND
(all constraint annotations of the current action composition chain have to be successful) orOR
(only one constraint annotation of the current action composition chain has to be successful) See tests added in #83 for examples @Pattern
: addedmode
attribute (can beAND
orOR
) +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 ofdeadboltHandler.beforeAuthCheck(...)
for the current request (similar todeadbolt.java.cache-user
). Also see #48 (comment) and #51 DeadboltHandler.beforeAuthCheck(...)
has been overloaded to also passOptional<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 thecontent
andhandlerKey
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.