be.objectify.deadbolt.scala

Members list

Type members

Classlikes

@Singleton
class ActionBuilders(deadboltActions: DeadboltActions, handlers: HandlerCache, bodyParsers: PlayBodyParsers)

Provides helpers for creating Play Actions wrapped by DeadboltActions.

Provides helpers for creating Play Actions wrapped by DeadboltActions.

Attributes

Supertypes
class Object
trait Matchable
class Any
class AuthenticatedRequest[+A](request: Request[A], val subject: Option[Subject]) extends WrappedRequest[A]

Attributes

Supertypes
class WrappedRequest[A]
trait Request[A]
trait RequestHeader
class Object
trait Matchable
class Any
Show all
@Singleton

Attributes

Supertypes
class Object
trait Matchable
class Any
object ConstraintPoint extends Enumeration

Indicates the point at which a constraint is applied. See DeadboltHandler.onAuthSuccess.

Indicates the point at which a constraint is applied. See DeadboltHandler.onAuthSuccess.

Attributes

Since

2.5.1

Supertypes
class Enumeration
trait Serializable
class Object
trait Matchable
class Any
Self type
@Singleton
class DeadboltActions(analyzer: StaticConstraintAnalyzer, handlers: HandlerCache, ecProvider: ExecutionContextProvider, logic: ConstraintLogic, bodyParsers: PlayBodyParsers) extends Results

Controller-level authorisations for Scala controllers.

Controller-level authorisations for Scala controllers.

Attributes

Supertypes
trait Results
class Object
trait Matchable
class Any
trait DeadboltComponents extends BuiltInComponents

Individual components of Deadbolt. Use this trait if your application uses compile-time dependency injection.

Individual components of Deadbolt. Use this trait if your application uses compile-time dependency injection.

Attributes

Supertypes
trait BuiltInComponents
trait PekkoTypedComponents
trait PekkoComponents
trait I18nComponents
class Object
trait Matchable
class Any
Show all
Known subtypes
trait DeadboltExecutionContextProvider extends Provider[ExecutionContext]

Attributes

Supertypes
trait Provider[ExecutionContext]
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DeadboltModule extends Module

Attributes

Supertypes
class Module
class Object
trait Matchable
class Any
@Singleton
class DefaultExecutionContextProvider(appProvider: Provider[Application]) extends ExecutionContextProvider

An implementation of ExecutionContextProvider that checks the injector for an instance of DeadboltExecutionContextProvider. Falls back to scala.concurrent.ExecutionContext.global if nothing is specified.

An implementation of ExecutionContextProvider that checks the injector for an instance of DeadboltExecutionContextProvider. Falls back to scala.concurrent.ExecutionContext.global if nothing is specified.

Attributes

Supertypes
trait Provider[ExecutionContext]
class Object
trait Matchable
class Any
@Singleton
class DefaultTemplateFailureListenerProvider(appProvider: Provider[Application]) extends TemplateFailureListenerProvider

A default implementation of TemplateFailureListenerProvider that checks the injector for a TemplateFailureListener instance.

A default implementation of TemplateFailureListenerProvider that checks the injector for a TemplateFailureListener instance.

Attributes

Supertypes
trait Provider[TemplateFailureListener]
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
trait ExecutionContextProvider extends Provider[ExecutionContext]

Specifies the execution context used by Deadbolt.

Specifies the execution context used by Deadbolt.

Attributes

Supertypes
trait Provider[ExecutionContext]
class Object
trait Matchable
class Any
Known subtypes
trait HandlerKey

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

No-op implementation of TemplateFailureListener..

No-op implementation of TemplateFailureListener..

Attributes

Supertypes
class Object
trait Matchable
class Any
@Singleton
class StaticConstraintAnalyzer(patternCache: PatternCache)

Static constraint analysis.

Static constraint analysis.

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait SubjectActionBuilder[B] extends ActionBuilder[AuthenticatedRequest, B], ActionTransformer[Request, AuthenticatedRequest]

Attributes

Companion
object
Supertypes
trait ActionTransformer[Request, AuthenticatedRequest]
trait ActionRefiner[Request, AuthenticatedRequest]
trait ActionBuilder[AuthenticatedRequest, B]
trait ActionFunction[Request, AuthenticatedRequest]
class Object
trait Matchable
class Any
Show all
Known subtypes

Listens for failures when applying constraints at the template level. Useful for extra logging or creating a load-based template constraint timeout function.

Listens for failures when applying constraints at the template level. Useful for extra logging or creating a load-based template constraint timeout function.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Provides an instance of TemplateFailureListener for cases where template rendering fails.

Provides an instance of TemplateFailureListener for cases where template rendering fails.

Attributes

Supertypes
trait Provider[TemplateFailureListener]
class Object
trait Matchable
class Any
Known subtypes
@Singleton
class ViewSupport(config: Configuration, listenerProvider: TemplateFailureListenerProvider, logic: ConstraintLogic)

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type RoleGroup = Array[String]
type RoleGroups = List[RoleGroup]

Value members

Concrete methods

def allOf(roleNames: String*): RoleGroup
def allOfGroup(roleNames: String*): RoleGroups
def anyOf(roleGroups: RoleGroup*): RoleGroups