Rewritten "home" address management and protocol, all test pass except 2
This commit is contained in:
parent
dfc45e0a71
commit
f7407d3adf
61 changed files with 668 additions and 866 deletions
|
|
@ -192,10 +192,10 @@ trait AuthenticationActor[C <: Credentials] extends Actor {
|
|||
verify(extractCredentials(req)) match {
|
||||
case Some(u: UserInfo) => {
|
||||
req.setSecurityContext(mkSecurityContext(req, u))
|
||||
if (roles.exists(req.isUserInRole(_))) reply(OK)
|
||||
else reply(Response.status(Response.Status.FORBIDDEN).build)
|
||||
if (roles.exists(req.isUserInRole(_))) self.reply(OK)
|
||||
else self.reply(Response.status(Response.Status.FORBIDDEN).build)
|
||||
}
|
||||
case _ => reply(unauthorized)
|
||||
case _ => self.reply(unauthorized)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue