Deadbolt 2
Deadbolt 2
Powerful authorization for your Play 2 application
About the Book
Deadbolt 2 is an authorization module for the Play 2 framework. It features idiomatic Java and Scala APIs and a comprehensive range of tools to help secure your web application.
This book, written by the author of the module, covers all aspects of integrating Deadbolt 2 into your code.
About the Contributors
Table of Contents
-
-
1. Deadbolt 2
- 1.1 About the author
- 1.2 About the book
-
2. Introduction
- 2.1 History
- 2.2 Java versus Scala
- 2.3 Versions
- 2.4 Target audience
- 2.5 Acknowledgements
- 2.6 Feedback
-
3. Root concepts
- 3.1 Template-level constraints
- 3.2 Controller-level restrictions
- 3.3 Core entities
- 3.4 Hooks
- 3.5 Static and dynamic constraints
-
1. Deadbolt 2
-
I Deadbolt for Java
-
4. Using Deadbolt 2 with Play 2 Java projects
- 4.1 The Deadbolt Handler
- 4.2 Expose your DeadboltHandlers with a HandlerCache
- 4.3 application.conf
-
5. Java controller constraints
- 5.1 SubjectPresent
- 5.2 SubjectNotPresent
- 5.3 Restrict
- 5.4 RoleBasedPermissions
- 5.5 Dynamic
- 5.6 Pattern
- 5.7 Unrestricted
- 5.8 Deferring method-level annotation-driven interceptors
- 5.9 Invoking DeadboltHandler#beforeAuthCheck independently
- 5.10 Customising the inputs of annotation-driven actions
-
6. Deadbolt Java Templates
- 6.1 subjectPresent
- 6.2 subjectNotPresent
- 6.3 Restrict
- 6.4 Pattern
- 6.5 Dynamic
-
7. A deeper look at dynamic rules
- 7.1 Using sessions and requests in your rules
- 7.2 Strategies for using dynamic resource handlers
-
8. Integrating with authentication providers
- 8.1 Play’s built-in authentication support
- 8.2 Third-party user management
-
4. Using Deadbolt 2 with Play 2 Java projects
-
II Deadbolt for Scala
-
9. Using Deadbolt 2 with Play 2 Scala projects
- 9.1 The Deadbolt Handler
- 9.2 Expose your DeadboltHandlers with a HandlerCache
- 9.3 application.conf
- 9.4 Using compile-time dependency injection
- 9.5 Tweaking Deadbolt
-
10. Scala controller constraints
- 10.1 Controller constraints with the action builder
- 10.2 Controller constraints with action composition
- 10.3 SubjectPresent
- 10.4 SubjectNotPresent
- 10.5 Restrict
- 10.6 Pattern
- 10.7 Dynamic
-
11. Deadbolt Scala Templates
- 11.1 Handlers
- 11.2 SubjectPresent
- 11.3 SubjectNotPresent
- 11.4 Restrict
- 11.5 Pattern
- 11.6 Dynamic
-
9. Using Deadbolt 2 with Play 2 Scala projects
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them