Before calling ChallengeAsync use setting IsHttps to true.
HttpContext.Request.IsHttps = true; await HttpContext.ChallengeAsync(Auth0Constants.AuthenticationScheme, authenticationProperties);