SubjectCachingHandler

be.objectify.deadbolt.scala.cache.HandlerCache.SubjectCachingHandler

Attributes

Deprecated
[Since version 2.5.1] Use the subject accessible via AuthenticatedRequest instead. This will be removed in Deadbolt 2.6.
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def beforeAuthCheck[A](request: Request[A]): Future[Option[Result]]

Invoked prior to a constraint's test. If Option.None is returned, the constraint is applied. If the option contains a result, the constraint will not be applied and the wrapped action will not be invoked.

Invoked prior to a constraint's test. If Option.None is returned, the constraint is applied. If the option contains a result, the constraint will not be applied and the wrapped action will not be invoked.

Attributes

Returns

an option possible containing a Result.

Definition Classes
override def getDynamicResourceHandler[A](request: Request[A]): Future[Option[DynamicResourceHandler]]

Gets the handler used for dealing with resources restricted to specific users/groups.

Gets the handler used for dealing with resources restricted to specific users/groups.

Attributes

Returns

an option containing the handler for restricted resources

Definition Classes
override def getSubject[A](request: AuthenticatedRequest[A]): Future[Option[Subject]]

Gets the current subject e.g. the current user.

Gets the current subject e.g. the current user.

Attributes

Returns

a future for an option containing the current subject

Definition Classes
override def onAuthFailure[A](request: AuthenticatedRequest[A]): Future[Result]

Invoked when an authorization failure is detected for the request.

Invoked when an authorization failure is detected for the request.

Value parameters

request

the authenticated request

Attributes

Returns

the action

Definition Classes

Inherited methods

def getPermissionsForRole(roleName: String): Future[List[String]]

Get the permissions associated with a role.

Get the permissions associated with a role.

Value parameters

roleName

the role the permissions are associated with

Attributes

Returns

a non-null list containing the permissions associated with the role

Inherited from:
DeadboltHandler
def handlerName: String

Gets the canonical name of the handler. Defaults to the class name.

Gets the canonical name of the handler. Defaults to the class name.

Attributes

Returns

whatever the implementor considers the canonical name of the handler to be

Inherited from:
DeadboltHandler
def onAuthSuccess[A](request: AuthenticatedRequest[A], constraintType: String, constraintPoint: ConstraintPoint): Unit

Invoked when authorization succeeds.

Invoked when authorization succeeds.

Value parameters

constraintPoint

the point at which the constraint was applied

constraintType

the type of constraint, e.g. dynamic, restrict, etc

request

the authenticated request

Attributes

Since

2.5.1

Inherited from:
DeadboltHandler