Skip to content

Commit

Permalink
Forward-ported bugfix in Security to 2.8-WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorklang committed Mar 30, 2010
1 parent 1c5dc6e commit e17713b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion akka-security/src/main/scala/Security.scala
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class AkkaSecurityFilterFactory extends ResourceFilterFactory with Logging {
override def filter(request: ContainerRequest): ContainerRequest =
rolesAllowed match {
case Some(roles) => {
(authenticator.!![AnyRef](Authenticate(request, roles), 10000)) match {
val result : Option[AnyRef] = authenticator !! Authenticate(request, roles)
result match {
case Some(OK) => request
case Some(r) if r.isInstanceOf[Response] =>
throw new WebApplicationException(r.asInstanceOf[Response])
Expand Down

0 comments on commit e17713b

Please sign in to comment.