Fixed issue #46: Remote Actor should be defined by target class and UUID

This commit is contained in:
jboner 2009-11-21 20:51:03 +01:00
parent 805fac6ebb
commit f5b9e9804f
12 changed files with 138 additions and 94 deletions

View file

@ -86,7 +86,7 @@ class AkkaSecurityFilterFactory extends ResourceFilterFactory with Logging {
override def filter(request: ContainerRequest): ContainerRequest =
rolesAllowed match {
case Some(roles) => {
(authenticator !? Authenticate(request, roles)).asInstanceOf[AnyRef] match {
(authenticator !! (Authenticate(request, roles), 10000)).get.asInstanceOf[AnyRef] match {
case OK => request
case r if r.isInstanceOf[Response] =>
throw new WebApplicationException(r.asInstanceOf[Response])