simple client authentication in onDispatch