Either<Status, Jwt> authResult = authenticator.authenticate(context.request(), context.response()).getResult();
if (authResult.left.isDefined()) {
return Promise.pure((SimpleResult)authResult.left.get());
}
Jwt jwt = authResult.right.get();
AC.setAcHost(jwt.getIssuer());
AC.setUser(jwt.getSubject());
AC.refreshToken(false);
return delegate.call(context);
}
catch (InvalidAuthenticationRequestException e)