I want my hosted login page to be configurable - essentially I want to pass the initialScreen parameter to configure the login page.
I’ve seen an example using JS, however I’m using ASP.NET Core 2 and I can’t find any such example.
I’m thinking that in my Login method in my controller I can somehow pass the parameter:
public async Task Login(string returnUrl = “/”)
{
await HttpContext.ChallengeAsync(“Auth0”, new AuthenticationProperties() { RedirectUri = returnUrl });
}
Then, in my hosted login page I can pickup the parameter. In the HTML page below, I have currently hard-coded initialScreen: ‘signUp’ when configuring lock.
I want ‘signUp’ to be passed as a parameter.