Questions tagged [deadbolt]

Deadbolt is a powerful, comprehensive authorization module for the Play framework.

44 questions
8
votes
3 answers

UNRESOLVED DEPENDENCIES installing Deadbolt on Play Framework 2.2.1

I'd like to try Deadbolt. What are the steps to install it on the new Play Framework 2.2.1? What I found is resolvers and dependencies here. But where I have to put the resolvers? I don't want to use Build.scala (in Play 2.2 there's build.sbt) And…
Fred K
  • 13,249
  • 14
  • 78
  • 103
8
votes
3 answers

Playframework 2.2 resolvers

In play 2.1 and prior I had to add the resolvers in Build.scala like: val main = play.Project(appName, appVersion, appDependencies).settings( resolvers += Resolver.url("Objectify Play Repository",…
reen
  • 2,483
  • 5
  • 29
  • 40
7
votes
0 answers

SSO using SAML 2.0 for Scala Play web application

I am building a scala play web application and I need to build the SSO functionality with an IdP which support SAML v2.0. In addition to SSO, I need to build authorization mechanism within the application based on the roles received from IdP as an…
John Lewis
  • 71
  • 3
6
votes
1 answer

Accessing Deadbolt user from within Controller

I am using Deadbolt 2 with Playframework 2.1. In the getSubject() function of my DeadboltHandler I check the user password and retrieve the user from the database. Is it possible to access this user in my controllers to avoid retrieving the user…
user2440437
  • 121
  • 1
  • 6
5
votes
2 answers

Integrating Keycloak into Play2 project

I want to integrate Keycloak authentication into a Play2 project. Here is what I did until this point: I downloaded Keycloak: keycloak-1.6.1.Final.zip, unpacked, run it and set up by creating a test realm and some roles I downloaded, configured and…
egyedia
  • 53
  • 4
4
votes
2 answers

Incompatibilities among your library dependencies after up-gradation from play 2.4 version to play 2.5.0

I have recently upgraded my project from play framework 2.4.0 to 2.5.0 and when I build it I am getting so many library incompatibilities issue which I am unsure about how to resolve it. Can anyone has any idea how can we resolve such issues. I am…
Programmer
  • 325
  • 5
  • 18
3
votes
0 answers

Deadbolt integration with silhouette

I am trying to use silhouette for authentication and deadbolt-2 for authorization. I can't find any resources on how to do that. Any ideas on how to combine both in one action? And on how to implement the deadbolt2 getSubject with silhouette…
Ayoub
  • 361
  • 4
  • 15
3
votes
2 answers

Deadbolt - Play Framework - How to check a @RestrictedResource with parameters in a controller?

With Deadbolt's module we can check the restrictedResource with a ressource name and parameters in the view. For example in my view, I have it, and it works well: #{deadbolt.restrictedResource resourceKeys:['Domain'] ,…
RodneyRd
  • 130
  • 10
3
votes
1 answer

Deadbolt 2: Controlling restrictions with DB settings, totally

ellou' I want or rather need to control restrictions for some actions and controllers via database settings, which is best way to do such job? What is my goal: I need to create solution, where there will be lot of user groups (stored in DB) and they…
biesior
  • 55,576
  • 10
  • 125
  • 182
2
votes
1 answer

Deadbolt issue in Play view

I try to restrict (using deadbolt) something in my view (play! framework) and I have to pass a parameter like: #{deadbolt.restrictedResource resourceKeys:['projectEdit'], resourceParameters:['projectId':'3'} You notice 3 is harcoded for example (it…
Cristian Boariu
  • 9,603
  • 14
  • 91
  • 162
2
votes
2 answers

How to access to the user session in Deadbolt2 Handler

I'm trying to use Deadbolt2 in a play2 application and i'm stuck with the implementation of getRolesHolder() in my Deadbolt Handler. In the sample application, there is this example : public class MyDeadboltHandler extends AbstractDeadboltHandler { …
Maaaaat
  • 236
  • 3
  • 8
2
votes
0 answers

How to pass information from DeadboltHanlder to Controller-Method (Play Framework 2.8)

In our Play Framework application, we are using the Deadbolt module for user authentication. This means that the getSubject() method of our DeadboltHandler-implementation will be called before the actual Controller method. However, we need to…
dtr84
  • 241
  • 1
  • 2
  • 10
2
votes
1 answer

Play Framework - Implementing groups with deadbolt2

I'm trying to implement deadbolt2 groups, but I am puzzled how I am supposed to achieve this. I am using Play 2.2.1, Deadbolt 2.2.RC4 and Hibernate 4.3.1 with a MySQL database. I have been able to implement some of Deadbolt:. I can login, register…
NoClueBlue
  • 451
  • 4
  • 17
2
votes
1 answer

Questions about installing Deadbolt on Play 2.2.1

As stated here if I put the resolvers in plugins.sbt Play doesn't see them. But it works if I move them in build.sbt. Is there a reason? Another problem: if there isn't the file play.plugins I get this error: "**Exception:** The Deadbolt Java…
Fred K
  • 13,249
  • 14
  • 78
  • 103
1
vote
1 answer

Play Framework and Deadbolt redirect onAuthFailure

I have implemented my own Authenticator from Play Framework and DeadboltHandler from Deadbolt. Using the methods onUnauthorized respective onAuthFailure I can send users that are not logged in to the "login page" instead of the actual page they are…
Marcus Persson
  • 373
  • 4
  • 20
1
2 3