Expose auth mode in request.auth.mode. Closes #1790