Feature #3051: Add params[:id] to the authentication