Deadbolt 2
This book is 67% complete
Last updated on 2016-12-05
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
Authors have earned$8,250,615writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. Free App. 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), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). 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