modify the behaviour of authentication. redirect to the caller