Deadbolt is a powerful, comprehensive authorization module for the Play framework.
Questions tagged [deadbolt]
44 questions
0
votes
0 answers
play 2.3.6 deadbolt restrict user created resources
Is is possible to restrict users to resources only created by them using deadbolt, I know controller methods restrictions and logged in user restriction can be done, but is is possible to let a user CRUD on resources (like photos, documents) created…

Subash
- 3,128
- 6
- 30
- 44
0
votes
3 answers
Handle Future[User] in Deadbolt's getSubject
Is there a way in Deadbolt to use Future[User] in MyDeadboltHandler's getSubject method without blocking?
Current method expects a request and returns an Option[Subject]
override def getSubject[A](request: Request[A]): Option[Subject] = {
…

centr
- 645
- 7
- 15
0
votes
1 answer
Redirecting to different action upon failed restriction in deadbolt2
With deadbolt2 and play-authenticate I can define restrictions on the controller and action level based on a user's roles and permissions. If the current user does not satisfy these restrictions, AbstractDeadboltHandler.onAuthFailure in the…

knittl
- 246,190
- 53
- 318
- 364
0
votes
1 answer
Play 2.2.1 java + deadbolt = UNRESOLVED DEPENDENCIES
I'm trying to install deadbolt on Play 2.2.1 java...
Where is the error?
I found several threads on the internet talking about this problem, but no answer solved my problem.
Can anyone help me?
plugins.sbt
logLevel := Level.Warn
resolvers +=…

Pena
- 21
- 1
- 2
0
votes
0 answers
Deadbolt 2 and role hierarchy feature
I am relatively new to Scala and Playframework.
I would like to know wether Deadbolt 2 has or plans to have any support for role hierarchy feature such as what can be found in the Spring security framework (see below for an example)?

balteo
- 23,602
- 63
- 219
- 412
0
votes
1 answer
DeadBolt 2 NullPoniterException error in playframework 2 app
I am developing a web app and I am using the way zentasks sample app uses for user authentication so after login is done, username is stored in session.
Now I am trying to do the authorization part with DeadBolt 2 plugin. Basically I have merged…

jrook
- 3,459
- 1
- 16
- 33
0
votes
1 answer
Play Framework Authorization Java
Does anybody know if there's play framework module that allows you to authorize pages dynamically in Java?
I'm using the play-authenticate/deadbolt modules (http://joscha.github.io/play-authenticate/ and https://github.com/schaloner/deadbolt-2) for…

Rico
- 58,485
- 12
- 111
- 141
0
votes
1 answer
Handling redirect to a specific page
I'm using Deadbolt for authorization. I need to redirect an user if he is present (subjectPresent). For example, this controller renders the signup page:
public static Result signup() {
return ok(signup.render())
}
But if a user is already…

Fred K
- 13,249
- 14
- 78
- 103
0
votes
2 answers
Deadbolt: show parts of template only for current logged user
In my system every user has an own public profile. I want to show an "Edit" button only on the profile page of the current logged user.
Now I'm doing this by using this code
@subjectPresent() {
@if(userProfile == userLogged){
…

Fred K
- 13,249
- 14
- 78
- 103
0
votes
1 answer
Deadbolt - Access failure redirect is not working
I am using Deadbolt 2 with Playframework 2.1
I have a public page from where the user clicks on a Action button and a Controller method is called, this method has @SubjectPresent on it. I want to redirect the user to the login page if the user is…

Santhosh S
- 1,141
- 6
- 21
- 43
0
votes
1 answer
Updating ManyToMany Checkboxes PlayFramework 2
I have some troubles to update Many-To-Many Relationship with checkboxes in Play Framework 2.1.0
Account Model:
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "account_security_role", joinColumns = { @JoinColumn(name = "account_id",…

Lew
- 33
- 1
- 4
0
votes
0 answers
Error with Play 2.0 Scala
When trying to run some of the Scala samples using Play2 (zentasks) I get the following errors:
==== Maven Central:…

marcelo
- 193
- 1
- 8
0
votes
1 answer
egit->eclipse proper import of general_project->Java_project
I've checked out deadbolt-2-core with egit from repository.
Then I've imported it as "general project":
Then I've added to .project file:
org.eclipse.jdt.core.javabuilder
…

Leo
- 2,097
- 21
- 35
-2
votes
2 answers
How to use AND operator in regex for java to match 2 whole words ? i want both the words to be present
I have 2 separate strings "TM_TASK" and "TM_CHECKLIST". How can i validate both the words in whole using regex in java ? How to use AND operator in regex for this case in java ? i need both the strings to be validated and not either of them. I am…

Sourav Bebarta
- 51
- 2
- 10