private bool ApplicationIdIsNullOrValid(string applicationId) { // Duplicate code in AuthenticateOrchestrator if (applicationId == null) { return(true); } if (!_applicationService.ApplicationExists(applicationId)) { //_logger.LogError("Invalid application id '{0}'", applicationId); return(false); } return(true); }