Code Monkey home page Code Monkey logo

deadbolt-2-java-examples's Introduction

deadbolt-2-java-examples

Example usages of Deadbolt 2's Java API. Deadbolt 2 is an authorisation module for Play 2.

Deadbolt 2 comprises of several modules - a common core, and language-specific implementations for Java and Scala. Example applications and a user guide are also available.

All modules related to Deadbolt 2, including the user guide, are grouped together in the Deadbolt 2 Github super-module. Installation information, including Deadbolt/Play compatibility, can also be found here.

deadbolt-2-java-examples's People

Contributors

cosmolev avatar schaloner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deadbolt-2-java-examples's Issues

Wrong sbt-plugin version in java example

To run the deadbolt-2-java-example 2.1 with Play 2.1.1 the sbt plugin verson needs to be changed in the project\plugin.sbt file.
Without that change org.slf4j#slf4j-api;1.6.6!slf4j-api.jar cant be downloaded and will throw an sbt.ResolveException: download failed Exception.

Change
From:
addSbtPlugin("play" % "sbt-plugin" % "2.1.0")

To:
addSbtPlugin("play" % "sbt-plugin" % "2.1.1")

Sending Roles from Controller to Template!

Hi Steve,

This sample is working really fine, however, i encoutred a problem when sending roles parameters from controllers into template here is the bogue :

1- Let's see what is OK

ok

2- Now let's see what's KO

ko

How can I send roles (roles required for @restrict tags in template ) from controller to template !!
I tried looping such as :
@for(s <- list) { allOf(@s), }
but this is not acceptable inside @restrict !! even there is a comma at the end of loop ....

Any idea please ?

thank you so so so so much

Can't get the example to run

I am using activator-1.3.9-minimal

Two issues, failed dependencies with deadbolt-java_2.11;2.5.0-SNAPSHOT. I fix this by removing the snapshot

If I remove the SNAPSHOT, then it will compile, but when I run it, it asks to apply evolutions, which I do and then comes back with a [CompletionException: java.lang.RuntimeException: There is no HTTP Context available from here.]

I must admit I am at a bit of a loss.

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.