Make middleware report when auth fails.