Giter VIP home page Giter VIP logo

deadbolt-2-scala's Introduction

Deadbolt 2 for Play 2.5

Maven Central Build Status Sputnik Dependency Status Join the chat at https://gitter.im/schaloner/deadbolt-2

Deadbolt 2 is an authorization library for Play 2, and features APIs for both Java- and Scala-based applications. It allows you to apply constraints to controller actions, and to customize template rendering based on the current user.

This repository contains the Scala API for Deadbolt.

Documentation

You can find documentation and examples for Deadbolt at https://deadbolt-scala.readme.io/v2.5.

Get the book!

If you want to explore Deadbolt further, you might want to take a look at the book I'm currently writing on it. You can find it at https://leanpub.com/deadbolt-2.

Deadbolt 2 - Powerful authorization for your Play application

Java API

The Java version of Deadbolt can by found at https://github.com/schaloner/deadbolt-2-java.

2.5.x Migration guide

  • There is no longer a common module shared by the Scala and Java versions of Deadbolt, so there is no more usage of Java types in the API.
  • Types previously found in be.objectify.deadbolt.core.models are now found in be.objectify.deadbolt.scala.models.
  • be.objectify.deadbolt.core.PatternType is now be.objectify.deadbolt.scala.models.PatternType.
  • be.objectify.deadbolt.core.DeadboltAnalyzer has been re-implemented in Scala as be.objectify.deadbolt.scala.StaticConstraintAnalyzer.
  • Instead of an implicit Request, actions now receive an explicit AuthenticatedRequest that contains an Option[Subject].
  • The functions of DeadboltActions now return a Future[Result] in place of an Action[A].

deadbolt-2-scala's People

Contributors

schaloner avatar francisdb avatar

Watchers

Isaka Traore avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.