include authentication only if defined