trait AsyncAclSecurity[I <: Identity] extends AclSecurity[I]
Play Security object wraps play.api.mvc.Security
- Alphabetic
- By Inheritance
- AsyncAclSecurity
- AclSecurity
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
Action: ActionBuilder[Request, AnyContent]
will return an ActionBuilder which is needed by PlayFramework to build actions
will return an ActionBuilder which is needed by PlayFramework to build actions
This method is also part of PlayFrameworks BaseController/ AbstractController and InjectedController
- Definition Classes
- AclSecurity
-
abstract
def
configuration: Configuration
configuration object of the PlayFramework which contains the configuration of the session key for the username
configuration object of the PlayFramework which contains the configuration of the session key for the username
- Definition Classes
- AclSecurity
-
abstract
def
guestRole: Role
will return a Role which represent the guest role
will return a Role which represent the guest role
- Definition Classes
- AclSecurity
-
abstract
def
guestUser: I
will return a Identity which represents a guest user
will return a Identity which represents a guest user
- Definition Classes
- AclSecurity
-
abstract
def
onUnauthenticated(request: RequestHeader): Result
method, what happens when a user is not authenticated or the ACL declines the user to access
method, what happens when a user is not authenticated or the ACL declines the user to access
- request
the given requets
- Definition Classes
- AclSecurity
-
abstract
def
onUnauthorized(request: RequestHeader): Result
method, which is called, when a user are not allowed to see this page
method, which is called, when a user are not allowed to see this page
- request
the given request
- Definition Classes
- AclSecurity
-
abstract
def
roles: List[Role]
will return a list of defined Roles
will return a list of defined Roles
- Definition Classes
- AclSecurity
-
abstract
def
userByUsername(username: String)(implicit request: RequestHeader): Option[I]
will return a Option[Identity]
will return a Option[Identity]
- Definition Classes
- AclSecurity
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
onUnauthorizedAsync(request: RequestHeader): Future[Result]
method, which is called, when a user are not allowed to see this page
method, which is called, when a user are not allowed to see this page
- request
the given requets
-
lazy val
sessionUsernameKey: String
name of the user name key in the session which is configured in the configurations
name of the user name key in the session which is configured in the configurations
- Definition Classes
- AclSecurity
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
username(request: RequestHeader): Option[String]
will return the username / email from the session
will return the username / email from the session
- Definition Classes
- AclSecurity
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withAcl(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.
this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.
def myAction = withAcl { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
- Definition Classes
- AclSecurity
-
def
withAclAsync(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.
this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.
def myAction = withAcl { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
-
def
withAuth(f: ⇒ (String) ⇒ (Request[AnyContent]) ⇒ Result): EssentialAction
this method will check if a user is authenticated and applies it's username/email to the action.
this method will check if a user is authenticated and applies it's username/email to the action. If the user is not authenticated the result of "onUnauthenticated" is returned
def myAction = withAuth { username ⇒ implicit request // Ok(username) }
- Definition Classes
- AclSecurity
-
def
withAuthAsync(f: ⇒ (String) ⇒ (Request[AnyContent]) ⇒ Future[Result]): EssentialAction
this method will check if a user is authenticated and applies it's username/email to the action.
this method will check if a user is authenticated and applies it's username/email to the action. If the user is not authenticated the result of "onUnauthenticated" is returned
def myAction = withAuth { username ⇒ implicit request // Ok(username) }
-
def
withProtected[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
- Definition Classes
- AclSecurity
-
def
withProtected[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
- Definition Classes
- AclSecurity
-
def
withProtected(resource: Resource, privilege: Privilege)(action: (Request[AnyContent]) ⇒ Result): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
- Definition Classes
- AclSecurity
-
def
withProtectedAcl[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege, acl: Acl => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
- Definition Classes
- AclSecurity
-
def
withProtectedAcl[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege, () => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
- Definition Classes
- AclSecurity
-
def
withProtectedAcl(resource: Resource, privilege: Privilege)(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action.
this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
- Definition Classes
- AclSecurity
-
def
withProtectedAclAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege, Acl => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
-
def
withProtectedAclAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.
this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege, () = MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
-
def
withProtectedAclAsync(resource: Resource, privilege: Privilege)(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action.
this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtectedAcl(myResource, myPrivilege) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }
-
def
withProtectedAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
-
def
withProtectedAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
-
def
withProtectedAsync(resource: Resource, privilege: Privilege)(action: (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned
This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned
def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }
-
def
withUser(f: (I) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]
this method will check if the user is authenticated and applies the instance of Identity to the action.
this method will check if the user is authenticated and applies the instance of Identity to the action. If the user is not authenticated the guest user will be returned
def myAction = withUser { user: I ⇒ implicit request // Ok(user.roles.toString) }
- Definition Classes
- AclSecurity
-
def
withUserAsync(f: (I) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]
this method will check if the user is authenticated and applies the instance of Identity to the action.
this method will check if the user is authenticated and applies the instance of Identity to the action. If the user is not authenticated the guest user will be returned
def myAction = withUser { user: I ⇒ implicit request // Ok(user.roles.toString) }