Auth0 Home Blog Docs

ASP.NET MVC (C#) passing options to Hosted Lock11

lock11

#1

Hello. I am passing options as illustrated below. This does not seem to have any effect on the Hosted Lock UI. I have this same option in the Lock JavaScript thinking it is needed to accept the parameter but still no effect. I am doing something wrong? Thank you.

  HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties
        {RedirectUri = returnUrl ?? Url.Action("Index", "Home")}, "Auth0", "allowLogin: false");         
        return new HttpUnauthorizedResult();
    }