Auth0 Home Blog Docs

Authenticate ASP.NET Core v2.0 with Email using Auth0


#1

The instructions on https://auth0.com/authenticate/aspnet-core/email/ on how to authenticate ASP.NET Core v2.0 with Email are really extremely limited.

We can send out e-mails with the magic link either through the Try button in the Auth0 Portal or in code using

PasswordlessEmailResponse response = await client.StartPasswordlessEmailFlowAsync(new PasswordlessEmailRequest()
            {
                ClientId = "HIDDEN",
                Email = "HIDDEN",
                Type = PasswordlessEmailRequestType.Link,
                AuthenticationParameters = { { "redirect_uri", "http://localhost:8080/" } }
            });

But we cannot get the user authenticated when he clicks the magic link and is redirected.

Does anyone have a working solution / sample that uses Passwordless authentication with Asp.net Core 2.0?